element-web/test/components/views
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
..
audio_messages Accessibility improvements around aria-labels and tooltips (#12062) 2024-01-05 10:59:41 +00:00
auth Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
avatars Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
beacon Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +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 Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
dialogs Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
elements Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Fix colour of avatar and colour matching with username (#11470) 2023-08-24 17:12:28 +00:00
messages Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
polls/pollHistory Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
right_panel Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
rooms Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
settings Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
spaces Don't reference the notification levels by colour (#12138) 2024-01-15 15:25:48 +00:00
toasts Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +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 Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Load SAS Emoji translations from @matrix-org/spec (#11429) 2023-08-21 08:15:22 +00:00