element-web/test
R Midhun Suresh cf8b87fd14
Add tabs to the right panel (#12672)
* Create new method for header button behaviour

With the introduction of tabs, the behaviour of the header buttons is
changed as follows:
- Close any right panel if open
- Open the correct right panel if no panel was open before

The old method (and behaviour) is retained as showOrHidePhase.

* Implement tabs in the right panel

There are three tabs: Info, People and Threads

* Remove unwanted code from RoomSummaryCard

- Remove the menu item for opening the memberlist since that is now
  taken of by the tabs.
- Remove the close button

* Remove code for focusing close button from tac item

See https://github.com/matrix-org/matrix-react-sdk/pull/12410

There's no longer a close button to focus so we instead focus the thread
tab. This is done in RightPaneltabs.tsx so we just need to remove this
code.

* Introduce a room info icon to the header

This was previously present in the legacy room header but not in the new
header.

* BaseCard changes

- Adds id, ariaLabelledBy and role props to implement tab accessibility.
- Adds hideHeaderButtons prop to hide header buttons (think back and
  close buttons).
- Change confusing header rendering code:
  header is not rendered ONLY when no header is passed AND
  hideHeaderButtons is true.

* Refactor repeated code into function

Created a new function createSpaceScopeHeader which returns the
component if the room is a space room. Previously this code was
duplicated in every component that uses SpaceScopeHeader component.

* Pass BaseCard attributes and use helper function

Actually using the code from the last two commits

* Add, update and remove tests/screenshots/snapshots

* Fix distance between search bar and tabs

* Update compound

* Update screenshots/snapshots
2024-07-09 11:36:50 +00:00
..
@types
__snapshots__ Don't consider textual characters to be emoji (#12582) 2024-07-04 17:48:07 +00:00
accessibility Fix roving tab index crash compareDocumentPosition (#12594) 2024-06-11 09:11:52 +00:00
actions/handlers
audio Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
autocomplete
components Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
contexts New user profile UI in User Settings (#12548) 2024-06-06 13:56:38 +00:00
dispatcher
editor Use * for italics as it doesn't break when used mid-word (#12523) 2024-05-15 09:01:45 +00:00
events
hooks Show tooltips on narrow tabbed views (#12624) 2024-06-14 14:17:46 +00:00
i18n
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 Promote new room header from labs to Beta (#12739) 2024-07-09 09:45:48 +00:00
setup Fix incoming call toast crash due to audio refactor (#12737) 2024-07-08 12:44:54 +00:00
stores Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
test-utils Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
toasts Fix incoming call toast crash due to audio refactor (#12737) 2024-07-08 12:44:54 +00:00
utils Switch to Rust crypto stack for all logins (#12630) 2024-06-24 09:14:42 +00:00
voice-broadcast Prevent Element appearing in system media controls (#10995) 2024-07-04 18:08:06 +00:00
widgets
Avatar-test.ts
ContentMessages-test.ts Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00
createRoom-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
DecryptionFailureTracker-test.ts Add flag for tests to avoid double-reporting check (#12569) 2024-06-06 13:02:34 +00:00
DeviceListener-test.ts Remove references to some deprecated js-sdk identifiers (#12729) 2024-07-04 15:50:07 +00:00
email-test.ts
globalSetup.ts
HtmlUtils-test.tsx Don't consider textual characters to be emoji (#12582) 2024-07-04 17:48:07 +00:00
Image-test.ts
KeyBindingsManager-test.ts
languageHandler-test.tsx
LegacyCallHandler-test.ts Prevent Element appearing in system media controls (#10995) 2024-07-04 18:08:06 +00:00
Lifecycle-test.ts Remove redundant call to setCrypto (#12738) 2024-07-08 10:57:54 +00:00
linkify-matrix-test.ts
Markdown-test.ts
MatrixClientPeg-test.ts Switch to Rust crypto stack for all logins (#12630) 2024-06-24 09:14:42 +00:00
MediaDeviceHandler-test.ts
Modal-test.ts Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
Notifier-test.ts Prevent Element appearing in system media controls (#10995) 2024-07-04 18:08:06 +00:00
PosthogAnalytics-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
predictableRandom.ts
PreferredRoomVersions-test.ts
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
ScalarAuthClient-test.ts
SdkConfig-test.ts
SecurityManager-test.ts Set up key backup using non-deprecated APIs (2nd take) (#12098) 2024-01-10 10:34:03 +00:00
setupTests.ts Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
SlashCommands-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
SlidingSyncManager-test.ts Fix well-known lookup for sliding sync labs check (#12519) 2024-05-14 12:40:10 +00:00
slowReporter.js
submit-rageshake-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts Avoid using deprecated exports, fields, and duplicate code (#12555) 2024-05-28 08:41:20 +01:00
theme-test.ts Enable custom themes to theme Compound (#12240) 2024-02-13 14:07:58 +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
useTopic-test.tsx
WorkerManager-test.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00