element-web/test
Sumner Evans a54f2ff878
Render custom images in reactions (#11087)
* Add support for rendering custom emojis in reactions

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Include custom reaction short names in tooltips

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Use custom reaction shortcode for accessibility

This uses the shortcode in the following places:

* The aria-label of the reaction buttons
* The alt text for the reaction image

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Remove explicit instantiation of `customReactionName` variable and add types

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Put custom reaction images behind a labs flag

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Use UnstableValue for finding the shortcode

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Sumner Evans <sumner@beeper.com>

* Move calculation of whether to render custom reaction images up to ReactionRow

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Make alt text more friendly when custom reaction doesn't have shortcode

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Add test for ReactionsRowButton

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Apply suggestions from code review

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Don't use Optional

Signed-off-by: Sumner Evans <sumner@beeper.com>

* Fix ReactionsRowButton test

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Sumner Evans <sumner@beeper.com>

---------

Signed-off-by: Sumner Evans <sumner@beeper.com>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-09-01 10:16:24 +00:00
..
@types
__snapshots__ Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
accessibility
actions/handlers
audio Move `mediaDevices` mock out of `setupManualMocks` (#11413) 2023-08-16 08:29:34 +00:00
autocomplete
components Render custom images in reactions (#11087) 2023-09-01 10:16:24 +00:00
contexts OIDC: Persist details in session storage, create store (#11302) 2023-07-20 21:30:19 +00:00
dispatcher
editor Treat lists with a single empty item as plain text, not Markdown. (#6833) 2023-08-17 16:37:19 +00:00
events
hooks Fix useRoomMembers missing updates causing incorrect membership counts (#11392) 2023-08-09 12:27:37 +00:00
i18n
images
img
models Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
modules
notifications
settings Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
setup Use Intl for names of languages (#11427) 2023-08-22 14:07:16 +00:00
stores Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
test-utils Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
toasts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
utils Room header UI updates (#11507) 2023-09-01 09:45:50 +00:00
voice-broadcast Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
widgets
Avatar-test.ts
ContentMessages-test.ts
DecryptionFailureTracker-test.js
DeviceListener-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts
Lifecycle-test.ts
Markdown-test.ts
MatrixClientPeg-test.ts
MediaDeviceHandler-test.ts
Notifier-test.ts
PosthogAnalytics-test.ts
PreferredRoomVersions-test.ts
Reply-test.ts
RoomNotifs-test.ts
Rooms-test.ts
ScalarAuthClient-test.ts Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
SdkConfig-test.ts
SlashCommands-test.tsx
SlidingSyncManager-test.ts Fix jest/no-conditional-expect lint and enable it (#10307) 2023-03-07 13:58:10 +00:00
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts
Unread-test.ts
UserActivity-test.ts
WorkerManager-test.ts Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
createRoom-test.ts
email-test.ts
globalSetup.ts
languageHandler-test.tsx
linkify-matrix-test.ts Fix clicking MXID in timeline going to matrix.to (#11263) 2023-07-14 10:55:55 +00:00
predictableRandom.ts GYU: Account Notification Settings (#11008) 2023-06-29 15:46:31 +00:00
setupTests.ts
slowReporter.js
theme-test.ts
useTopic-test.tsx