Commit Graph

2228 Commits (11912a0da003531499fcbba9ef6b6c4aa2715bf5)

Author SHA1 Message Date
renovate[bot] 665605b2b6
Update dependency typescript to v5.4.2 (#12324)
* Update dependency typescript to v5.4.2

* Fix type conflicts

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Make tsc happier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-03-19 17:55:06 +00:00
renovate[bot] 9c78b357bd
Update all non-major dependencies (#12351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 17:47:51 +00:00
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
RiotRobot 84f5bc7281 Merge branch 'master' into develop 2024-03-14 17:14:31 +00:00
RiotRobot f96606aceb v3.95.0 2024-03-14 17:13:32 +00:00
RiotRobot f2bfc59178 v3.95.0-rc.0 2024-03-14 16:40:07 +00:00
ElementRobot d139d6699a
[Backport staging] Update `@vector-im/compound-design-tokens` in package.json (#12340)
(cherry picked from commit e3ba643bdc)

Co-authored-by: Florian Duros <florianduros@element.io>
2024-03-14 15:59:00 +01:00
Florian Duros e3ba643bdc
Update `@vector-im/compound-design-tokens` in package.json (#12339) 2024-03-14 13:06:44 +00:00
RiotRobot 0f251d8a55 Reset matrix-js-sdk back to develop branch 2024-03-12 18:40:50 +00:00
RiotRobot 1b793f76ab Resetting package fields for development 2024-03-12 18:40:40 +00:00
RiotRobot e0c7486a81 Merge branch 'master' into develop 2024-03-12 18:40:39 +00:00
RiotRobot db532f14bd v3.94.0 2024-03-12 18:39:41 +00:00
RiotRobot 181a317388 Upgrade dependency to matrix-js-sdk@31.5.0 2024-03-12 18:35:19 +00:00
renovate[bot] 942fabc5a8
Update all non-major dependencies (#12310)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-03-05 17:56:10 +00:00
RiotRobot 9c8e572572 v3.94.0-rc.0 2024-03-05 14:09:01 +00:00
RiotRobot 90bcce9d71 Upgrade dependency to matrix-js-sdk@31.5.0-rc.0 2024-03-05 14:05:20 +00:00
renovate[bot] c3e0535be9
Update dependency sanitize-html to v2.12.1 [SECURITY] (#12302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 14:39:09 +00:00
Michael Telatynski 5bd0afce30
Prevent "Element" hardcoded in i18n files (#12296)
* Prevent "Element" hardcoded in i18n files

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update matrix-web-i18n

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-02-29 13:02:46 +00:00
RiotRobot db6f7da2b2 Reset matrix-js-sdk back to develop branch 2024-02-27 13:00:00 +00:00
RiotRobot 0b16c935ad Resetting package fields for development 2024-02-27 12:59:50 +00:00
RiotRobot 8f5bdf5c57 Merge branch 'master' into develop 2024-02-27 12:59:49 +00:00
RiotRobot a7f8e82d16 v3.93.0 2024-02-27 12:58:36 +00:00
RiotRobot bcb66965a3 Upgrade dependency to matrix-js-sdk@31.4.0 2024-02-27 12:52:17 +00:00
renovate[bot] bbbb0e3dec
Update all non-major dependencies (#12214)
* Update all non-major dependencies

* Prettier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-02-22 10:11:25 +00:00
renovate[bot] ce36a67504
Update typescript-eslint monorepo to v7 (#12278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 19:52:43 +00:00
renovate[bot] 5e71c36504
Update dependency eslint-plugin-unicorn to v51 (#12276)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 19:05:14 +00:00
renovate[bot] 37672f3964
Update dependency @types/sanitize-html to v2.11.0 (#12275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 19:05:09 +00:00
renovate[bot] 0db6c6df70
Update dependency axe-core to v4.8.4 (#12273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 19:04:34 +00:00
RiotRobot 15e51301a7 v3.93.0-rc.0 2024-02-21 18:19:36 +00:00
RiotRobot 7646b894d1 Upgrade dependency to matrix-js-sdk@31.4.0-rc.0 2024-02-21 17:57:48 +00:00
renovate[bot] 300f30eca9
Update dependency oidc-client-ts to v3 (#12223)
* Mock subtle crypto in OIDC test

To unblock upgrade to oidc-client-ts

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update dependency oidc-client-ts to v3

* delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Ensure oidc-client-ts 3.0.1 to drop crypto-js

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 16:58:59 +00:00
Michael Telatynski c71b8fdf78
Saner releases clean up (#12258)
* Remove allchange dependency

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove stale release scripts

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update pull request template to remove allchange behaviours

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-02-19 12:32:28 +00:00
RiotRobot ee50640075 Reset matrix-js-sdk back to develop branch 2024-02-13 15:03:38 +00:00
RiotRobot 2eacb0ac92 Resetting package fields for development 2024-02-13 15:03:28 +00:00
RiotRobot 6036dd01e1 Merge branch 'master' into develop 2024-02-13 15:03:27 +00:00
RiotRobot cfd58016e8 v3.92.0 2024-02-13 15:02:07 +00:00
RiotRobot 368db9d2b4 Upgrade dependency to matrix-js-sdk@31.3.0 2024-02-13 14:57:12 +00:00
Florian Duros 967695b6ad
Fix tooltip behaviour in TAC (#12236)
* Update compound to `3.1.1`

* Update `yarn.lock`
2024-02-08 13:13:46 +00:00
Robin b422641258
Upgrade compound-web (#12234)
* Upgrade compound-web

I forgot to include this in https://github.com/matrix-org/matrix-react-sdk/pull/12209, which has caused avatar and username colors to be out of sync and sometimes revert to plain black/white.

* Update tests

* Update tests
2024-02-07 17:26:05 +00:00
Florian Duros a4987060b7
Pop out of Threads Activity Centre (#12136)
* Add `Thread Activity centre` labs flag

* Rename translation string

* WIP Thread Activity Centre

* Update supportedLevels

* css lint

* i18n lint

* Fix labs subsection test

* Update Threads Activity Centre label

* Rename Thread Activity Centre to Threads Activity Centre

* Use compound `MenuItem` instead of custom button

* Color thread icon when hovered

* Make the pop-up scrollable and add a max height

* Remove Math.random in key

* Remove unused class

* Change add comments on `mx_ThreadsActivityRows` and `mx_ThreadsActivityRow`

* Make threads activity centre labs flag split out unread counts

Just shows notif & unread counts for main thread if the TAC is enabled.

* Fix tests

* Simpler fix

* Open thread panel when thread clicke in Threads Activity Centre

Hopefully this is a sensible enough way. The panel will stay open of
course (ie. if you go to a different room & come back), but that's the
nature of the right panel.

* Dynamic state of room

* Add doc

* Use the StatelessNotificationBadge component in ThreadsActivityCentre

and re-use the existing NotificationLevel

* Remove unused style

* Add room sorting

* Fix `ThreadsActivityRow` props doc

* Pass in & cache the status of the TAC labs flag

* Pass includeThreads as setting to doesRoomHaveUnreadMessages too

* Fix tests

* Add analytics to the TAC (#12179)

* Update TAC label (#12186)

* Add `IndicatorIcon` to the TAC button (#12182)

Add `IndicatorIcon` to the TAC button

* Threads don't have activity if the room is muted

This makes it match the computation in determineUnreadState.
Ideally this logic should all be in one place.

* Re-use doesRoomHaveUnreadThreads for useRoomThreadNotifications

This incorporates the logic of not showing unread dots if the room
is muted

* Add TAC description in labs (#12197)

* Fox position & size of dot on the tac button

IndicatorIcon doesn't like having the size of its icon adjusted and
we probably shouldn't do it anyway: better to specify to the component
what size we want it.

* TAC: Utils tests (#12200)

* Add tests for `doesRoomHaveUnreadThreads`
* Add tests for `getThreadNotificationLevel`

* Add test for the ThreadsActivityCentre component

* Add snapshot test

* Fix narrow hover background on TAC button

Make the button 32x32 (and the inner icon 24x24)

* Add caption for empty TAC

* s/tac/threads_activity_centre/

* Fix i18n & add tests

* Add playwright tests for the TAC (#12227)

* Fox comments

---------

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
2024-02-07 13:49:40 +00:00
Robin 3052025dd0
Use new semantic tokens for username colors (#12209)
* Use new semantic tokens for username colors

To match the tokens now used by the Compound Web avatar component

* Fix incorrect lock icon

* Update screenshots
2024-02-06 20:54:30 +00:00
RiotRobot 6336cf4dc9 v3.92.0-rc.1 2024-02-06 15:44:02 +00:00
RiotRobot 31e7c39d95 Upgrade dependency to matrix-js-sdk@31.3.0-rc.4 2024-02-06 15:38:02 +00:00
Valere 4eba6b0387 Fix the StorageManger detecting a false positive consistency check when manually migrating to rust from labs (#12225)
* Fix StorageManager checks for rust migration manual opt-in

* fix restricted imports

* Moved utility to check db internals into js-sdk

* fix typos and test names

* more timeout for migration test

(cherry picked from commit cdfcd37b94)
2024-02-06 13:19:43 +00:00
Valere cdfcd37b94
Fix the StorageManger detecting a false positive consistency check when manually migrating to rust from labs (#12225)
* Fix StorageManager checks for rust migration manual opt-in

* fix restricted imports

* Moved utility to check db internals into js-sdk

* fix typos and test names

* more timeout for migration test
2024-02-05 17:57:12 +00:00
renovate[bot] b4ba6411ef
Update dependency @types/jest to v29.5.12 (#12218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 17:33:16 +00:00
RiotRobot 80245a52ed v3.92.0-rc.0 2024-02-02 15:06:59 +00:00
RiotRobot 1aeee16d9e Upgrade dependency to matrix-js-sdk@31.3.0-rc.3 2024-02-02 15:02:10 +00:00
David Baker c1871ea59f
Update to compound-web 3.0.1 (#12208)
* Update to compound-web 3.0.1

Pulls in a fix to make the indicator icon dot black/white rather than
grey for activity.

* Update snapshots

* More snapshots
2024-02-02 10:26:06 +00:00
Michael Telatynski c6dddf813c
Switch prepublishOnly to prepack to catch errors earlier (#12202)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-02-01 11:25:58 +00:00