element-web-Github/test/components/views/elements
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
..
__snapshots__ Tooltip: Use AccessibleButton in reusable elements (#12461) 2024-04-29 17:19:05 +00:00
crypto Simplify references to VerificationRequest (#11045) 2023-06-07 14:43:44 +00:00
AccessibleButton-test.tsx Migrate AccessibleButton-test to RTL (#9833) 2022-12-28 10:40:34 +00:00
AppTile-test.tsx Add Tooltip to AccessibleButton (#12443) 2024-04-24 12:24:25 +00:00
DesktopCapturerSourcePicker-test.tsx Make TabbedView a controlled component (#12480) 2024-05-03 15:01:01 +00:00
EventListSummary-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
ExternalLink-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
FacePile-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
Field-test.tsx Improved a11y for Field feedback and Secure Phrase input (#10320) 2023-03-08 11:32:50 +00:00
FilterDropdown-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
FilterTabGroup-test.tsx Poll history - filter by active or ended (#10098) 2023-02-13 09:19:45 +13:00
ImageView-test.tsx Tooltip: Use AccessibleButton in reusable elements (#12461) 2024-04-29 17:19:05 +00:00
InfoTooltip-test.tsx Fix typing issues 2024-04-15 16:06:01 +02:00
InteractiveTooltip-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
LabelledCheckbox-test.tsx Allow creating public knock rooms (#11481) 2023-09-04 16:09:44 +00:00
LearnMore-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
Pill-test.tsx Fix typing issues 2024-04-15 16:06:01 +02:00
PollCreateDialog-test.tsx Improve types for sendEvent (#12335) 2024-03-25 12:48:48 +00:00
PowerSelector-test.tsx Reset power selector on API failure to prevent state mismatch (#12319) 2024-03-08 11:58:36 +00:00
ProgressBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
QRCode-test.tsx Replace getQRCodeBytes with generateQRCode (#11241) 2023-07-13 13:55:55 +00:00
ReplyChain-test.tsx Remove tests of non-spec-compliant behaviour (#10248) 2023-02-27 18:50:15 +00:00
RoomFacePile-test.tsx Fix typing issues 2024-04-15 16:06:01 +02:00
RoomTopic-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
SpellCheckLanguagesDropdown-test.tsx Use Intl for names of languages (#11427) 2023-08-22 14:07:16 +00:00
StyledRadioGroup-test.tsx Conform more code to strict null checking (#10153) 2023-02-15 13:36:22 +00:00
SyntaxHighlight-test.tsx Improve code-splitting of highlight.js and maplibre-gs libs (#12349) 2024-03-20 13:39:20 +00:00
TooltipTarget-test.tsx Replace react-dom tests with react testing-library tests (#10260) 2023-03-01 15:59:27 +00:00