element-web/test/components/views/settings
David Baker 1696c5cd0a
Change avatarsetting componment to use a menu (#12585)
* New user profile UI in User Settings

Using new Edit In Place component.

* Show avatar upload error

* Fix avatar upload error

* Wire up errors & feedback for display name setting

* Implement avatar upload / remove progress toast

* Add 768px breakpoint

* Fix display of no avatar in avatar setting controls

There was supposed to be a person icon but it was invisible, and also
would have been inappropriate for room avatars anyway.

This makes it match the designs by being the same as whatever the
default avatar is.

* Fix room profile display

* Update edit icon on avatarsetting comnponent

* Change avatarsetting componment to use a menu

As per the designs, remove the 'remove' link and instead have a menu
pop up to either upload a new file or remove the avatar.

This also changes the room profile viw, since that uses the same view.

* Update to released compund-web with required components / fixes

* Require compound-web 4.4.0

because we do need it

* Update snapshots

Because of course all the auto-generated IDs of unrelated things
have changed.

* Fix duplicate import

* Fix CSS comment

* Update snapshot

* Run all the tests so the ids stay the same

* Start of a test for ProfileSettings

* More tests

* Test that a toast appears

* Test ToastRack

* Update snapshots

* Add the usernamee control

* Fix playwright tests

 * New compound version for editinplace fixes
 * Fix useId to not just generate a constant ID
 * Use the label in the username component
 * Fix widths of test boxes
 * Update screenshots

* Put ^ back on compound-web version

* Split CSS for room & user profile settings

and name the components correspondingly

* Fix playwright test

* Update room settings screenshot

* Use original screenshot instead

* Add required props in test

* Fix test

* Also here

* Update screenshots

* Remove user icon

...which is unused now, as far as I can see.

* Fix styling of unrelated buttons

Needed to be added in other places otherwise the specificity changes.

Also put the old screenshots back.

* Add copyright year

* Fix copyright year

* Switch to useMatrixClientContext

* Fix other test

* Make clickable with no avatar again and fix tests

and renmove a test for the remove button which is no longer there

* Put back missing CSS to make the menu entry red

* Fix type error

* Fix tests

* Supply open / onOpenChange props

* Fix tests

* There is no hover anymore

* Use the computed name, not the name which may be null

* Fix room avatar remove behaviour

* Remove redundant else
2024-06-07 13:25:21 +00:00
..
__snapshots__ Add activity toggle for TAC (#12413) 2024-04-12 13:18:09 +00:00
account Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
devices MSC4108 support OIDC QR code login (#12370) 2024-06-06 09:57:28 +01:00
discovery Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
notifications Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
shared Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
tabs Fix display of no avatar in avatar setting controls (#12558) 2024-06-06 17:35:44 +00:00
AddPrivilegedUsers-test.tsx Expose apps/widgets (#12071) 2024-01-22 10:53:27 +00:00
AvatarSetting-test.tsx Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
ChangePassword-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
CrossSigningPanel-test.tsx Element-R: fix repeated requests to enter 4S key during cross-signing reset (#12059) 2023-12-15 14:59:36 +00:00
CryptographyPanel-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
EventIndexPanel-test.tsx Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
FontScalingPanel-test.tsx Use browser's font size instead of hardcoded 16px as root font size (#12246) 2024-02-21 11:23:07 +00:00
JoinRuleSettings-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
KeyboardShortcut-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
Notifications-test.tsx Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
PowerLevelSelector-test.tsx Change user permission by using a new apply button (#12346) 2024-03-19 13:45:23 +00:00
SecureBackupPanel-test.tsx SecureBackupPanel: stop using deprecated APIs, and other fixes (#11644) 2023-09-22 10:57:11 +00:00
SettingsFieldset-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
ThemeChoicePanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
UserProfileSettings-test.tsx Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00