riot-web/src
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
accessibility Use `RovingAccessibleButton` instead of `RovingAccessibleTooltipButton` (#12539) 2024-05-17 10:29:30 +00:00
actions
async-components/views/dialogs Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
audio Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
autocomplete
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
customisations
dispatcher MSC4108 support OIDC QR code login (#12370) 2024-06-06 09:57:28 +01:00
editor Use `*` for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
effects
emojipicker
events
hooks Close the release announcement when a dialog is opened (#12559) 2024-05-29 07:22:50 +00:00
i18n/strings Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
indexing
integrations
mjolnir
models Fix beta notifications reconciliation for intentional mentions push rules (#12510) 2024-05-09 14:11:11 +00:00
modules
notifications
performance
rageshake Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
resizer
settings MSC3575 (Sliding Sync) add well-known proxy support (#12307) 2024-04-30 18:11:11 +00:00
slash-commands
stores Close the release announcement when a dialog is opened (#12559) 2024-05-29 07:22:50 +00:00
toasts Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00
usercontent
utils New user profile UI in User Settings (#12548) 2024-06-06 13:56:38 +00:00
voice-broadcast Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00
widgets
workers
AddThreepid.ts
AsyncWrapper.tsx
Avatar.ts
BasePlatform.ts Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543) 2024-06-05 08:52:28 +00:00
BlurhashEncoder.ts
ContentMessages.ts
DateUtils.ts
DecryptionFailureTracker.ts Add flag for tests to avoid double-reporting check (#12569) 2024-06-06 13:02:34 +00:00
DeviceListener.ts Report verification and recovery state to posthog (#12516) 2024-05-21 14:37:00 +00:00
Editing.ts
HtmlUtils.tsx Add room topic to right panel room info (#12503) 2024-05-10 10:00:43 +00:00
IConfigOptions.ts Allow explicit configuration of OIDC dynamic registration metadata (#12514) 2024-05-14 09:38:33 +00:00
IdentityAuthClient.tsx
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
LegacyCallHandler.tsx
Lifecycle.ts Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543) 2024-06-05 08:52:28 +00:00
Linkify.tsx
Livestream.ts
Login.ts
Markdown.ts
MatrixClientPeg.ts Element-R: pass pickleKey in as raw key for indexeddb encryption (#12543) 2024-06-05 08:52:28 +00:00
MediaDeviceHandler.ts
Modal.tsx Close the release announcement when a dialog is opened (#12559) 2024-05-29 07:22:50 +00:00
NodeAnimator.tsx
Notifier.ts
PageTypes.ts
PasswordReset.ts Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
PlatformPeg.ts
PlaybackEncoder.ts Reuse single PlaybackWorker between Playback instances (#12520) 2024-05-14 14:56:33 +00:00
PosthogAnalytics.ts Update all non-major dependencies (#12468) 2024-04-30 14:41:46 +00:00
PosthogTrackers.ts
Presence.ts
Registration.tsx
Resend.ts
Roles.ts
RoomAliasCache.ts
RoomInvite.tsx
RoomNotifs.ts
Rooms.ts
ScalarAuthClient.ts
ScalarMessaging.ts
SdkConfig.ts
Searching.ts Fix incorrect assumptions about required fields in /search response (#12575) 2024-06-06 20:22:37 +00:00
SecurityManager.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
SendHistoryManager.ts
SlashCommands.tsx
SlidingSyncManager.ts Remove code smell assertion identified by Sonar (#12547) 2024-05-21 13:49:12 +00:00
Terms.ts
TextForEvent.tsx
Typeguards.ts
Unread.ts
UserActivity.ts
UserAddress.ts
Views.ts
VoipUserMapper.ts
WhoIsTyping.ts
WorkerManager.ts
boundThreepids.ts
call-types.ts
createRoom.ts
email.ts
identifiers.ts
index.ts
languageHandler.tsx
linkify-matrix.ts
phonenumber.ts
sendTimePerformanceMetrics.ts
sentry.ts
shouldHideEvent.ts
theme.ts
verification.ts