* tweak string formatting of default device name
* cheaters path to beating quality gate
* more electronplatform test coverage
* remove test that throw errors
* cover some more window.electrons
* more coverage
* empty line
* Remove ClientReady and WidgetReady hacks from the Jitsi wrapper
By registering widget API listeners earlier and simply blocking the
execution of all actions until the Jitsi wrapper has finished setting
up, sending a WidgetReady action becomes no longer necessary.
The ClientReady action is likewise not necessary, because in practice
getting a ready event means the client and the widget have already been
happily talking back and forth for capability negotiation.
* Rename audioDevice/videoDevice to audioInput/videoInput
* Combine HangupCall and ForceHangupCall into one action
* Apply misc code review suggestions
* Rename PostCSS files to `.pcss`
* Make Stylelint happy
* Make Stylelint happy v2
* Update CompatibilityView.tsx
* Update res/css/structures/ErrorView.pcss
Co-authored-by: Michael Weimann <mail@michael-weimann.eu>
* Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/pcss
Conflicts:
package.json
res/css/_components.scss
res/css/structures/_NotificationPanel.pcss
res/css/views/dialogs/_SpotlightDialog.pcss
res/css/views/rooms/_EventTile.pcss
res/css/views/rooms/_ReadReceiptGroup.pcss
yarn.lock
* Only use CI_PACKAGE mode on develop, it skips minification which can find some errors
* Keep name to not break existing PRs
Co-authored-by: Michael Weimann <mail@michael-weimann.eu>
* Enable URL tooltips for Element Desktop
Closes: #6532
Signed-off-by: Johannes Marbach <johannesm@element.io>
* Fix access level
Co-authored-by: Travis Ralston <travpc@gmail.com>
* Add explicit access level where it exists in base class
* Appease the linker
Co-authored-by: Travis Ralston <travpc@gmail.com>
* Early module loader bundler
* Add a module installer script
* Add dev-friendly docs
* Add real module-api dependency
* Speed up `yarn add` for mulitple modules
* Fix version check for modules
* Appease the linter
If you forget to call preventDefault in widget action handlers,
matrix-widget-api logs a bunch of errors complaining that the action is
unsupported/unhandled, even if it isn't.
* No longer skip the prejoin screen in video rooms
* Enable joining with specific devices
* Start widget API listeners earlier
so that they're instantly ready for use, rather than being stuck behind
the config loading
* Revert "Start widget API listeners earlier"
This reverts commit 2c1bb08832a77fe9f981a24f8349fd707214eb0a.
* Tell the client when the Jitsi wrapper is ready to receive events
* Fix video rooms getting stuck on Jitsi Meet's prejoin screen
We no longer have implicit imports which would have called this path, so manually call it. We have to disable lint as it doesn't like us doing this, but we only end up with a single entry point.
* Document voice rooms labs flag
Signed-off-by: Robin Townsend <robin@robin.town>
* Add join and mute handlers to Jitsi wrapper
Signed-off-by: Robin Townsend <robin@robin.town>
* Document voice rooms labs flag
Signed-off-by: Robin Townsend <robin@robin.town>
* Mark voice rooms as in development
Signed-off-by: Robin Townsend <robin@robin.town>
* ack at the end of widget event handlers
Signed-off-by: Robin Townsend <robin@robin.town>
* Move acks back before suspend points
Signed-off-by: Robin Townsend <robin@robin.town>
Remove the hash event listener before reloading the page, as the reload was being swallowed by our router.
Along the way, refactor out routing logic form app.tsx to avoid causing a circular import.
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
version file and invokes yarn build passing VERSION
* Normalize the version received from the server
We need to strip the leading v from the local app version in pollForUpdate to ensure it compares correctly the version from the /version request indicating what the latest available version is. Previously, we only stripped the leading in getAppVersion which is used in some other places but not to decide whether an update is available.
* Fetch version from VERSION set during build
* When polling for new versions, compare to VERSION set during build
* Strip leading v from version, matching package.sh
This was completely unnecessary: react-sdk includes appropriate CSS
for highlight.js in its themes. This was actually causing some of
those values to be overridden with silly ones that made text invisible
on the dark theme.
Fixes https://github.com/vector-im/element-web/issues/19476
* Deprecate `sso_immediate_redirect` and add welcome-page only option
The old `sso_immediate_redirect` option is kept in code for backwards compatibility, but is replaced by `sso_redirect_options.immediate`, where a new `on_welcome_page` option is also introduced to only target entry points to the app.
The path matching is a bit brittle, but still ideal in the sense of not showing UI while the app realizes it needs to redirect.
The new welcome page-only option is fully intended to avoid breaking permalinks and such while still redirecting when needed. In future, other options might be added here to further tune the experience.
* Add note about guests
E.g if you click a link to room/#foo:bar?via=baz we'll redirect to room/#foo:bar and now hitting back takes you back to the ?via=baz and means you have to hit back twice without this change