element-web/src/components/views
David Baker 3342aa5ff8
Refactor some logic into common AvatarSetting component (#12544)
* Refactor some logic into common AvatarSetting component

We duplicated some of the logic of setting avatars between profiles &
rooms. This pulls some of that logic into the AvatarSetting component
and hopefully make things a little simpler.

* Unsed import

* Convert JS based hover to CSS

* Remove unnecessary container

* Test avatar-as-file path

* Test file upload

* Unused imports

* Add test for RoomProfileSettings

* Test removing room avatar

* Move upload control CSS too

* Remove commented code

Co-authored-by: Florian Duros <florianduros@element.io>

* Prettier

* Coments & move style to inline as per PR suggestion

* Better test names

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Fix test

Upload input doesn't have that class anymore

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-21 10:37:02 +00:00
..
audio_messages Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00
auth Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522) 2024-05-17 14:11:07 +00:00
avatars Use new compound tooltip 2024-04-12 14:56:23 +02:00
beacon Improve code-splitting of highlight.js and maplibre-gs libs (#12349) 2024-03-20 13:39:20 +00:00
beta Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522) 2024-05-17 14:11:07 +00:00
context_menus Call Guest Access, give user the option to change the acces level so they can generate a call link. (#12401) 2024-04-10 14:46:27 +00:00
dialogs Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
directory Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
elements Tooltip: migrate remaining tooltips from `AccessibleTooltipButton` to `AccessibleButton` (#12522) 2024-05-17 14:11:07 +00:00
emojipicker Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
location Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
messages Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539) 2024-05-17 10:29:30 +00:00
pips Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539) 2024-05-17 10:29:30 +00:00
polls Use new compound tooltip 2024-04-12 14:56:23 +02:00
right_panel Ensure we do not fire the verification mismatch modal multiple times (#12526) 2024-05-15 15:22:53 +00:00
room_settings Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
rooms Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539) 2024-05-17 10:29:30 +00:00
settings Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
spaces Use kdb in space panel shortcut (#12525) 2024-05-15 09:44:17 +00:00
terms Migrate more strings to translation keys (#11665) 2023-09-25 18:12:41 +01:00
toasts Migrate more strings to translation keys (#11665) 2023-09-25 18:12:41 +01:00
typography
user-onboarding
verification Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00
voip Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00