-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New room list: basic flat list #29368
New room list: basic flat list #29368
Conversation
db555f8
to
f1a34bf
Compare
f1a34bf
to
8828730
Compare
8828730
to
58b2a25
Compare
58b2a25
to
57fa7ad
Compare
57fa7ad
to
d363243
Compare
d363243
to
86164ff
Compare
86164ff
to
c01ab50
Compare
c01ab50
to
26e12ba
Compare
2606f35
to
852d08e
Compare
852d08e
to
2662f25
Compare
b008a30
to
e329640
Compare
5a43d0f
to
baaee20
Compare
baaee20
to
f0a78ec
Compare
/** | ||
* A cell in the room list | ||
*/ | ||
export function RoomListCell({ room, ...props }: RoomListCellProps): JSX.Element { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if this component eventually had it's own vm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, it can be introduced when adding the hover menu I think. In all cases, this component needs the room in props so it will be an empty vm here.
We can move the Action.ViewRoom
dispatcher un when we will add this vm
Task https://github.com/element-hq/wat-internal/issues/204
Figma design
This PR introduces a new virtualised room list.
Component architecture:
RoomListCell
: a cell without virtualisation information.RoomList
: handle virtualisation of the list.RoomListView
: bring the room list and the future room filters together. Both are usingroomListViewModel
.RoomListPanel
: the complete room list panel: search, header and the room list view.The PR doesn't include:
About accessibility. The virtualised list doesn't have the ideal a11y role:
These roles can be changed manually on some nodes managed by
react-virtualized
. It will be a bit dirty and I prefer to play with it in a dedicated PR. See #29430Demo
Screen.Recording.2025-03-03.at.16.09.53.mov