element-web-Github/test/components/views
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
..
audio_messages Accessibility improvements around aria-labels and tooltips (#12062) 2024-01-05 10:59:41 +00:00
auth Tooltip: migrate remaining tooltips from AccessibleTooltipButton to AccessibleButton (#12522) 2024-05-17 14:11:07 +00:00
avatars Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
beacon Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
beta Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
context_menus Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
dialogs Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
elements Redesign room search interface (#12677) 2024-07-08 09:57:41 +00:00
emojipicker Fix roving tab index crash compareDocumentPosition (#12594) 2024-06-11 09:11:52 +00:00
location Minor tweaks to UserSettings dialog (#12651) 2024-06-20 09:29:38 +00:00
messages Add more test for ReactionsRowButton.tsx 2024-05-22 16:24:09 +02:00
polls/pollHistory Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
right_panel Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
room_settings Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
rooms Add tabs to the right panel (#12672) 2024-07-09 11:36:50 +00:00
settings Promote new room header from labs to Beta (#12739) 2024-07-09 09:45:48 +00:00
spaces New theme ui in user settings (#12576) 2024-06-26 15:47:01 +00:00
toasts Remove references to matrix-js-sdk/src/crypto/verification (#12365) 2024-03-25 17:44:45 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00