element-web/test
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
..
@types
__snapshots__ fix selector so maths support doesn't mangle divs (#12433) 2024-04-16 16:53:57 +00:00
accessibility Improve Forward Dialog a11y by switching to roving tab index interactions (#12306) 2024-03-08 14:45:15 +00:00
actions/handlers Move session manager out of beta (#10968) 2023-05-26 01:58:28 +00:00
audio Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
autocomplete Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
components Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
contexts New user profile UI in User Settings (#12548) 2024-06-06 13:56:38 +00:00
dispatcher Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
editor Use * for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
events
hooks Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
i18n Use Intl for names of languages (#11427) 2023-08-22 14:07:16 +00:00
images
img
models Fix external guest access url for unencrypted rooms (#12345) 2024-03-28 12:25:00 +00:00
modules Replace SecurityCustomisations with CryptoSetupExtension (#12342) 2024-04-12 15:15:17 +00:00
notifications
settings Add analytics to activity toggles (#12418) 2024-04-22 16:15:29 +00:00
setup Locallazy: Convert even more strings (#11679) 2023-10-02 11:43:00 +01:00
stores Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
test-utils New user profile UI in User Settings (#12548) 2024-06-06 13:56:38 +00:00
toasts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
utils Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
voice-broadcast Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
widgets Add config to skip widget_build_url for DM rooms (#11044) 2023-06-06 14:07:51 +00:00
Avatar-test.ts
ContentMessages-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
createRoom-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
DecryptionFailureTracker-test.ts Add flag for tests to avoid double-reporting check (#12569) 2024-06-06 13:02:34 +00:00
DeviceListener-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
email-test.ts
globalSetup.ts Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
HtmlUtils-test.tsx fix selector so maths support doesn't mangle divs (#12433) 2024-04-16 16:53:57 +00:00
Image-test.ts
KeyBindingsManager-test.ts
languageHandler-test.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
LegacyCallHandler-test.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Lifecycle-test.ts Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543) 2024-06-05 08:52:28 +00:00
linkify-matrix-test.ts Fix clicking MXID in timeline going to matrix.to (#11263) 2023-07-14 10:55:55 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543) 2024-06-05 08:52:28 +00:00
MediaDeviceHandler-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Notifier-test.ts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
PosthogAnalytics-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
predictableRandom.ts GYU: Account Notification Settings (#11008) 2023-06-29 15:46:31 +00:00
PreferredRoomVersions-test.ts Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
Reply-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
RoomNotifs-test.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Rooms-test.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
ScalarAuthClient-test.ts
SdkConfig-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
SecurityManager-test.ts Set up key backup using non-deprecated APIs (2nd take) (#12098) 2024-01-10 10:34:03 +00:00
setupTests.ts Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
SlashCommands-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
SlidingSyncManager-test.ts Fix well-known lookup for sliding sync labs check (#12519) 2024-05-14 12:40:10 +00:00
slowReporter.js
submit-rageshake-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
Terms-test.tsx Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
TestSdkContext.ts
TextForEvent-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
theme-test.ts Enable custom themes to theme Compound (#12240) 2024-02-13 14:07:58 +00:00
Unread-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
UserActivity-test.ts Replace sinon fake timers with jest timers (#11275) 2023-07-17 12:29:51 +00:00
useTopic-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00