Add low priority filter pill to the room list UI (#30060)

* Add low priority filter pill to the UI

* Fix tests
This commit is contained in:
R Midhun Suresh
2025-06-02 13:50:15 +05:30
committed by GitHub
parent c6445bbc2c
commit 7d69ce39d9
18 changed files with 38 additions and 2 deletions

View File

@@ -66,9 +66,17 @@ describe("RoomListViewModel", () => {
mockAndCreateRooms();
const { result: vm } = renderHook(() => useRoomListViewModel());
// should have 6 filters
expect(vm.current.primaryFilters).toHaveLength(6);
expect(vm.current.primaryFilters).toHaveLength(7);
// check the order
for (const [i, name] of ["Unreads", "People", "Rooms", "Mentions", "Invites", "Favourites"].entries()) {
for (const [i, name] of [
"Unreads",
"People",
"Rooms",
"Mentions",
"Invites",
"Favourites",
"Low priority",
].entries()) {
expect(vm.current.primaryFilters[i].name).toEqual(name);
expect(vm.current.primaryFilters[i].active).toEqual(false);
}