Commit Graph

46599 Commits

Author SHA1 Message Date
Michael Telatynski
cb592dc709
Fix clicking MXID in timeline going to matrix.to (#11263)
* Fix clicking MXID in timeline going to matrix.to

* Add tests

* Increase coverage
2023-07-14 10:55:55 +00:00
Michael Telatynski
3a784c71e8
Deprecate camelCase config options (#11261) 2023-07-14 10:50:52 +00:00
renovate[bot]
77c3a89cbc
Update all non-major dependencies (#11158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 20:08:12 +00:00
Michael Telatynski
f5f31eb7d8
Fix jest/valid-expects lints (#11238) 2023-07-13 15:19:44 +00:00
Florian Duros
d7d60a3255
Disable failing login with SSSS tests with rust crypto (#11258) 2023-07-13 15:07:38 +00:00
Germain
f4e7e08425
Restoring optional ligatures by resetting letter-spacing (#11202)
* Restoring optional ligatures by resetting letter-spacing

* Revert "Restoring optional ligatures by resetting letter-spacing"

This reverts commit 6536265ce2c5a2ae81023cc26aaa3cc11e85703b.

* Restore ligatures with inter dynamic metrics

* lintfix
2023-07-13 14:17:55 +00:00
Michael Telatynski
e6550a33b6
Allow emoji presentation selector to not break BigEmoji styling (#11253)
* Allow emoji presentation selector to not break BigEmoji styling

* Tweak regex to make sonar & lint happy
2023-07-13 14:08:18 +00:00
Richard van der Hoff
46c12a808f
Cypress test for QR code display (#11240) 2023-07-13 13:56:15 +00:00
Richard van der Hoff
2cfbd73cd3
Replace getQRCodeBytes with generateQRCode (#11241)
* Replace `getQRCodeBytes` with `generateQRCode`

* another test update

* remove obsolete snapshot
2023-07-13 13:55:55 +00:00
Germain
9077592bec
Make event highliht use primary content token (#11255) 2023-07-13 12:42:23 +00:00
Germain
06403d07f8
Fix event info events size and color (#11252) 2023-07-13 09:35:08 +00:00
Germain
a5837597ff
Fix color mapping for blockquote border (#11251) 2023-07-13 09:17:53 +00:00
renovate[bot]
d37702f6c2
Update dependency node to v18 (#11234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 09:15:17 +00:00
renovate[bot]
f737d7dff0
Update typescript-eslint monorepo to v5.61.0 (#11233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 08:47:48 +00:00
alunturner
f6ee109f9e
Integration work for rich text editor 2.3.1 (#11172)
* accompanying changes

* switch to set innerHTML

* bump rte to 2.3.1

* update types for dynamic import

* add comment

* Add comments to dynamic imports

* update comments
2023-07-13 07:26:33 +00:00
Germain
38d24f164a
Compound color pass (#11079)
* Integrate compound design tokens

The icons should not be included in this repo, and should live in the compound design token repo, but for simplicity sake at this phase of the integration they will be added here

* Pareto color pass on the light theme

* bugfixes in the light color pass

* Compound color pass dark theme

* Compound color pass high contrast

* Fix typo

* fix tooltip

* Fix PR feedback

* fix composer button mixin

* Normalise some of the auth page colors

* Update based on figma feedback

* lintfix

* regenerate theme index

* Fix cypress tests

Removed the CSS assertions in the room header as it overlaps with the Percy snapshot

* fix more e2e tests

* update colors based on feedback

* fix color pass

* Fix theme overrides

* Restore -transparent

* fix color mapping

* Final colour pass update

* Do not consume compound colors directly

* rethemedex

* Update pass

* Final tweaks

* a11y pass

* scope opacity to checkbox and not label

* Add missing customisations var for theming

* lintfix

* remove unwanted test
2023-07-12 17:46:49 +00:00
Kerry
db52cdd02d
wait for audio tile to load more (#11242) 2023-07-12 16:03:57 +00:00
renovate[bot]
2ff966e802
Update babel monorepo (#11033)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-12 15:25:56 +00:00
Michael Telatynski
a4a70eb81b
Document @media only percy (#11244) 2023-07-12 14:57:01 +00:00
Michael Telatynski
f1534fda79
Improve types (#11239) 2023-07-12 15:56:51 +01:00
Michael Telatynski
44615b2b04
Strip emoji variation when searching emoji by emoji (#11221) 2023-07-12 07:26:13 +00:00
Kerry
c5befa1ef8
Stabilize support for MSC3952: intentional mentions (#10967)
* enable feature_intentional_mentions with v1.7

* org.matrix.msc3952.mentions -> m.mentions

* update push rules test util

* only support stable version 1.7

* use stable values for msc3952 push rules

* use stable intentional mentions rule sin test models

* unstable feature in settings controller
2023-07-11 22:29:54 +00:00
Richard van der Hoff
113b6301f8
Use cypress-terminal-report (#11226)
* Use cypress-terminal-report

This cypress plugin gives nice console logs about what is happening: I hope it
will help us debug mysteriously failing tests.

In its default config, it only logs for failing tests.

* another anti-morgan hack

* Disable collection of `console.debug`

* `ctr:info` is not real
2023-07-11 15:10:13 +00:00
renovate[bot]
8bba3bb1a9
Update dependency @matrix-org/react-sdk-module-api to v1 (#11227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-11 14:33:28 +00:00
Florian Duros
21a1bdf7b7
Cypress: Add test to verify device after login (#11217)
* Run cypress test without `cryptoCallbacks`

* Add security phrase test

* Add security key test

* Fix type import

* Move new test in `verification.spec.ts`

* The nest tests work with the new crypto

* Fix import yupe
2023-07-11 14:18:46 +00:00
Michael Telatynski
a8f632ae19
Warn when demoting self via /op and /deop slash commands (#11214)
* Warn when demoting self via /op and /deop slash commands

* Iterate and DRY

* i18n

* Improve coverage

* Improve coverage

* Improve coverage

* Iterate
2023-07-11 12:53:33 +00:00
RiotRobot
a67427e6ca v3.76.0-rc.1 2023-07-11 13:47:54 +01:00
RiotRobot
ae3eda6065 Prepare changelog for v3.76.0-rc.1 2023-07-11 13:47:52 +01:00
RiotRobot
dc679052c0 Upgrade matrix-js-sdk to 27.0.0-rc.1 2023-07-11 13:46:05 +01:00
Andy Balaam
b6c7fe4235
Make checkboxes less rounded. Fixes #25715 (#11224) 2023-07-11 11:33:04 +00:00
Janne Mareike Koschinski
b179f5562e
GYU: Fix issues with audible keywords without activated mentions (#11218) 2023-07-11 10:38:26 +00:00
Janne Mareike Koschinski
d0147561d7
GYU: Update banner (#11211)
* Update help text

* chore: fixed lint issues

* update i18n

* Update button text

* Correct css for settings banners
2023-07-11 10:38:14 +00:00
Element Translate Bot
99343e8abe
Translations update from Weblate (#11219)
* Translated using Weblate (German)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Vietnamese)

Currently translated at 88.8% (3317 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Latvian)

Currently translated at 46.6% (1743 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lv/

* Translated using Weblate (Vietnamese)

Currently translated at 89.4% (3341 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Georgian)

Currently translated at 0.5% (21 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ka/

* Translated using Weblate (Vietnamese)

Currently translated at 89.5% (3342 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.6% (3348 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3351 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3351 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3352 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 89.7% (3352 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Vietnamese)

Currently translated at 91.2% (3405 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Vietnamese)

Currently translated at 91.5% (3417 of 3733 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Polish)

Currently translated at 100.0% (3737 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/pl/

* Translated using Weblate (Persian)

Currently translated at 68.2% (2552 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fa/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Translated using Weblate (Vietnamese)

Currently translated at 91.5% (3416 of 3732 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/vi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3736 of 3736 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Russian)

Currently translated at 93.0% (3477 of 3736 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/

* Translated using Weblate (Hungarian)

Currently translated at 99.6% (3723 of 3737 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Russian)

Currently translated at 93.1% (3469 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.2% (3473 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3476 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3721 of 3721 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.3% (3479 of 3725 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Russian)

Currently translated at 93.4% (3481 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

* Translated using Weblate (Hungarian)

Currently translated at 99.6% (3711 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Russian)

Currently translated at 93.4% (3481 of 3724 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/

---------

Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Someone <hahahahacker2009@gmail.com>
Co-authored-by: Edgars Andersons <Edgars+Element-translations@gaitenis.id.lv>
Co-authored-by: ia rigby <marvinzem@gmail.com>
Co-authored-by: Văn Huy Dương <huy.error1@gmail.com>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: raspin0 <marcinekk13@interia.pl>
Co-authored-by: Telegramian <telegramian@gmail.com>
Co-authored-by: Nui Harime <harime.nui@yandex.ru>
Co-authored-by: Balázs Meskó <meskobalazs@gmail.com>
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-07-11 11:54:06 +01:00
dependabot[bot]
400c91b8fa
Bump semver from 5.7.1 to 5.7.2 (#11220)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 10:06:06 +00:00
Michael Telatynski
6e99b2fca3
Linkify mxc:// URLs as links to your media repo (#11213) 2023-07-11 07:25:51 +00:00
Kerry
7b3d0ad209
OIDC: Log in (#11199)
* add delegatedauthentication to validated server config

* dynamic client registration functions

* test OP registration functions

* add stubbed nativeOidc flow setup in Login

* cover more error cases in Login

* tidy

* test dynamic client registration in Login

* comment oidc_static_clients

* register oidc inside Login.getFlows

* strict fixes

* remove unused code

* and imports

* comments

* comments 2

* util functions to get static client id

* check static client ids in login flow

* remove dead code

* OidcRegistrationClientMetadata type

* navigate to oidc authorize url

* exchange code for token

* navigate to oidc authorize url

* navigate to oidc authorize url

* test

* adjust for js-sdk code

* login with oidc native flow: messy version

* tidy

* update test for response_mode query

* tidy up some TODOs

* use new types

* add identityServerUrl to stored params

* unit test completeOidcLogin

* test tokenlogin

* strict

* whitespace

* tidy

* unit test oidc login flow in MatrixChat

* strict

* tidy

* extract success/failure handlers from token login function

* typo

* use for no homeserver error dialog too

* reuse post-token login functions, test

* shuffle testing utils around

* shuffle testing utils around

* i18n

* tidy

* Update src/Lifecycle.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* tidy

* comment

* update tests for id token validation

* move try again responsibility

* prettier

* use more future proof config for static clients

* test util for oidcclientconfigs

* rename type and lint

* correct oidc test util

* store issuer and clientId pre auth navigation

* adjust for js-sdk changes

* update for js-sdk userstate, tidy

* update MatrixChat tests

* update tests

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-07-11 04:09:18 +00:00
Michael Telatynski
186497a67d
Handle all permitted url schemes in linkify (#11215)
* Handle all permitted url schemes in linkify

* Correctly handle optional slash protocols

* Iterate
2023-07-10 15:09:39 +00:00
Timo
58710d129d
Autoapprove Element Call oidc requests (#11209)
* autoapprove Element Call oidc requests

Signed-off-by: Timo K <toger5@hotmail.de>

* update comment

Signed-off-by: Timo K <toger5@hotmail.de>

* add tests for oidc element-call

Signed-off-by: Timo K <toger5@hotmail.de>

* fix ES lint

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-07-10 15:06:58 +00:00
Michael Telatynski
ab972ddea9
PosthogAnalytics unwatch settings on logout (#11207)
* PosthogAnalytics unwatch settings on logout

* Tidy
2023-07-10 15:01:59 +00:00
Michael Telatynski
411a63f4a5
Avoid trying to set room account data for pinned events as guest (#11216) 2023-07-10 14:20:12 +00:00
Janne Mareike Koschinski
05c2ee0767
Disable sound for DMs checkbox when DM notifications are disabled (#11210) 2023-07-10 12:49:56 +00:00
David Baker
aa818cdf85
Add commented-out waitForIFrameLoad option to Element Call widget (#11208)
As hopefully all explained in comment.
2023-07-10 12:20:08 +00:00
dependabot[bot]
c47ebb9342
Bump stylelint from 15.9.0 to 15.10.1 (#11205)
Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.9.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/15.9.0...15.10.1)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 08:18:37 +00:00
Charly Nguyen
fd749172e1
Allow creating knock rooms (#11182)
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
2023-07-10 08:01:03 +00:00
Kerry
01bd80fe59
OIDC: update to oidc-client-ts functions from js-sdk (#11193)
* test util for oidcclientconfigs

* rename type and lint

* correct oidc test util

* store issuer and clientId pre auth navigation

* update for js-sdk userstate, tidy
2023-07-10 00:57:16 +00:00
Richard van der Hoff
1a75d5d869
Cypress: Use Rust crypto for the bot user in verification tests (#11173)
* Cypress: `crypto.verification.request` -> `crypto.verificationRequestReceived`

matrix-org/matrix-js-sdk#3514 deprecated crypto.verification.request.

* Cypress: `beginKeyVerification` -> `startVerification`

matrix-org/matrix-js-sdk#3528 deprecated beginKeyVerification

* simplify `setupBotClient`

no functional change here, just combining the various `cy.wrap()`ed things into
a single async func

* Cypress: Use Rust crypto for the bot user in verification tests

We can already start using the Rust crypto implementation for the "bot" user in
the verification tests!
2023-07-07 16:56:53 +00:00
Gustavo Santos
8924bd26fa
feat(faq): remove keyboard shortcuts button (#9342)
* feat(faq): remove keyboard shortcuts button

Signed-off-by: Gustavo Santos <gefgu@hotmail.com>

* Update HelpUserSettingsTab.tsx

* delint

---------

Signed-off-by: Gustavo Santos <gefgu@hotmail.com>
Co-authored-by: Germain <germains@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 14:40:41 +00:00
Travis Ralston
8a97e5f351
Expose and pre-populate thread ID in devtools dialog (#10953)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 15:40:25 +01:00
Michael Telatynski
cfd48b36aa
Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
Michael Telatynski
4207d182cd
Enable strictFunctionTypes (#11201) 2023-07-07 13:37:26 +01:00