element-web/test/components/views
David Baker 18ef97161a
Move the active tab in user settings to the dialog title (#12481)
* Convert tabbedview to functional component

The 'Tab' is still a class, so now it's a functional component that
has a supporting class, which is maybe a bit... jarring, but I think
is actually perfectly logical.

* put comment back

* Fix bad tab ID behaviour

* Make TabbedView a controlled component

This does mean the logic of keeping what tab is active is now in each
container component, but for a functional component, this is a single
line. It makes TabbedView simpler and the container components always
know exactly what tab is being displayed rather than having to effectively
keep the state separately themselves if they wanted it.

Based on https://github.com/matrix-org/matrix-react-sdk/pull/12478

* Move the active tab in user settings to the dialog title

Separated by a colon, as per the new design.

* Update snapshots

* Update a playwright test

* Fix more tests / snapshots

* Attempt to test all the cases of titleForTabID

* More tests
2024-05-07 09:32:24 +00:00
..
audio_messages Accessibility improvements around aria-labels and tooltips (#12062) 2024-01-05 10:59:41 +00:00
auth Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
avatars Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
beacon Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
beta Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
context_menus Merge branch 'develop' into andybalaam/stas-demydiuk-membership-type3 2024-03-20 17:25:23 +00:00
dialogs Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
elements Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
messages Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
polls/pollHistory Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
right_panel Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
rooms Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
settings Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
spaces Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
toasts Remove references to matrix-js-sdk/src/crypto/verification (#12365) 2024-03-25 17:44:45 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Fix typing issues 2024-04-15 16:06:01 +02:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00