element-web/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
LargeLoader-test.tsx
LeftPanel-test.tsx
LegacyCallEventGrouper-test.ts
LoggedInView-test.tsx Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
MainSplit-test.tsx
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
PictureInPictureDragger-test.tsx
PipContainer-test.tsx
ReleaseAnnouncement-test.tsx Close the release announcement when a dialog is opened (#12559) 2024-05-29 07:22:50 +00:00
RightPanel-test.tsx
RoomSearchView-test.tsx Redesign room search interface (#12677) 2024-07-08 09:57:41 +00:00
RoomStatusBar-test.tsx
RoomStatusBarUnsentMessages-test.tsx
RoomView-test.tsx Remove references to some deprecated js-sdk identifiers (#12729) 2024-07-04 15:50:07 +00:00
SpaceHierarchy-test.tsx
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
UploadBar-test.tsx
UserMenu-test.tsx MSC4108 support OIDC QR code login (#12370) 2024-06-06 09:57:28 +01:00
ViewSource-test.tsx