riot-web/test/utils
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
..
__snapshots__ Update dependency diff-dom to v5 (#12134) 2024-01-11 12:37:48 +00:00
beacon Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
crypto
device
dm
exportUtils Update dependency @vector-im/compound-web to v3.1.3 (#12281) 2024-03-07 14:40:03 +00:00
localRoom
location Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
media Move `mediaDevices` mock out of `setupManualMocks` (#11413) 2023-08-16 08:29:34 +00:00
oidc Update MSC2965 OIDC Discovery implementation (#12245) 2024-02-23 16:43:14 +00:00
permalinks Remove dead & duplicated code (#11405) 2023-08-15 08:43:15 +00:00
room Update RoomSummaryCard navigation links (#11812) 2023-11-16 03:25:34 +00:00
validate
AnimationUtils-test.ts
AutoDiscoveryUtils-test.tsx Update MSC2965 OIDC Discovery implementation (#12245) 2024-02-23 16:43:14 +00:00
DMRoomMap-test.ts
DateUtils-test.ts Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
ErrorUtils-test.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
EventRenderingUtils-test.ts
EventUtils-test.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
Feedback-test.ts
FixedRollingArray-test.ts
FormattingUtils-test.tsx Consolidate conjugation i18n strings (#11660) 2023-09-25 12:18:15 +01:00
LruCache-test.ts
MegolmExportEncryption-test.ts
MessageDiffUtils-test.tsx
MultiInviter-test.ts Fix unfederated invite dialog (#9618) 2023-10-25 10:08:10 +00:00
PhasedRolloutFeature-test.ts Support staged rollout of migration to Rust Crypto (#12184) 2024-01-31 15:52:23 +00:00
SearchInput-test.ts Expose apps/widgets (#12071) 2024-01-22 10:53:27 +00:00
SessionLock-test.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
ShieldUtils-test.ts ElementR: Cross user verification (#11364) 2023-09-18 17:34:00 +01:00
Singleflight-test.ts
SnakedObject-test.ts
StorageManager-test.ts Fix the StorageManger detecting a false positive consistency check when manually migrating to rust from labs (#12225) 2024-02-05 17:57:12 +00:00
UrlUtils-test.ts
WidgetUtils-test.ts
arrays-test.ts
colour-test.ts
connection-test.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
createVoiceMessageContent-test.ts
direct-messages-test.ts
enums-test.ts
export-test.tsx
generate-megolm-test-vectors.py
i18n-helpers-test.ts Consolidate conjugation i18n strings (#11660) 2023-09-25 12:18:15 +01:00
iterables-test.ts
leave-behaviour-test.ts Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
local-room-test.ts
maps-test.ts
membership-test.ts Show knock rooms in the list (#11573) 2023-09-19 11:24:35 +00:00
notifications-test.ts Mark as Unread (#12254) 2024-03-19 13:28:20 +00:00
numbers-test.ts
objects-test.ts
pillify-test.tsx Use correct push rule to evaluate room-wide mentions (#12318) 2024-03-08 14:27:08 +00:00
rooms-test.ts
sets-test.ts
stringOrderField-test.ts
threepids-test.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
tooltipify-test.tsx