element-web/src/settings
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
..
controllers Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
enums Conform `src/components/views/messages/*` code to `strictNullChecks` (#10461) 2023-03-29 08:22:35 +01:00
handlers Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
watchers Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
SettingLevel.ts Abstract electron settings properly to avoid boilerplate-hell (#8798) 2022-06-10 22:38:50 +01:00
Settings.tsx Render custom images in reactions (#11087) 2023-09-01 10:16:24 +00:00
SettingsStore.ts Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
UIFeature.ts Show room options menu if "UIComponent.roomOptionsMenu" is enabled (#10365) 2023-06-09 12:33:54 +00:00
WatchManager.ts Fix some features not being configurable via `features` (#10276) 2023-03-03 13:31:51 +00:00