element-web-Github/test/components/views
David Baker a5ed97b903
Mark as Unread (#12254)
* Support the mark as unread flag

* Add mark as unread menu option

and make clering notifications also clear the unread flag

* Mark as read on viewing room

* Tests

* Remove random import

* Don't show mark as unread for historical rooms

* Fix tests & add test for menu option

* Test RoomNotificationState updates on unread flag change

* Test it doesn't update on other room account data

* New icon for mark as unread

* Add analytics events for mark as (un)read

* Bump to new analytics-events package

* Read from both stable & unstable prefixes

* Cast to boolean before checking

to avoid setting state unnecessarily

* Typo

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Doc external interface (and the rest at the same time)

* Doc & rename unread market set function

* Doc const exports

* Remove listener on destroy

* Add playwright test

* Clearer language, hopefully

* Move comment

* Add reference to the MSC

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Expand on function doc

* Remove empty beforeEach

* Rejig badge logic a little and add tests

* Fix basdges to not display dots in room sublists again

and hopefully rename the forceDot option to something that better
indicates what it does, and add tests.

* Remove duplicate license header (?)

* Missing word (several times...)

* Incorporate PR suggestion on badge type switch

* Better description in doc comment

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Update other doc comments in the same way

* Remove duplicate quote

* Use quotes consistently

* Better test name

* c+p fail

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-03-19 13:28:20 +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 v3.1.3 (#12281) 2024-03-07 14:40:03 +00:00
beacon Update dependency @vector-im/compound-web to v3.1.3 (#12281) 2024-03-07 14:40:03 +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 Mark as Unread (#12254) 2024-03-19 13:28:20 +00:00
dialogs Refine styles of menus, toasts, popovers, and modals (#12332) 2024-03-13 13:38:32 +00:00
elements Make EC widget theme reactive - Update widget url when the theme changes (#12295) 2024-03-13 14:52:41 +00:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Upgrade compound-web (#12234) 2024-02-07 17:26:05 +00:00
messages Update dependency @vector-im/compound-web to v3.1.3 (#12281) 2024-03-07 14:40:03 +00:00
polls/pollHistory Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
right_panel Update dependency @vector-im/compound-web to v3.1.3 (#12281) 2024-03-07 14:40:03 +00:00
rooms Mark as Unread (#12254) 2024-03-19 13:28:20 +00:00
settings Refine styles of menus, toasts, popovers, and modals (#12332) 2024-03-13 13:38:32 +00:00
spaces TAC: Order rooms by most recent after notification level (#12329) 2024-03-15 09:11:52 +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 Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +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