65007 Commits

Author SHA1 Message Date
R Midhun Suresh
dda87ff1ed
Fix rooms with no messages appearing at the top of the room list (#31798)
* Extract and move timestamp function

* Use new function in BaseRecencySorter

* Remove deprecated method usage

* Add jsdoc

* Avoid unnecessary exports

* Fix tests
2026-01-27 16:08:35 +00:00
Richard van der Hoff
617722018c
Show an icon in the room header for shared history (#31879)
* Show an icon in the room header for shared history

Add a decoration to the header for encrypted rooms with `history_visibility:
{shared|public}`.

Fixes: #31858

* Gate "shared history icon" behind labs flag

... since history isn't actually shared unless the flag is on

* Update snapshots

* update screenshot

* update screenshots, again

* exclude RRs from screenshot test
2026-01-27 15:06:22 +00:00
Florian Duros
a972340216
doc: update SC visual test doc (#31897) 2026-01-27 13:31:14 +00:00
Michael Telatynski
d5c49e6a2e
Update yarn.lock
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-27 13:07:13 +00:00
RiotRobot
e0949e47c4 Merge branch 'master' into develop 2026-01-27 12:53:53 +00:00
RiotRobot
2ef02fa39e v1.12.9 v1.12.9 2026-01-27 12:50:07 +00:00
RiotRobot
68cc500705 Upgrade dependency to matrix-js-sdk@40.1.0 2026-01-27 12:41:33 +00:00
Skye Elliot
d0c60e6ee4
Remove "history may be shared" banner. (#31881)
* Revert "Update algorithm for history visible banner. (#31577)"

This reverts commit ce9c66ba4c25f3de5ceca5d244591d8aa1183ce8.

* Revert "Update prop type & documentation for HistoryVisibleBanner and VM. (#31545)"

This reverts commit 4da149e56f5a593daf05ed9a84eea7da11d800e9.

* Revert "Prevent history visible banner from displaying in threads. (#31535)"

This reverts commit c7134e85324878f06da3936ccad09655876cad0d.

* Revert "Implement UI for history visibility acknowledgement. (#31156)"

This reverts commit cff9119324dced2ab570201d159ea0c8169344c2.
2026-01-27 11:28:33 +00:00
ElementRobot
f36905b656
[create-pull-request] automated change (#31894)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2026-01-27 06:23:13 +00:00
David Langley
d6f11d828b
Migrate ListView to shared components (#31860)
* Migrate ListView to shared components

* Add stories

* lint

* Update name of component

* Use compound spacing

* lint

* VirtualizedList

* Simplify story

* Add git diff check before uploading artifacts

* Fix git diff workaround for vis

* Ignore coverage report in .gitignore

Add coverage report to .gitignore

* Add screenshot test

* Fix package and lock files

* clear unneeded lock file changes

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-26 17:58:46 +00:00
Florian Duros
b720a74eef
ci: remove test tag when SC is published (#31885) 2026-01-26 16:37:31 +00:00
Florian Duros
3f26b37cf8
doc: add doc how to publish a new version of shared components (#31882) 2026-01-26 15:47:24 +00:00
Michael Telatynski
e9da23517c
Fix sonar.coverage.exclusions missing comma 2026-01-26 14:59:33 +00:00
Florian Duros
28609f4e7a
Fix room list menu flashes when menu is closed (#31868)
* chore: update compound to `8.3.6`

* chore: update snapshots
2026-01-26 13:35:16 +00:00
Florian Duros
3f212537b6
chore: bump shared components to 0.0.1 (#31877) 2026-01-26 13:10:45 +00:00
Florian Duros
d6f3bd2063
chore: exclude storybook stories from code coverage (#31878) 2026-01-26 13:07:39 +00:00
Michael Telatynski
7459850f6a
Fix storybook language addon (#31880)
It was not working for languages like de_DE which were normalised to de in one codepath but not the other

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-26 12:44:57 +00:00
Andy Balaam
0947517746
Allow dismissing 'Key storage out of sync' temporarily (#31455) 2026-01-26 10:46:40 +00:00
ElementRobot
828c4a47a4
[create-pull-request] automated change (#31873)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2026-01-26 09:37:45 +00:00
Florian Duros
26779b10bd
fix: message preview toggle is inverted in room list header (#31865) 2026-01-23 11:17:22 +00:00
Will Hunt
c135c16824
Fix duplicate toasts appearing for the same call if two events appear. (#31693)
* fix export

* Don't allow duplicate toasts.

* fix imports

* fix

* fix rel_type to be m.reference in tests

* Fix case where redactions were not longer checked.

* Ensure toastkey is calculated by the room call_id

* Ensure we fetch the call event if it does not exist locally.

* cleanup / reduce code complexity

* Add docs

* Add comment

* merge condition
2026-01-23 10:38:39 +00:00
Michael Telatynski
88562127d7
Add path for shared components to localazy_upload (#31864) 2026-01-23 09:57:01 +00:00
Michael Telatynski
6cfc441ae0
Update test workflow to rename Jest->Vitest (#31855)
* Update test workflow to rename Jest->Vitest

* Hold back completion name to not break branch protections
2026-01-23 09:28:40 +00:00
ElementRobot
9da2f350dc
[create-pull-request] automated change (#31861)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2026-01-23 06:22:24 +00:00
David Langley
19cfddab6d
Fix the logic and comments surrounding the e2e test: "should open the notification options menu" (#31853)
* fix the logic and comments surrounding the e2e test

* spacing

* prettier
2026-01-22 19:20:36 +00:00
Florian Duros
3fc3653809
refactor: move vm hooks into view model folder (#31832) 2026-01-22 17:28:14 +00:00
Michael Telatynski
d733ac014c
Fix ability to send rageshake during session restore failure (#31848)
* Fix ability to send rageshake during session restore failure

This fixes the specific edge case but also hardens the codepath to limit the effect of other similar edges popping up

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

* Improve coverage

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

* Improve coverage

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-22 17:04:01 +00:00
renovate[bot]
51f5ec021a
Update dependency lodash to v4.17.23 [SECURITY] (#31852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 15:31:16 +00:00
Timo
0f6afca8e3
add resolutions entry for matrix-widget-api to package.json (#31851)
Otherwise we will have two versions of the `matrix-widget-api` (1.16.0
and 1.16.1) which end up breaking downstream builds.
2026-01-22 14:52:45 +00:00
Michael Telatynski
35fca4d339
Switch shared-components from jest & test-runner to vitest (#31800)
* Remove babel

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

* Remove duplicated patch-package dep

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

* Switch to @fetch-mock/vitest

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

* Update tests to import & call vitest functions

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

* Update test-utils imports

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

* Update unit test snapshots

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

* Switch from jest->vitest for unit tests

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

* Update visual test screenshots

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

* Switch from test-runner->vitest for visual tests

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

* Update README

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

* Update CI for shared-components unit & visual tests

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

* Update yarn.lock

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

* Update README

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

* Fix storybook trying to import vitest

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

* Fix css modules leaking between storybook tests

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

* Tweak screenshot update script to accept args

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-22 14:17:36 +00:00
Florian Duros
4bddf37866
doc: improve CSS code style documentation (#31830) 2026-01-22 13:06:49 +00:00
Michael Telatynski
b0e7cb4c1f
Fix mis-alignment of Threads right panel title (#31849)
* Fix mis-alignment of `Threads` right panel title

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

* Update screenshot

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-22 12:08:46 +00:00
Michael Telatynski
77c4937f76
Improve visibility under contrast control mode (#31847)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-22 12:06:53 +00:00
Michael Telatynski
e0b3e013ab
Remove shared-components slow reporter to un-break CI
as we don't have a js-sdk dep in shared-components
2026-01-22 10:16:52 +00:00
R Midhun Suresh
d6d647f56d
Unread Sorting - Add option for sorting in OptionsMenuView (#31754)
* Add new sort option

* Support new sorting algorithm in vm

* Add option item for unread sorter

* Add tests
2026-01-22 09:56:47 +00:00
R Midhun Suresh
b9cdc0390a
Unread sorting - Implement sorter and use it in the room list store (#31723)
* Extract base recency sorter class

* Create unread sorter

* Write test

* Use new sorter in RLS

* Fix incorrect sort type

* Replace with a better comment

* Fall back to RecencySorter instead of throwing error
2026-01-22 07:38:56 +00:00
ElementRobot
a43dc3a3b5
[create-pull-request] automated change (#31845)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2026-01-22 06:24:29 +00:00
Robin
64f719f553
Allow Element Call widgets to receive sticky events (#31843)
* Upgrade matrix-widget-api to 0.16.1

* Allow Element Call widgets to receive sticky events

In an upcoming version of Element Call, the call widget will be able to operate in an experimental ‘Matrix 2.0’ mode in which MatrixRTC memberships are sent as sticky events. We already auto-approve the capability for this widget to send sticky events, but we recently decided there should be a capability for receiving them as well and need to auto-approve that too.
2026-01-21 22:50:05 +00:00
Florian Duros
9d1e36a37f
chore: add analytics when user clicks on message preview toggle in room list header (#31840) 2026-01-21 17:55:16 +00:00
Michael Telatynski
2de53e306a
Tidy shared-components storybook (#31836)
* Fix compound.css - it is not pcss

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

* Improve types in shared-components storybook

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

* Update i18n:sort script and remove patch-package

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-21 15:22:13 +00:00
renovate[bot]
6b48b022cb
Update dependency matrix-web-i18n to v3.6.0 (#31837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-21 14:34:39 +00:00
renovate[bot]
ecb204a533
Update storybook to v10.2.0 (#31838)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-21 14:34:34 +00:00
Michael Telatynski
de9a52d046
Improve icon rendering accessibility (#31791)
* Switch to rendered svg for Field select decoration instead of SVG mask

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

* Replace warning.svg with Compound icon

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

* Replace device kind icons with Compound

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

* Draw notification badge decoration using SVG rather than CSS masks

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

* Replace {collapse,expand}-message icons with Compound

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

* Remove stale icon prefetch

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

* Render icons in AddExistingToSpaceDialog using SVGs rather than CSS masks

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

* Render icons in Jitsi landing page using SVGs rather than CSS masks

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

* Delint

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

* Update snapshots

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

* Update screenshot

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

* Fix field label

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

* Update snapshots

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

* Add tests

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

* Revert icon colour

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

* Switch to rendering icons as SVG over CSS masks in PollOption

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

* Switch to rendering icons as SVG over CSS masks in AnalyticsLearnMoreDialog

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

* Remove unused class

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

* Switch to rendering icons as SVG over CSS masks in customisedCancelButton mixin

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

* Switch to rendering icons as SVG over CSS masks in ThreadSummaryIcon mixin

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

* Switch to rendering icons as SVG over CSS masks in LegacyCallButton mixin

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

* Remove unused classes in TabbedView

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

* delint

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

* delint

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

* Update snapshots

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

* Fix `[Object object]`

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

* Fix layout issue

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

* Improve coverage

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-21 13:33:58 +00:00
Michael Telatynski
edb63922e0
Fix knip ignoring shared-components (#31833)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-21 13:33:53 +00:00
Florian Duros
50d8fd2440
doc: add documentation how to write stories in shared components (#31831) 2026-01-21 13:31:52 +00:00
ElementRobot
d0c800a75c
[create-pull-request] automated change (#31826)
Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com>
2026-01-21 13:25:00 +00:00
Florian Duros
bc6375d7ab
Add message preview toggle to room list header option (#31821)
* feat: add message preview action to room list header option

https://github.com/element-hq/element-web/issues/31214

* test: add e2e test
2026-01-21 10:43:35 +00:00
Michael Telatynski
819d361a91
Prepare for vitest in shared-components (#31820)
* Use typescript for vite config

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

* Switch shared-components to ESM

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

* Remove stale aliases

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

* Remove reference to element-web files from shared-components

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

* Remove spurious node polyfill

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2026-01-21 10:04:27 +00:00
Philip Örnfeldt
2f44744f8b
Unset buttons does not include color inherit (#31801)
Fixed button color to inherit in following scenarios:
 * RoomList now rooms follow room text compound color
 * PinnedMessageBanner follow room text compound color
 * RoomHeader follow room text compound color

Signed-off-by: Örnfeldt Philip (66140321) <philip.ornfeldt@forsakringskassan.se>
2026-01-21 10:03:04 +00:00
renovate[bot]
a8b6d035d8
Update dependency posthog-js to v1.328.0 (#31828)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-21 09:48:08 +00:00