element-web/res/css/components/views
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
..
beacon Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
context_menus Compound color pass (#11079) 2023-07-12 17:46:49 +00:00
dialogs/polls Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
elements Migrate TooltipTarget usage to compound Tooltip (#12542) 2024-05-22 12:15:07 +00:00
location Apply prettier formatting 2022-12-12 12:24:14 +01:00
messages Fix background on live location sharing footer (#12629) 2024-06-20 10:18:26 +00:00
pips Fix regression around CSS stacking contexts and PIP widgets (#12094) 2024-01-08 12:11:44 +00:00
polls Refine styles of controls to match Compound (#12299) 2024-03-05 04:25:47 +00:00
settings Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
spaces Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
utils Add Voice and Video call in room header (#11444) 2023-08-23 14:13:40 +00:00