element-web/test/components/views/messages
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
..
__snapshots__ Render custom images in reactions (#11087) 2023-09-01 10:16:24 +00:00
shared Apply prettier formatting 2022-12-12 12:24:14 +01:00
CallEvent-test.tsx Move mediaDevices mock out of setupManualMocks (#11413) 2023-08-16 08:29:34 +00:00
DateSeparator-test.tsx Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
DecryptionFailureBody-test.tsx Display "The sender has blocked you from receiving this message" error message instead of "Unable to decrypt message" (#10202) 2023-02-22 11:39:09 +01:00
EncryptionEvent-test.tsx Change wording from avatar to profile picture (#7015) 2023-07-07 10:54:43 +00:00
JumpToDatePicker-test.tsx Prevent future date selection in jump to date (#10419) 2023-03-22 11:45:44 -05:00
LegacyCallEvent-test.tsx Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
MBeaconBody-test.tsx Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
MessageActionBar-test.tsx Switch to importing more things from the main js-sdk export (#11394) 2023-08-14 08:58:55 +00:00
MessageEvent-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
MImageBody-test.tsx Align common_* strings with Element X project in Localazy (#11434) 2023-08-22 18:47:33 +01:00
MKeyVerificationConclusion-test.tsx Inline VerificationRequest.{invalid,ready,started,done,cancelled} (#11013) 2023-06-06 08:27:53 +00:00
MKeyVerificationRequest-test.tsx Remove references to VerificationRequest (#11050) 2023-06-14 14:35:32 +00:00
MLocationBody-test.tsx Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
MPollBody-test.tsx Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
MPollEndBody-test.tsx Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
MVideoBody-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
ReactionsRowButton-test.tsx Render custom images in reactions (#11087) 2023-09-01 10:16:24 +00:00
RoomPredecessorTile-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
TextualBody-test.tsx Room header UI updates (#11507) 2023-09-01 09:45:50 +00:00