element-web/test/components/views
David Baker 9684dd5145
Make TabbedView a controlled component (#12480)
* 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

* Fix some types & unused prop

* Remove weird behaviour of using first tab is active isn't valid

* Don't pass initialTabID here now it no longer has the prop

* Fix test

* bleh... id, not icon

* Change to sub-components

and use contitional call syntax

* Comments

* Fix element IDs

* Fix merge

* Test DesktopCapturerSourcePicker

to make sonarcloud the right colour

* Use custom hook for the fllback tab behaviour
2024-05-03 15:01:01 +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 Update tests 2024-04-15 16:56:54 +02:00
beacon Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +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 Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
elements Make TabbedView a controlled component (#12480) 2024-05-03 15:01:01 +00:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Add Tooltip to AccessibleButton (#12443) 2024-04-24 12:24:25 +00:00
messages Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
polls/pollHistory Fix typing issues 2024-04-15 16:06:01 +02:00
right_panel Tooltip: improve accessibility of the right panel (#12490) 2024-05-03 08:44:04 +00:00
rooms Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
settings Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
spaces Tooltip: improve accessibility of spaces (#12497) 2024-05-03 14:07:11 +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