element-web/test/test-utils
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.ts Fix seekbar position for zero length audio (#9949) 2023-01-23 17:28:31 +01:00
beacon.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call.ts Element Call: fix widget shown while its still loading (waitForIframeLoad=false) (#12292) 2024-03-12 16:55:01 +00:00
client.ts Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
composer.ts Update tests to prefer RTL over Enzyme (#10247 2023-02-28 08:58:23 +00:00
console.ts Use the same avatar colour when creating 1:1 DM rooms (#9850) 2023-01-05 17:05:21 +01:00
date.ts Poll history - read only list of polls in current timeline (#10055) 2023-02-02 21:39:23 +00:00
events.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
index.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
location.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
oidc.ts Update MSC2965 OIDC Discovery implementation (#12245) 2024-02-23 16:43:14 +00:00
platform.ts Improve client metadata used for OIDC dynamic registration (#12257) 2024-02-16 14:43:58 +00:00
poll.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
pushRules.ts Stabilize support for MSC3952: intentional mentions (#10967) 2023-07-11 22:29:54 +00:00
relations.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
room.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
test-utils.ts Take the Threads Activity Centre out of labs (#12439) 2024-04-29 15:30:19 +00:00
threads.ts Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
utilities.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
wrappers.tsx Prefer MatrixClientContext over MatrixClientPeg (#10986) 2023-06-14 13:42:07 +01:00