* one slow preview no longer blocks up the current batch of previews from loading
* show failed and loading url previews
* composer url preview summary bar
* prefer site icon
* icon to show when there is no icon to show
* loading and failed previews
* collapse working
* clear all button working
* clear cache on empty composer
* remove preview button
* attach empty bundle when all urls previews are to be suppressed
* Reconcile url-preview foundation with develop's base
- Restore entries-based visibility/skip logic in the view model (drop
leftover previews-based branch from the cherry-pick merge)
- Pass collapsed/toggleCollapsed in both wrapper render paths
- Pass collapse props from the storybook wrapper
* fixed lint errors
* fixed more lint errors
* shut up sonar qube
* updated shared-components unit test snapshots
* made bar a div again
* update snapshot
* fixed aria label violations
* wait for tall image to load before capturing snapshot (claude wrote this)
* updated snapshot
* added onkeydown handler to summary div
* fixed tests for new view model
* made summary bar no longer clickable
* banners snapshot update
* bundles error-solid in vitest
* updated snapshot
* use uncollapsed composer url preview in vitest
* formatting
* restore mocks after each test
* corrected mocking logic
* sitename is not returned by /preview_url and so is not used
* uncollapse the composer url preview during test
* refactored to remove code duplication (and pass the CI)
* chrome tests fix
* updated test
* tests for failed/loading entries in composer url preview
* formatting
* fixed issue where composer url preview pops up after message is sent
* ensured links not in the preview view will not be shown
* changed css to match design
* fixed linter errors
* updated storybook screnshots
* updated css to not use hard values
* resolves some of the reviews
* some more of the reviews resolves
* usecallback
* uses translations
* apply some review changes
* fixed more reviews stuff
* applied comments
* removes matrix.to links from urlpreviews
* fixed some oxlint stuff
* regenerated snapshot
* removed pointless void
* fixed tests and stuff
* dark theme icon lightness
* reviews
* corrected types
* uses predefined colours
* Add new ModuleApi to set the CaCartsPem
* Wire up the new api
* Update packages/module-api/src/api/client-creation-management.ts
* unit test
* fixup! Add new ModuleApi to set the CaCartsPem
* fixup! Update packages/module-api/src/api/client-creation-management.ts
* fixup! fixup! Update packages/module-api/src/api/client-creation-management.ts
* fixup! fixup! fixup! Update packages/module-api/src/api/client-creation-management.ts
This fallback code path was looking for the wrong error code (M_UNRECOGNIZED is the correct code for endpoints that a server does not implement, and is what Synapse returns on the transports endpoint in practice when msc4143_enabled is false).
* Show tooltip when mouse is anywhere on the separator
* Show correct cursor
* Fix tests
* Put tooltip inside separator container
* Update tests
* Fix hand icon not appearing
* Add missing placement state contract for root and line
* Add editing, information and failure state
* Add bubble placement from state
* Add media and sticker line styling
* Added reply chain styling
* Add interactive stories for states and separate test confgis for baseline screenshots
* Use shared components instead of mocks where available
* Added more relevant slot content data
* Add missing states and use presentation context
* Add state styling
* Fix irc layout dom ordering
* Rearrange styling and add screenshots
* Removed stale screenshots
* Fix Sonar issue
* Add missing layout rule styling and replace legacy application CSS variables
* Updated snapshots
* Minor changes to styling for bubble container and border radius defaults
* rtc: fallback to well-known only if config allows
* Use existing rtc transports cached by client
* post rebase fixes
* post rebase test update
* cleanup callstore tests
* Lint + fmt fixes
* postrebase: update useCall tests
* fixup: fix mocking on useRoomCall task
* fix lint
* fixup lint
* fix missing act in react test
* fix client mocks
* fix test mocking for rtc discovery
* fix test mocking
* fix Callstore testing
* lint:js-fix
* add missing mocks
* Fix duplicate ElementWidgetDriver test cases
* Avoid logging warning about well-known foci when they are undefined
---------
Co-authored-by: Robin <robin@robin.town>
* Let the next and previous room shortcuts work before a room is opened
* Wait for the navigation these shortcuts dispatch
The three cases drained the microtask queue twice and then asserted, because the delta handler dispatches its navigation from inside the first dispatch's callback and one flush leaves that follow-up queued. Counting flushes encodes how far the implementation happens to defer the work; waiting for the assertion itself does not, and reads as what the case is actually waiting for.
The unread case also restored its notification-state spy by hand, on the belief that nothing else would. The suite has restored all mocks from a top-level afterEach since well before this branch, so the hand restoration was redundant and the note explaining it was wrong.
---------
Co-authored-by: David Baker <dbkr@users.noreply.github.com>
Clicking on custom now opens settings ready to enter a custom status
so most of this PR is passing the flags through for the UI to start in
that state.
* Stop messages flickering through the file panel as they are sent
A filtered timeline set is handed the room's pending events unless it is told
otherwise, and those are the whole room's pending events rather than the ones
the filter would have kept. So every message typed into the room appeared in
the file panel for as long as it took the remote echo to arrive, at which
point the filter finally threw it out again.
The file panel now asks for its timeline set without them. Nothing is lost by
that: a file sent from the panel still appears the moment it is sent, because
the panel adds live events itself and checks the message type while doing so,
which the pending list never did.
Tests: the file panel asks for a timeline set which does not carry the room's
pending events.
* Filter the pending events a filtered timeline set shows
Suppressing the file panel's pending events wholesale was the wrong lever: it is
an all-or-nothing switch on the room's detached pending list, so it also hid
files the user had just sent, and the e2e caught the panel staying empty.
Filter them instead. A timeline set already carries the filter it was built with,
so the pending events it hands the panel can be held to the same test as the
events the server returns. Files being sent still appear immediately; the text
messages that used to flicker through never qualify. Panels with no filter, which
is every other caller, are untouched.
---------
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
* Cachebust languages.json
To avoid loading stale language files. The individual language files as hashbusted but the metadata file is not, and it is not feasible to do so.
* Switch cachebust to use Date.now to further avoid collisions
* Fix tests
* Fix tests
* Fix illegible text on hovered Spotlight results in high-contrast theme
* Update Spotlight tests to use Axe for accessibility checks instead of custom contrast ratio calculations
* Refactor Spotlight accessibility tests to cover all themes and improve legibility checks across various UI elements
* Remove high-contrast theme from Spotlight legibility tests to streamline accessibility checks
* Fix invalid CSS comment breaking Oxfmt and scope out unrelated axe violation
_SpotlightDialog.pcss used // line comments, which are not valid CSS and
crashed the Oxfmt parser, causing spurious failures in Oxfmt and the
Static Analysis gate. Switched to a block comment.
The new Spotlight legibility test's broad axe scans also caught a
pre-existing nested-interactive violation (endAdornment buttons nested
inside clickable option rows), unrelated to the colour-contrast fix.
Scoped it out with axe.disableRules("nested-interactive") to keep the
contrast checks active without failing on the unrelated issue.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* Update Room Directory screenshot baseline for Spotlight hover-color fix
The high-contrast legibility fix changes hover/selected text color in
Spotlight results, which is reflected in the Room Directory dialog
screenshot test.
* Use CI-rendered baseline for the Room Directory screenshot
The previous baseline still had the pre-fix colours for
.mx_SpotlightDialog_result_publicRoomAlias and
.mx_SpotlightDialog_result_publicRoomDescription, so the Linux CI run
reported a 418px diff on filtered-one-result.png. Replace it with the
image the Linux CI runner actually produced with the fix applied.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Retrigger CI (transient Electron install failure in Vitest job)
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* Make user menu styles more specific
Only constrain the text elements that need to be constrained rather
than applying overflow: hidden to all children.
* Snapshot
Leaving a room does not clear the notification counts the server last sent
for it, and nothing on our side clears them either, so a room sitting in
the historical list kept a badge that could never be got rid of: there is
no way to read a room you are not in.
The unread state of such a room is now nothing at all. Our own member
event is what decides it rather than getMyMembership(), which answers
"leave" both for a room we have left and for one we have not heard about
yet — blanking a badge that is merely late would be a worse bug than the
one being fixed here.
It goes below the invite and knock checks, which are leaves of a sort and
have their own answers, so a pending invite and a refused knock still show
what they showed before.
Tests: a left room with a count of 42 now reports nothing.
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
* Avoid destroying a still-valid session when the OS keychain is temporarily unreadable
SafeStorageWriter.get() previously caught a decrypt failure and returned undefined,
indistinguishable from "no secret stored". When the OS keychain is briefly locked or
its ACL is invalidated by an app re-sign/update, an existing valid pickle key read as
absent, so the renderer fell back to the default key and createPickleKey then overwrote
the still-valid ciphertext - turning a transient hiccup into permanent session and
encryption-key loss.
Distinguish absent from present-but-undecryptable with a typed SafeStorageDecryptionError,
and never overwrite an existing undecryptable secret, so the session recovers on a later
launch once the keychain is readable again.
* Fail closed when a stored secret cannot be read, and defer the basic_text migration instead of poisoning skipped secrets
- isSecretUndecryptable now treats any error reading an existing secret as
undecryptable, so an unexpected storage-layer error can never re-enable the
destructive pickle-key overwrite.
- migrateBasicTextToPlaintext decrypts all secrets before writing anything: if
any secret cannot be decrypted the migration is aborted and the app sticks
with the basic_text backend (safeStorageBackendOverride) instead of recording
the store as plaintext while a secret is still ciphertext - which would make
the next launch re-encrypt that ciphertext as though it were the secret,
silently corrupting it and defeating the overwrite guard.
* Fix the safeStorage tests so they run under CI
store.ts reads getConfig().brand when it raises a degraded-mode dialog, and the real
config module only populates itself in loadConfig(), which these tests never call.
Stubbing it lets the tests reach the dialog they are actually about instead of dying
on an undefined brand.
The ElectronStore fake also carried a constructor whose only job was to swallow the
options object. oxlint's no-useless-constructor is an error here, and it was the one
genuine failure on this branch, so the fake now leans on the implicit default
constructor - which ignores its arguments just as happily.