element-web-Github/test/stores/room-list
David Baker 9254e9562e
Don't reference the notification levels by colour (#12138)
* Don't reference the notification levels by colour

We're about to change what colours they are so either we'd have to rename
a bunch of constants. We may as well make things not reference what colour
anything is in the actual UI. Hopefully these constants are clear enough.

 * Rename NotificationColor -> NotificationLevel
 * Red -> Highlight
 * Grey -> Notification
 * Bold -> Activity
 * Anywhere else that calls it 'color' -> 'level'

Also fixes some weird mixes of US & UK English.

It turns out this is referenced in... quite a lot of places, so this is
quite a large PR. It can't really be much smaller, sorry.

* One test rename & some hiding due to ts-ignore

* More hiding behind ts-ignore

* Damn you, @ts-ignore...

* Fix test CSS values

* Missed some colour -> level

Co-authored-by: Florian Duros <florianduros@element.io>

* Change other instances of variables renamed in suggestion

* Update new test for renames

---------

Co-authored-by: Florian Duros <florianduros@element.io>
2024-01-15 15:25:48 +00:00
..
algorithms Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
filters Conform more code to strict null checking (#10167) 2023-02-16 17:21:44 +00:00
previews Use MatrixClientPeg::safeGet in src/{stores,hooks,components/structures}/* (#10988) 2023-06-15 15:11:49 +01:00
utils Sort muted rooms to the bottom of their section of the room list (#10592) 2023-05-05 01:53:26 +00:00
MessagePreviewStore-test.ts Conform more of the codebase to strictNullChecks (#11100) 2023-06-22 14:39:36 +01:00
RoomListStore-test.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
SlidingRoomListStore-test.ts Conform more of the codebase to strict typing (#11195) 2023-07-07 09:02:13 +01:00
SpaceWatcher-test.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00