element-web/src
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
..
@types Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
accessibility Update dependency typescript to v5.4.5 (#12422) 2024-04-30 15:28:23 +00:00
actions Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
async-components/views/dialogs Add support for device dehydration v2 (#12316) 2024-04-15 15:47:15 +00:00
audio Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
autocomplete Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
components Make TabbedView a controlled component (#12480) 2024-05-03 15:01:01 +00:00
contexts New context for local device verification (#12417) 2024-04-16 09:43:27 +00:00
customisations Reuse media content/info types from the js-sdk (#12308) 2024-03-11 09:30:00 +00:00
dispatcher Focus the thread panel when clicking on an item in the TAC (#12410) 2024-04-10 13:13:08 +00:00
editor Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
effects Migrate more strings to translation keys (#11579) 2023-09-08 09:58:31 +01:00
emojipicker
events Stop displaying verification done messages in timeline (#11932) 2023-12-01 09:12:38 +00:00
hooks Take the Threads Activity Centre out of labs (#12439) 2024-04-29 15:30:19 +00:00
i18n/strings [create-pull-request] automated change (#12476) 2024-05-01 06:22:30 +00:00
indexing Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
integrations Remove dead & duplicated code (#11405) 2023-08-15 08:43:15 +00:00
mjolnir Improve types for `sendStateEvent` (#12331) 2024-03-20 14:27:29 +00:00
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 Fix: sync intentional mentions push rules with legacy rules (#11667) 2023-09-27 00:03:38 +00:00
performance
rageshake Add A-Element-R labels to rageshakes if rust (#12251) 2024-02-15 19:45:46 +00:00
resizer
settings MSC3575 (Sliding Sync) add well-known proxy support (#12307) 2024-04-30 18:11:11 +00:00
slash-commands Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
stores Take the Threads Activity Centre out of labs (#12439) 2024-04-29 15:30:19 +00:00
toasts Merge branch 'refs/heads/develop' into florianduros/tooltip-update 2024-04-15 15:13:51 +02:00
usercontent
utils Make TabbedView a controlled component (#12480) 2024-05-03 15:01:01 +00:00
voice-broadcast Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
widgets Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
workers Appease the linter 2023-11-18 21:37:49 +01:00
AddThreepid.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
AsyncWrapper.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Avatar.ts Fixes read receipt avatar offset (#11483) 2023-08-30 11:47:35 +00:00
BasePlatform.ts Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
BlurhashEncoder.ts Fix paths and extensions 2023-11-13 20:10:55 +01:00
ContentMessages.ts Improve types for `sendEvent` (#12335) 2024-03-25 12:48:48 +00:00
DateUtils.ts Port more strings to translation keys (#11474) 2023-08-31 07:35:34 +00:00
DecryptionFailureTracker.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.ts DeviceListener: Remove usage of deprecated keybackup API (#11614) 2023-09-20 11:34:18 +00:00
Editing.ts
HtmlUtils.tsx fix selector so maths support doesn't mangle divs (#12433) 2024-04-16 16:53:57 +00:00
IConfigOptions.ts Call guest access link creation to join calls as a non registered user via the EC SPA (#12259) 2024-03-07 15:38:53 +00:00
IdentityAuthClient.tsx Fix Identity Server terms accepting not working as expected (#12109) 2024-01-08 10:27:03 +00:00
ImageUtils.ts
KeyBindingsDefaults.ts
KeyBindingsManager.ts
Keyboard.ts
LegacyCallHandler.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Lifecycle.ts Extract functions for service worker usage, and add initial MSC3916 playwright test (when supported) (#12414) 2024-05-02 22:19:55 +00:00
Linkify.tsx Linkify User Interactive Authentication errors (#12271) 2024-04-16 11:34:44 +01:00
Livestream.ts
Login.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
Markdown.ts Treat lists with a single empty item as plain text, not Markdown. (#6833) 2023-08-17 16:37:19 +00:00
MatrixClientPeg.ts Improve comments and types in MatrixClientPeg (#12477) 2024-05-01 13:22:29 +00:00
MediaDeviceHandler.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Modal.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
NodeAnimator.tsx Fix regression around read receipt animation from refs changes (#12100) 2024-01-03 11:36:11 +00:00
Notifier.ts Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
PageTypes.ts
PasswordReset.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
PlatformPeg.ts
PosthogAnalytics.ts Update all non-major dependencies (#12468) 2024-04-30 14:41:46 +00:00
PosthogTrackers.ts Update dependency @vector-im/compound-web to v0.9.4 (#11891) 2023-12-14 11:10:01 +00:00
Presence.ts Switch to updating presence via /sync calls instead of PUT /presence (#11824) 2023-11-01 10:49:47 +00:00
Registration.tsx Migrate more strings to translation keys (#11608) 2023-09-19 07:17:31 +01:00
Resend.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
Roles.ts Migrate more strings to translation keys (#11498) 2023-08-31 11:22:10 +01:00
RoomAliasCache.ts
RoomInvite.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
RoomNotifs.ts Mark as Unread (#12254) 2024-03-19 13:28:20 +00:00
Rooms.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
ScalarAuthClient.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
ScalarMessaging.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
SdkConfig.ts Show all labs flags if developerMode enabled (#11746) 2023-10-13 13:24:00 +00:00
Searching.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
SecurityManager.ts Replace `SecurityCustomisations` with `CryptoSetupExtension` (#12342) 2024-04-12 15:15:17 +00:00
SendHistoryManager.ts Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
SlashCommands.tsx Merge branch 'develop' into andybalaam/stas-demydiuk-membership-type3 2024-03-20 17:25:23 +00:00
SlidingSyncManager.ts Use OPTIONS for sliding sync detection poke (#12492) 2024-05-03 06:31:34 +00:00
Terms.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
TextForEvent.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
Typeguards.ts
Unread.ts Pop out of Threads Activity Centre (#12136) 2024-02-07 13:49:40 +00:00
UserActivity.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
UserAddress.ts
Views.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
VoipUserMapper.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
WhoIsTyping.ts Migrate more strings to translation keys (#11530) 2023-09-05 10:44:41 +01:00
WorkerManager.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00
boundThreepids.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call-types.ts Extract types for re-use in matrix-js-sdk.d.ts (#12350) 2024-03-19 10:19:38 +00:00
createRoom.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
email.ts
identifiers.ts
index.ts
languageHandler.tsx Update custom translations to support nested fields in structured JSON (#11685) 2023-10-02 10:44:25 +00:00
linkify-matrix.ts Enable redirected media by default (#12142) 2024-02-11 07:32:57 +00:00
phonenumber.ts Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
sendTimePerformanceMetrics.ts
sentry.ts Update dependency @sentry/browser to v7.94.1 (#12171) 2024-01-24 09:23:54 +00:00
shouldHideEvent.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
theme.ts Revert "Make EC widget theme reactive - Update widget url when the theme chan…" (#12382) 2024-03-28 12:04:14 +00:00
verification.ts Remove references to `matrix-js-sdk/src/crypto/verification` (#12365) 2024-03-25 17:44:45 +00:00