Michael Telatynski
2da52372d4
Add arrow key controls to emoji and reaction pickers ( #10637 )
...
* Add arrow key controls to emoji and reaction pickers
* Iterate types
* Switch to using aria-activedescendant
* Add tests
* Fix tests
* Iterate
* Update test
* Tweak header keyboard navigation behaviour
* Also handle scrolling on left/right arrow keys
* Iterate
2023-04-20 14:56:21 +00:00
Michael Telatynski
0d9fa0515d
Fix typing tile duplicating users ( #10678 )
2023-04-20 14:44:54 +00:00
Suguru Hirahara
467c52a2ae
Add E2E test - general-user-settings-tab.spec.ts
( #10658 )
...
* Add E2E test: `general-user-settings-tab.spec.ts`
Initial implementation
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* lint
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Check an input area for a new email address too
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
---------
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-20 13:18:19 +00:00
Michael Telatynski
483b53c148
Translate credits in help about section ( #10676 )
2023-04-20 12:18:13 +00:00
Michael Telatynski
1efa82917a
Fix wrong room topic tooltip position ( #10667 )
...
* Fix wrong room topic tooltip position
* Update snapshots
* Fix tests
2023-04-20 08:25:53 +00:00
Michael Telatynski
93b4ee654b
Conform more of the codebase to strictNullChecks
( #10666 )
...
* Conform more of the codebase to `strictNullChecks`
* Iterate
* Iterate
* Iterate
* Iterate
2023-04-20 09:49:10 +01:00
Michael Weimann
83e6a6057d
Add developer tools option to room list context menu ( #10635 )
...
* Make developer tools more accessible
* Extend tests
* Use settings hook
* Trigger CI
2023-04-19 11:34:27 +00:00
Kerry
957945b356
remove old debug logging in AsyncWrapper ( #10661 )
2023-04-19 07:45:27 +00:00
Suguru Hirahara
869856df2d
Remove obsolete class name and declarations on General
user settings tab ( #10659 )
...
* Remove an obsolete class name: `mx_EmailAddresses_new`
The class name was added by aa7afe819f
for an initial implementation and became obsolete thanks to 1090b7d912
.
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Remove obsolete declarations: `mx_ExistingPhoneNumber_delete`
The declarations have been obsolete since 11f2b4320d
.
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Remove obsolete declarations: `mx_ExistingEmailAddress_delete`
The declarations have also been deprecated by 11f2b4320d
.
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
---------
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-18 20:59:18 +00:00
Michael Telatynski
0db40e327c
Fix create subspace dialog not working ( #10652 )
2023-04-18 16:00:55 +00:00
Michael Weimann
7632f36624
Implement new toast UI ( #10467 )
...
* Implement new toast UI
* Use PCSS vars and Caption component
* Add GenericToast-test
* Tweak call toast
* Fix code style
2023-04-18 11:38:41 +00:00
Element Translate Bot
ac2855789f
Translations update from Weblate ( #10636 )
...
* 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 (German)
Currently translated at 99.9% (3765 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (Albanian)
Currently translated at 99.6% (3751 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
* 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 (Chinese (Traditional))
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
* Translated using Weblate (Czech)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
* Translated using Weblate (French)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3766 of 3766 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* 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 (German)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
* 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 (Czech)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (French)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Albanian)
Currently translated at 99.6% (3748 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3761 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3761 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3761 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3761 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Italian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
* Translated using Weblate (Hebrew)
Currently translated at 72.0% (2709 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/he/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3762 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Swedish)
Currently translated at 98.4% (3704 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/
* Translated using Weblate (Hebrew)
Currently translated at 72.0% (2712 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/he/
* Translated using Weblate (Swedish)
Currently translated at 98.6% (3712 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/
* Translated using Weblate (Swedish)
Currently translated at 98.8% (3720 of 3762 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3763 of 3763 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Czech)
Currently translated at 100.0% (3763 of 3763 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (German)
Currently translated at 99.9% (3763 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (German)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (Albanian)
Currently translated at 99.6% (3750 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (French)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
* Translated using Weblate (Hungarian)
Currently translated at 99.9% (3763 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
* Translated using Weblate (Italian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (Czech)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (Norwegian Nynorsk)
Currently translated at 27.4% (1032 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nn/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
* 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 (Italian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (German)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3765 of 3765 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Italian)
Currently translated at 99.9% (3767 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (German)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (French)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
* Translated using Weblate (Hungarian)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
* Translated using Weblate (Italian)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
* Translated using Weblate (Czech)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3768 of 3768 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Czech)
Currently translated at 100.0% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
* Translated using Weblate (German)
Currently translated at 100.0% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3769 of 3769 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% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3769 of 3769 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Estonian)
Currently translated at 100.0% (3771 of 3771 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3771 of 3771 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3771 of 3771 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
* Translated using Weblate (Slovak)
Currently translated at 100.0% (3771 of 3771 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
* Translated using Weblate (French)
Currently translated at 100.0% (3771 of 3771 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
---------
Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Co-authored-by: Peter Chen <petercpg@gmail.com>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: waclaw66 <waclaw66@seznam.cz>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Szimszon <github@oregpreshaz.eu>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: SPiRiT <such.a.lost.spirit@gmail.com>
Co-authored-by: Balázs Meskó <meskobalazs@gmail.com>
Co-authored-by: LinAGKar <linus.kardell@gmail.com>
Co-authored-by: Bjørn I.Svindseth <bjorni.svindseth@yahoo.com>
2023-04-18 10:06:45 +00:00
Michael Telatynski
82a51e9674
Pick sensible default option for phone country dropdown ( #10627 )
...
* Pick sensible default option for phone country dropdown
* Add tests
* Add tests
2023-04-18 08:23:37 +00:00
Michael Telatynski
6bf1815608
Add missing rel noreferrer noopener attributes ( #10629 )
2023-04-17 18:43:25 +00:00
Michael Telatynski
1a0e5c1805
Fix multiple accessibility defects identified by AXE ( #10606 )
...
* Mark effects overlay canvas as aria hidden
* Ensure date separators aren't seen as focusable aria separators
* Fix
* Fix font slider not having aria label
* Add missing aria labels
* Fix settings flags setting aria-checked={null}
* Update snapshots
2023-04-17 16:09:45 +00:00
Michael Telatynski
270a26d89a
Fix view source from edit history dialog always showing latest event ( #10626 )
2023-04-17 16:09:17 +00:00
Michael Telatynski
568ec77208
Make SonarCloud happier about our code quality ( #10630 )
2023-04-17 12:57:19 +00:00
kenwuuu
dc4bb237d4
Replace hardcoded strings with MsgType constants ( #10604 )
...
* replace hardcoded strings with MsgType constants
* fix import and revert comments
Signed-off-by: Ken Wu kenqiwu@gmail.com
* fix import
Signed-off-by: Ken Wu kenqiwu@gmail.com
---------
Signed-off-by: Ken Wu kenqiwu@gmail.com
2023-04-17 09:37:29 +00:00
Timothy Amello
1d9df7ec51
Apply strictNullChecks to Markdown.ts ( #10623 )
...
Co-authored-by: Kerry <kerrya@element.io>
2023-04-17 07:41:51 +00:00
Michael Telatynski
56e4ae41f8
Conform more of the codebase to strictNullChecks ( #10607 )
...
* Conform more of the codebase to `strictNullChecks`
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Conform more of the codebase to `strictNullChecks`
* Conform more of the codebase to `strictNullChecks`
2023-04-17 09:25:00 +01:00
Suguru Hirahara
8a4a584ba0
Make test ID compatible with findByTestId() of Cypress Testing Library ( #10617 )
...
'data-test-id' is not discoverable with findByTestId() of Cypress Testing Library.
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-17 06:10:11 +00:00
Michael Telatynski
daad630827
Conform more of the codebase to strictNullChecks
( #10602 )
...
* Conform more of the codebase to `strictNullChecks`
* Conform more of the codebase to `strictNullChecks`
* Fix types
2023-04-17 08:31:58 +01:00
Rashmit Pankhania
7751f9c622
#21451 Fix WebGL disabled error message ( #10589 )
...
* #21451 Fix WebGl disabled error message
* #21451 Fix WebGl disabled error message
Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com>
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix message
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix ordering of cases in LocationShareErrors.ts
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix linting LocationPicker.tsx
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix eslint
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix file encoding for i18n CI issue
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
* Fix ts strict CI issue
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
---------
Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com>
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
Co-authored-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
Co-authored-by: Kerry <kerrya@element.io>
2023-04-17 04:25:04 +00:00
Michael Telatynski
439759a1da
Relate field validation tooltip via aria-describedby ( #10522 )
...
* Relate field validation tooltip via aria-describedby
* Iterate
2023-04-14 14:15:26 +00:00
Eric Eastwood
c1e7905ddc
Properly translate errors in AddThreepid.ts
( #10432 )
...
* Properly translate errors in AddThreepid.ts
Part of https://github.com/vector-im/element-web/issues/9597
* Use translated message
* Avoid returning undefined ever
* More usage
* Introduce UserFriendlyError
* Use UserFriendlyError
* Add more usage instead of normal error
* Use types and translatedMessage
* Fix lints
* Update i18n although it's wrong
* Use unknown for easier creation from try/catch
* Use types
* Use error types
* Use types
* Update i18n strings
* Remove generic re-label of HTTPError
See https://github.com/matrix-org/matrix-react-sdk/pull/10432#discussion_r1156468143
The HTTPError already has a good label and it isn't even translated if we re-label it here in this way generically
Probably best to just remove in favor of thinking about a translations in general from the `matrix-js-sdk`, see https://github.com/matrix-org/matrix-js-sdk/issues/1309
* Make error message extraction generic
* Update i18n strings
* Add tests for email addresses
* More consistent error logging to actually see error in logs
* Consistent error handling
* Any is okay because we have a fallback
* Check error type
* Use dedicated mockResolvedValue function
See https://github.com/matrix-org/matrix-react-sdk/pull/10432#discussion_r1163344034
2023-04-14 15:40:19 +01:00
Julien DAUPHANT
075c8c3d33
Fix bug on Avatar.ts for custom theme avatar background color ( #10598 )
2023-04-14 13:38:54 +00:00
Richard van der Hoff
6b451afc50
Remove dependency on org.matrix.e2e_cross_signing
unstable feature ( #10593 )
...
* Remove dependency on `org.matrix.e2e_cross_signing` unstable feature
Currently, we have some code that relies on the server declaring support for an
`unstable_feature` called `org.matrix.e2e_cross_signing`. There is nothing in
the spec that requires this, so this would make us incompatible with some
server implementations.
The features in question were added in spec v1.1, so we can test for that
instead.
* fix unit test
2023-04-14 10:14:05 +00:00
Richard van der Hoff
70b87f8bde
Simplify isDeviceVerified
definitions ( #10594 )
...
* Simplify `isDeviceVerified` definitions
Currently, we have two similar but different definitions of `isDeviceVerified`,
and they both do a lot of wrangling that relies on js-sdk internals. We can
simplify it a lot by just calling `MatrixClientPeg.checkDeviceTrust`.
* fix tests
* more test fixes
2023-04-14 09:46:37 +00:00
alunturner
e4ebcf5731
Handle more completion types in rte autocomplete ( #10560 )
...
* handle at-room
* remove console log
* update and add tests
* tidy up
* refactor to switch statement
* fix TS error
* expand tests
* consolidate similar if/else if blocks
2023-04-14 09:09:38 +00:00
Michael Telatynski
1ae0662872
Update setting description to match reality ( #10600 )
2023-04-14 08:58:08 +00:00
Michael Telatynski
605ef084ec
Conform more of the codebase to strictNullChecks
( #10573 )
...
* Conform more of the codebase to `strictNullChecks`
* Iterate
2023-04-13 08:52:57 +01:00
Michael Telatynski
b4d7f6b592
Fix no identity server in help & about settings ( #10563 )
2023-04-13 07:25:51 +00:00
Suguru Hirahara
747afec27e
Use AccessibleButton
for "Accept" on AuthPage ( #10508 )
...
* Use AccessibleButton for "Accept" on AuthPage
- Use AccessibleButton
- Remove mx_InteractiveAuthEntryComponents_termsSubmit:disabled as disabled state is handled by AccessibleButton
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
* Empty commit
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
---------
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-13 01:29:09 +00:00
Kerry
6280395928
Fix: Images no longer reserve their space in the timeline correctly ( #10571 )
...
* test case
* fix + lint
* refix strictNullChecks issue
* add comment about max image size
* tweak
* use safer magic number
2023-04-13 01:22:16 +00:00
Andy Balaam
c496985ff3
Show a tile for an unloaded predecessor room if it has via_servers ( #10483 )
...
* Improve typing in constructor of RoomPermalinkCreator
* Provide via servers if present when navigating to predecessor room from Advanced Room Settings
* Show an error tile when the predecessor room is not found
* Test for MatrixToPermalinkConstructor.forRoom
* Test for MatrixToPermalinkConstructor.forEvent
* Display a tile for predecessor event if it contains via servers
* Fix missing case where event id is provided as well as via servers
* Refactor RoomPredecessor tests
* Return lost filterConsole to its home
* Comments for IState in AdvancedRoomSettingsTab
* Explain why we might render a tile even without prevRoom
* Guess the old room's via servers if they are not provided
* Fix TypeScript errors
* Adjust regular expression (hopefully) to avoid potential catastrophic backtracking
* Another attempt at avoiding super-liner regex performance
* Tests for guessServerNameFromRoomId and better implementation
* Further attempt to prevent backtracking
---------
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-12 15:26:45 +00:00
Michael Telatynski
075cb9e622
Exclude message timestamps from aria live region ( #10584 )
...
* Exclude message timestamps from aria live region
* Update snapshot
2023-04-12 14:12:45 +00:00
Michael Telatynski
e5b1b7b632
Make composer format bar an aria toolbar ( #10583 )
...
* Make composer format bar an aria toolbar
* Iterate
* Iterate
* Update snapshot
2023-04-12 13:58:38 +00:00
Michael Weimann
7cd86231b4
Fix read receipts falling from sky ( #10576 )
2023-04-12 11:50:48 +00:00
Michael Telatynski
d2066ba5f5
Improve accessibility of font slider ( #10473 )
...
* Clamp font size when disabling "Use custom size"
* Switch Slider to use a semantic input range element
* Iterate
* delint
* delint
* snapshot
* Iterate
* Iterate
* Fix step size
* Add focus outline to slider
* Derp
2023-04-12 10:57:31 +00:00
Neeraj Vageele
ce0bd00c5b
fix file size display from kB to KB ( #10561 )
...
* fix file size display from kB to KB
* add a wrapper function for filesize
---------
Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
2023-04-11 14:48:41 +01:00
Hugh Nimmo-Smith
692c07ef0a
Use Capabilities type from js-sdk ( #10535 )
2023-04-11 09:46:11 +00:00
alunturner
4d5744008e
Handle /me in rte ( #10558 )
...
* add /me handling
* use typeguards to avoid fighting TS
* improve clarity and use of typeguards
* add createMessageContent tests
* remove completed TODO
* improve comments
* remove duplication and renaming of argument
2023-04-11 08:23:03 +00:00
alunturner
96c62ea03d
Fix avatar text issue in rte ( #10559 )
...
* replace - with zwsp
* improve comments
* fix broken tests
* fix typo
2023-04-11 08:13:48 +00:00
Michael Weimann
29780704f1
Add unread fallback logging ( #10509 )
2023-04-11 07:41:59 +00:00
Neeraj Vageele
c8585be2f8
fix resize to only work with left mouse click ( #10546 )
...
Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
Co-authored-by: Kerry <kerrya@element.io>
2023-04-11 06:13:11 +00:00
Neeraj Vageele
99a375e354
bind html with switch for manage extension setting ( #10553 )
...
option
Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
2023-04-11 05:13:52 +00:00
alunturner
3fa6f8cbf0
Handle command completions in RTE ( #10521 )
...
* pass handleCommand prop down and use it in WysiwygAutocomplete
* allow a command to generate a query from buildQuery
* port command functionality into the sendMessage util
* tidy up comments
* remove use of shouldSend and update comments
* remove console log
* make logic more explicit and amend comment
* uncomment replyToEvent block
* update util test
* remove commented out test
* use local text over import from current composer
* expand tests
* expand tests
* handle the FocusAComposer action for the wysiwyg composer
* remove TODO comment
* remove TODO
* test for action dispatch
* fix failing tests
* tidy up tests
* fix TS error and improve typing
* fix TS error
* amend return types for sendMessage, editMessage
* fix null content TS error
* fix another null content TS error
* use as to correct final TS error
* remove undefined argument
* try to fix TS errors for editMessage function usage
* tidy up
* add TODO
* improve comments
* update comment
2023-04-10 12:47:42 +00:00
Michael Weimann
818e8292cb
Fix send two join requests when joining a room from spotlight search ( #10534 )
...
* Fix send two join requests when joining a room from spotlight search
* Trigger CI
---------
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 14:02:18 +00:00
renovate[bot]
0ea2ff85d0
Update dependency typescript to v5 ( #10532 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 13:17:50 +01:00
renovate[bot]
6c39aa29e2
Update typescript-eslint monorepo to v5.57.0 ( #10530 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 12:07:58 +01:00