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 Use server side relations for voice broadcasts (#9534) 2022-11-07 14:19:49 +00:00
__snapshots__ Handle starting a call while listen to a broadcast (#9764) 2022-12-19 08:44:19 +00:00
accessibility Apply prettier formatting 2022-12-12 12:24:14 +01:00
actions/handlers Apply prettier formatting 2022-12-12 12:24:14 +01:00
audio Apply prettier formatting 2022-12-12 12:24:14 +01:00
autocomplete Apply prettier formatting 2022-12-12 12:24:14 +01:00
components Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
contexts Add voice broadcast pre-recoding PiP (#9548) 2022-11-10 09:38:48 +01:00
editor Member avatars without canvas (#9990) 2023-01-30 09:50:08 +00:00
events Improve some voice broadcast tests (#9786) 2022-12-16 18:23:29 +00:00
hooks TS 2023-01-20 17:20:20 +00:00
i18n Fix languages.json 2017-06-01 21:10:32 +02:00
i18n-test Apply prettier formatting 2022-12-12 12:24:14 +01:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img Fix a load of warnings in the tests 2016-10-11 14:20:40 +01:00
models Make calls automatically disconnect if the widget disappears (#9862) 2023-01-04 15:51:42 -05:00
modules Apply prettier formatting 2022-12-12 12:24:14 +01:00
notifications Apply prettier formatting 2022-12-12 12:24:14 +01:00
settings Add test coverage (#9928) 2023-01-18 15:49:34 +01:00
setup Apply prettier formatting 2022-12-12 12:24:14 +01:00
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 Apply prettier formatting 2022-12-12 12:24:14 +01:00
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 Fixes empty content type during upload (#9848) 2022-12-30 08:34:38 +00:00
createRoom-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
DecryptionFailureTracker-test.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
DeviceListener-test.ts Device manager - use deleteAccountData to prune device manager client information events (#9734) 2022-12-14 04:59:23 +00:00
globalSetup.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
HtmlUtils-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
Image-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
KeyBindingsManager-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
languageHandler-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
LegacyCallHandler-test.ts Confirm listen to a broadcast while recording (#9831) 2023-01-02 12:21:33 +00:00
linkify-matrix-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
Markdown-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
MatrixClientPeg-test.ts Add a config flag to enable the rust crypto-sdk (#9759) 2022-12-16 17:10:26 +00:00
MediaDeviceHandler-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
Notifier-test.ts Only notify for first broadcast chunk (#9901) 2023-01-17 09:04:36 +00:00
PosthogAnalytics-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
PreferredRoomVersions-test.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
Reply-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomNotifs-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
Rooms-test.ts Prevent unnecessary m.direct updates (#9805) 2022-12-21 09:30:08 -07:00
ScalarAuthClient-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
SdkConfig-test.ts Show time left for voice broadcast recordings (#9564) 2022-11-10 10:53:49 +00:00
setupTests.js Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
SlashCommands-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SlidingSyncManager-test.ts Add additional tests 2023-01-19 15:02:48 +00:00
slowReporter.js Apply prettier formatting 2022-12-12 12:24:14 +01:00
Terms-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
TestSdkContext.ts Add voice broadcast playback pip (#9603) 2022-11-24 09:08:41 +01:00
TextForEvent-test.ts Implement broadcast message preview (#9762) 2022-12-16 11:01:16 +00:00
theme-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
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 Apply prettier formatting 2022-12-12 12:24:14 +01:00
useTopic-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00