element-web/test
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
..
@types
__snapshots__
accessibility
actions/handlers
audio
autocomplete
components Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
contexts
editor Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
events
hooks TS 2023-01-20 17:20:20 +00:00
i18n
i18n-test
images
img
models Make calls automatically disconnect if the widget disappears (#9862) 2023-01-04 15:51:42 -05:00
modules
notifications
settings Add test coverage (#9928) 2023-01-18 15:49:34 +01:00
setup
stores More tests 2023-01-20 13:27:03 +00:00
test-utils Tests for AdvancedRoomSettingsTab (#9994) 2023-01-27 11:00:06 +00:00
toasts
utils Fix failing userAgentParser tests (#9988) 2023-01-25 18:14:15 +00:00
voice-broadcast Stop broadcasts on logout (#9978) 2023-01-24 10:58:37 +00:00
Avatar-test.ts Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
ContentMessages-test.ts
DecryptionFailureTracker-test.js
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts Confirm listen to a broadcast while recording (#9831) 2023-01-02 12:21:33 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts
MediaDeviceHandler-test.ts
Notifier-test.ts Only notify for first broadcast chunk (#9901) 2023-01-17 09:04:36 +00:00
PosthogAnalytics-test.ts
PreferredRoomVersions-test.ts
Reply-test.ts
RoomNotifs-test.ts
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts
SlashCommands-test.tsx
SlidingSyncManager-test.ts Add additional tests 2023-01-19 15:02:48 +00:00
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts
Unread-test.ts Display rooms & threads as unread (bold) if threads have unread messages. (#9763) 2023-01-11 11:49:03 +00:00
UserActivity-test.ts
createRoom-test.ts
globalSetup.js
languageHandler-test.ts
linkify-matrix-test.ts
setupTests.js
slowReporter.js
theme-test.ts
useTopic-test.tsx