element-web/test
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
..
@types
__snapshots__ fix selector so maths support doesn't mangle divs (#12433) 2024-04-16 16:53:57 +00:00
accessibility Improve Forward Dialog a11y by switching to roving tab index interactions (#12306) 2024-03-08 14:45:15 +00:00
actions/handlers Move session manager out of beta (#10968) 2023-05-26 01:58:28 +00:00
audio Move `mediaDevices` mock out of `setupManualMocks` (#11413) 2023-08-16 08:29:34 +00:00
autocomplete Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
components Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
contexts OIDC: Persist details in session storage, create store (#11302) 2023-07-20 21:30:19 +00:00
dispatcher
editor Deserialise spoilers back into slash command form (#11805) 2023-10-26 13:35:02 +00:00
events
hooks Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
i18n Use Intl for names of languages (#11427) 2023-08-22 14:07:16 +00:00
images
img
models Fix external guest access url for unencrypted rooms (#12345) 2024-03-28 12:25:00 +00:00
modules Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
notifications
settings Add analytics to activity toggles (#12418) 2024-04-22 16:15:29 +00:00
setup Locallazy: Convert even more strings (#11679) 2023-10-02 11:43:00 +01:00
stores Show the local echo in previews (#12451) 2024-04-24 09:22:07 +00:00
test-utils Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
toasts Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +00:00
utils Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
voice-broadcast Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
widgets Add config to skip widget_build_url for DM rooms (#11044) 2023-06-06 14:07:51 +00:00
Avatar-test.ts
ContentMessages-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
DecryptionFailureTracker-test.ts Use a different error message for UTDs when you weren't in the room. (#12453) 2024-04-29 17:18:57 +00:00
DeviceListener-test.ts DeviceListener: Remove usage of deprecated keybackup API (#11614) 2023-09-20 11:34:18 +00:00
HtmlUtils-test.tsx fix selector so maths support doesn't mangle divs (#12433) 2024-04-16 16:53:57 +00:00
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Lifecycle-test.ts Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
MediaDeviceHandler-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Notifier-test.ts Add ringing for matrixRTC (#11870) 2023-11-21 17:12:08 +00:00
PosthogAnalytics-test.ts Update all non-major dependencies (#12468) 2024-04-30 14:41:46 +00:00
PreferredRoomVersions-test.ts Allow creating knock rooms (#11182) 2023-07-10 08:01:03 +00:00
Reply-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
RoomNotifs-test.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Rooms-test.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
ScalarAuthClient-test.ts
SdkConfig-test.ts Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
SecurityManager-test.ts Set up key backup using non-deprecated APIs (2nd take) (#12098) 2024-01-10 10:34:03 +00:00
SlashCommands-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
SlidingSyncManager-test.ts Check native sliding sync support against an unstable feature flag (#12498) 2024-05-03 18:45:26 +00:00
Terms-test.tsx Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
TestSdkContext.ts
TextForEvent-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
Unread-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
UserActivity-test.ts Replace sinon fake timers with jest timers (#11275) 2023-07-17 12:29:51 +00:00
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00
createRoom-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
email-test.ts
globalSetup.ts Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
languageHandler-test.tsx Migrate more strings to translation keys (#11694) 2023-10-03 19:17:26 +01:00
linkify-matrix-test.ts Fix clicking MXID in timeline going to matrix.to (#11263) 2023-07-14 10:55:55 +00:00
predictableRandom.ts GYU: Account Notification Settings (#11008) 2023-06-29 15:46:31 +00:00
setupTests.ts Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
slowReporter.js
submit-rageshake-test.ts Add A-Element-R labels to rageshakes if rust (#12251) 2024-02-15 19:45:46 +00:00
theme-test.ts Enable custom themes to theme Compound (#12240) 2024-02-13 14:07:58 +00:00
useTopic-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00