element-web/test/components/views/settings
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
..
__snapshots__ Add activity toggle for TAC (#12413) 2024-04-12 13:18:09 +00:00
account Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
devices Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
discovery Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
notifications Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
shared Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
tabs Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
AddPrivilegedUsers-test.tsx Expose apps/widgets (#12071) 2024-01-22 10:53:27 +00:00
AvatarSetting-test.tsx Improve avatar settings accessibility (#9985) 2023-01-27 07:57:24 +00:00
ChangePassword-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
CrossSigningPanel-test.tsx Element-R: fix repeated requests to enter 4S key during cross-signing reset (#12059) 2023-12-15 14:59:36 +00:00
CryptographyPanel-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
EventIndexPanel-test.tsx Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
FontScalingPanel-test.tsx Use browser's font size instead of hardcoded 16px as root font size (#12246) 2024-02-21 11:23:07 +00:00
JoinRuleSettings-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
KeyboardShortcut-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
Notifications-test.tsx Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
PowerLevelSelector-test.tsx Change user permission by using a new apply button (#12346) 2024-03-19 13:45:23 +00:00
SecureBackupPanel-test.tsx SecureBackupPanel: stop using deprecated APIs, and other fixes (#11644) 2023-09-22 10:57:11 +00:00
SettingsFieldset-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
ThemeChoicePanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00