element-web-Github/test/components/structures
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
..
__snapshots__ Update @vector-im/compound-web (#12675) 2024-06-24 12:51:10 +00:00
auth Stop using deprecated methods, fields & exports (#12524) 2024-05-15 14:58:28 +00:00
AutocompleteInput-test.tsx Clear autocomplete input on selection accept (#12709) 2024-07-02 09:38:20 +00:00
ContextMenu-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
LargeLoader-test.tsx Start DM on first message (#8612) 2022-08-04 08:19:52 +02:00
LeftPanel-test.tsx Show filterContainer if "UIComponent.filterContainer" is enabled (#10381) 2023-03-21 09:06:43 +00:00
LegacyCallEventGrouper-test.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
LoggedInView-test.tsx Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
MainSplit-test.tsx Allow maintaining a different right panel width for thread panels (#11064) 2023-06-15 11:57:58 +00:00
MatrixChat-test.tsx Fix widgets not being cleaned up correctly. (#12616) 2024-06-17 11:00:41 +00:00
MatrixClientContextProvider-test.tsx New context for local device verification (#12417) 2024-04-16 09:43:27 +00:00
MessagePanel-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
PictureInPictureDragger-test.tsx Enable jsx-a11y/click-events-have-key-events eslint rule (#10362) 2023-08-09 06:27:31 +00:00
PipContainer-test.tsx Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +00:00
ReleaseAnnouncement-test.tsx Close the release announcement when a dialog is opened (#12559) 2024-05-29 07:22:50 +00:00
RightPanel-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
RoomSearchView-test.tsx Redesign room search interface (#12677) 2024-07-08 09:57:41 +00:00
RoomStatusBar-test.tsx Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
RoomStatusBarUnsentMessages-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomView-test.tsx Remove references to some deprecated js-sdk identifiers (#12729) 2024-07-04 15:50:07 +00:00
SpaceHierarchy-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
TabbedView-test.tsx Make TabbedView a controlled component (#12480) 2024-05-03 15:01:01 +00:00
ThreadPanel-test.tsx Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
ThreadView-test.tsx Fix flaky jest tests (#12486) 2024-05-02 14:53:35 +00:00
TimelinePanel-test.tsx Use new compound tooltip 2024-04-12 14:56:23 +02:00
UploadBar-test.tsx Re-key all |zero-pluralised translations for Localazy compatibility (#11417) 2023-08-16 15:26:21 +00:00
UserMenu-test.tsx MSC4108 support OIDC QR code login (#12370) 2024-06-06 09:57:28 +01:00
ViewSource-test.tsx Avoid using deprecated exports & methods from matrix-js-sdk (#12359) 2024-03-25 12:21:02 +00:00