element-web-Github/test/components/views/rooms
Clark Fischer a8aa4de4b4
Member avatars without canvas (#9990)
* Strict typechecking fixes for Base/Member/Avatar

Update the core avatar files to pass `--strict --noImplicitAny` typechecks.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Add tests for Base/Member/Avatar

More thoroughly test the core avatar files. Not necessarily the most thorough,
but an improvement.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Extract TextAvatar from BaseAvatar

Extracted the fallback/textual avatar into its own component.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Use standard HTML for non-image avatars

Firefox users with `resistFingerprinting` enabled were seeing random noise
for rooms and users without avatars. There's no real reason to use data
URLs to present flat colors.

This converts non-image avatars to inline blocks with background colors.

See https://github.com/vector-im/element-web/issues/23936

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

* Have pills use solid backgrounds rather than colored images

Similar to room and member avatars, pills now use colored pseudo-elements
rather than background images.

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>

---------

Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-01-30 09:50:08 +00:00
..
__snapshots__ Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
NotificationBadge Display rooms & threads as unread (bold) if threads have unread messages. (#9763) 2023-01-11 11:49:03 +00:00
wysiwyg_composer Fix link creation with backward selection (#9986) 2023-01-26 10:08:23 +00:00
BasicMessageComposer-test.tsx Convert enzyme to rtl: BasicMessageComposer (#9839) 2022-12-29 20:52:51 +00:00
DecryptionFailureBar-test.tsx Improve decryption error UI by consolidating error messages and providing instructions when possible (#9544) 2022-12-15 17:24:33 +00:00
EventTile-test.tsx Merge branch 'develop' into gsouquet/threads-forceenablelabsflag 2023-01-11 11:51:57 +00:00
MemberList-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
MessageComposer-test.tsx Prevent starting a voice message while recording a broadcast (#9844) 2023-01-10 15:51:20 +01:00
MessageComposerButtons-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
NewRoomIntro-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ReadReceiptGroup-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomHeader-test.tsx Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
RoomListHeader-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomPreviewBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomPreviewCard-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomTile-test.tsx Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
SearchBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SearchResultTile-test.tsx combine search results when the query is present in multiple successive messages (#9855) 2023-01-05 11:37:58 +00:00
SendMessageComposer-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
VoiceRecordComposerTile-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00