element-web/test/components/views
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
..
audio_messages Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
auth Support registration tokens (#7275) 2023-01-24 12:02:07 +00:00
avatars Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
beacon Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
beta Apply prettier formatting 2022-12-12 12:24:14 +01:00
context_menus Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
dialogs Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
elements Fix error when viewing source of redacted events (#9914) 2023-01-15 16:22:59 +00:00
location Migrate Enzyme to RTL (#9842) 2022-12-29 15:35:19 +00:00
messages Tests for RoomCreate (#9997) 2023-01-27 15:23:23 +00:00
right_panel Use js-sdk imports for poll event types instead of events-sdk (#9904) 2023-01-13 10:02:33 -07:00
rooms Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
settings Implement MSC3946 for AdvancedRoomSettingsTab (#9995) 2023-01-27 14:07:05 +00:00
spaces Enzyme to rtl: QuickThemeSwitcher (#9843) 2022-12-29 12:44:18 +00:00
typography Apply prettier formatting 2022-12-12 12:24:14 +01:00
user-onboarding Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
voip Redesign the picture-in-picture window (#9800) 2023-01-04 04:44:38 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00