element-web/src
David Baker 4751c52d82
Refactor the various email/phone management UI into a single component (#12884)
* Refactor the various email/phone management UI into a single component

These were basically the same component copied & pasted 3 times and
tweaked to match the behaviour of each case. This de-dupes them into
one component.

This all could really benefit from playwright tests, but would require
setting up a dummy ID server in the playwright tests. This is all legacy
pre-MAS stuff so its questionable whether its worth the effort.

* Basic test, remove old tests

* Use different text to confirm remove & put headers back

although the two texts are both 'Remove' in practice

* Remove string

This was never triggered anyway with sydent & synapse because they
don't seem to agree on what error to return. In any case, I think it
makes more sense for it to be consistent with the email path, ie. using
a dialog.

* Avoid nested forms

* Snapshots

* More snapshots

* Test the hs side

* Snapshots

* Test IS bind/revoke

* Test remove can be cancelled

* Test unvalidated cases & fix phone error

* Reset state between tests

* Import useState directly

* One more direct React import
2024-08-14 13:13:57 +00:00
..
@types
accessibility
actions
async-components/views/dialogs
audio
autocomplete
components Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
contexts
customisations
dispatcher
editor
effects
emojipicker
events
hooks
i18n/strings Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
indexing
integrations
mjolnir
models
modules
notifications
performance
rageshake
resizer
settings
slash-commands
stores
toasts
usercontent
utils
voice-broadcast
widgets
workers
AddThreepid.ts Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
AsyncWrapper.tsx
Avatar.ts
BasePlatform.ts
BlurhashEncoder.ts
boundThreepids.ts
call-types.ts
ContentMessages.ts
createRoom.ts
DateUtils.ts
DecryptionFailureTracker.ts
DeviceListener.ts
DraftCleaner.ts
Editing.ts
email.ts
HtmlUtils.tsx
IConfigOptions.ts
identifiers.ts
IdentityAuthClient.tsx
ImageUtils.ts
index.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
languageHandler.tsx
LegacyCallHandler.tsx
Lifecycle.ts
linkify-matrix.ts
Linkify.tsx
Livestream.ts
Login.ts
Markdown.ts
MatrixClientPeg.ts
MediaDeviceHandler.ts
Modal.tsx
NodeAnimator.tsx
Notifier.ts
PageTypes.ts
PasswordReset.ts
phonenumber.ts
PlatformPeg.ts
PlaybackEncoder.ts
PosthogAnalytics.ts
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
SecurityManager.ts
SendHistoryManager.ts
sendTimePerformanceMetrics.ts
sentry.ts
shouldHideEvent.ts
SlashCommands.tsx
SlidingSyncManager.ts
SupportedBrowser.ts
Terms.ts
TextForEvent.tsx
theme.ts
Typeguards.ts
Unread.ts
UserActivity.ts
UserAddress.ts
verification.ts
Views.ts
VoipUserMapper.ts
WhoIsTyping.ts
WorkerManager.ts