Skip to content

Room list: add default sections#32785

Merged
florianduros merged 22 commits intodevelopfrom
florianduros/default-sections
Mar 31, 2026
Merged

Room list: add default sections#32785
florianduros merged 22 commits intodevelopfrom
florianduros/default-sections

Conversation

@florianduros
Copy link
Copy Markdown
Member

@florianduros florianduros commented Mar 12, 2026

Closes #32452

This PR adds the support of the favourite and low priority default sections under the feature_room_list_sections labs flag.

The PR main content is the sections support in the room list store and in the room list view model. The sections support in the views were added in #32735 and #32566.

Screen.Recording.2026-03-25.at.16.29.22.mov

@florianduros florianduros force-pushed the florianduros/default-sections branch 2 times, most recently from 47a8dfb to c853af8 Compare March 16, 2026 17:10
@florianduros florianduros force-pushed the florianduros/default-sections branch from c853af8 to d57acac Compare March 18, 2026 16:41
@florianduros florianduros force-pushed the florianduros/default-sections branch from d57acac to 712fbbb Compare March 18, 2026 16:44
@florianduros florianduros force-pushed the florianduros/default-sections branch from 712fbbb to 2f13fad Compare March 19, 2026 15:14
@florianduros florianduros force-pushed the florianduros/default-sections branch from 2f13fad to 049c49f Compare March 20, 2026 08:30
/**
* Contains all the rooms in the active space
*/
private rooomSkipList?: RoomSkipList;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private rooomSkipList?: RoomSkipList;
private roomSkipList?: RoomSkipList;

typo

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/**
* Maps section tags to their corresponding skip lists.
*/
private roomSkipListByTag: Map<string, RoomSkipList> = new Map();
Copy link
Copy Markdown
Member

@MidhunSureshR MidhunSureshR Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could have just used the existing single skip-list. If you add the the section filters to the skip-list, then could you not just call this.roomSkipList.getRoomsInActiveSpace(filterKeyForSection)?

Copy link
Copy Markdown
Member Author

@florianduros florianduros Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm that's a valid suggestion, i'll try to do it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible overall. Caught a few things but nothing serious.

Copy link
Copy Markdown
Member

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a satisfied customer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Room list: sections - P1 add default section (favourites and low priority)

3 participants