element-web-Github/test/components/views/dialogs
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__ Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
devtools Fix display of room notification debug info (#12183) 2024-01-29 12:38:37 +00:00
security Add support for device dehydration v2 (#12316) 2024-04-15 15:47:15 +00:00
spotlight Migrate more strings to translation keys (#11671) 2023-09-26 18:35:55 +01:00
AccessSecretStorageDialog-test.tsx Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00
AppDownloadDialog-test.tsx Avoid rendering app download buttons if disabled in config (#11741) 2023-10-13 09:43:39 +00:00
AskInviteAnywayDialog-test.tsx Add tests for AskInviteAnywayDialog (#10228) 2023-02-23 10:52:58 +00:00
ChangelogDialog-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
ConfirmRedactDialog-test.tsx Fix jest/valid-expects lints (#11238) 2023-07-13 15:19:44 +00:00
ConfirmUserActionDialog-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
CreateRoomDialog-test.tsx Allow creating public knock rooms (#11481) 2023-09-04 16:09:44 +00:00
DevtoolsDialog-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
ExportDialog-test.tsx Remove Enzyme tests in favour of React testing-library (#10289) 2023-03-06 12:13:17 +00:00
FeedbackDialog-test.tsx Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
ForwardDialog-test.tsx Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
IncomingSasDialog-test.tsx Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00
InteractiveAuthDialog-test.tsx Conform more of the codebase to strict types (#11191) 2023-07-05 11:53:22 +01:00
InviteDialog-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
LogoutDialog-test.tsx LogoutDialog: Remove usage of deprecated keybackup API (#11645) 2023-09-21 18:34:10 +00:00
ManageRestrictedJoinRuleDialog-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
ManualDeviceKeyVerificationDialog-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
MessageEditHistoryDialog-test.tsx Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
RoomSettingsDialog-test.tsx Avoid importing mkEvent from matrix-js-sdk/spec since that is not in the package (#11450) 2023-08-23 09:51:27 +00:00
ServerPickerDialog-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
ShareDialog-test.tsx Fix typing issues 2024-04-15 16:06:01 +02:00
SpotlightDialog-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
UserSettingsDialog-test.tsx Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00