element-web/src/utils
Hugh Nimmo-Smith 3c3df11d32
Support for login + E2EE set up with QR (#9403)
* Support for login + E2EE set up with QR

* Whitespace

* Padding

* Refactor of fetch

* Whitespace

* CSS whitespace

* Add link to MSC3906

* Handle incorrect typing in MatrixClientPeg.get()

* Use unstable class name

* fix: use unstable class name

* Use default fetch client instead

* Update to revised function name

* Refactor device manager panel and make it work with new sessions manager

* Lint fix

* Add missing interstitials and update wording

* Linting

* i18n

* Lint

* Use sensible sdk config name for fallback server

* Improve error handling for QR code generation

* Refactor feature availability logic

* Hide device manager panel if no options available

* Put sign in with QR behind lab setting

* Reduce scope of PR to just showing code on existing device

* i18n updates

* Handle null features

* Testing for LoginWithQRSection

* Refactor to handle UIA

* Imports

* Reduce diff complexity

* Remove unnecessary change

* Remove unused styles

* Support UIA

* Tidy up

* i18n

* Remove additional unused parts of flow

* Add extra instruction when showing QR code

* Add getVersions to server mocks

* Use proper colours for theme support

* Test cases

* Lint

* Remove obsolete snapshot

* Don't override error if already set

* Remove unused var

* Update src/components/views/settings/devices/LoginWithQRSection.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update src/components/views/auth/LoginWithQR.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update src/components/views/auth/LoginWithQR.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update src/components/views/auth/LoginWithQR.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update src/components/views/auth/LoginWithQR.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update src/components/views/auth/LoginWithQR.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Update res/css/views/auth/_LoginWithQR.pcss

Co-authored-by: Kerry <kerrya@element.io>

* Use spacing variables

* Remove debug

* Style + docs

* preventDefault

* Names of tests

* Fixes for js-sdk refactor

* Update snapshots to match test names

* Refactor labs config to make deployment simpler

* i18n

* Unused imports

* Typo

* Stateless component

* Whitespace

* Use context not MatrixClientPeg

* Add missing context

* Type updates to match js-sdk

* Wrap click handlers in useCallback

* Update src/components/views/settings/DevicesPanel.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>

* Wait for DOM update instead of timeout

* Add missing snapshot update from last commit

* Remove void keyword in favour of then() clauses

* test main paths in LoginWithQR

Co-authored-by: Travis Ralston <travisr@matrix.org>
Co-authored-by: Kerry <kerrya@element.io>
2022-10-19 13:31:20 +01:00
..
beacon Live location share - open latest location in map site (#8981) 2022-07-04 16:05:55 +02:00
device Device manager - UA parsing tweaks (#9382) 2022-10-11 09:29:19 +02:00
dm Exclude functional members from DM detection (#9124) 2022-08-01 19:28:33 +02:00
exportUtils Include a file-safe room name and ISO date in chat exports (#9440) 2022-10-17 19:54:10 -06:00
localRoom Prepare utils for local rooms (#9084) 2022-07-25 10:17:40 +02:00
location Live location share - focus on user location on list item click (PSG-609) (#9051) 2022-07-18 08:34:39 +00:00
permalinks Delete the remainder of groups (#9357) 2022-10-05 17:44:46 +00:00
room Exclude functional members from DM detection (#9124) 2022-08-01 19:28:33 +02:00
validate Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
AnimationUtils.ts
AutoDiscoveryUtils.tsx Extract ValidatedServerConfig (#9054) 2022-07-14 15:03:34 +02:00
BrowserWorkarounds.ts Fix: Avatar preview does not update when same file is selected repeatedly (#8288) 2022-04-12 14:21:17 +02:00
DMRoomMap.ts Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
DecryptFile.ts Replace browser-encrypt-attachment with matrix-encrypt-attachment (#7795) 2022-04-05 11:29:27 -06:00
DialogOpener.ts Store refactor: use non-global stores in components (#9293) 2022-10-19 13:07:03 +01:00
DirectoryUtils.ts Integrate searching public rooms and people into the new search experience (#8707) 2022-06-15 16:14:05 +02:00
EditorStateTransfer.ts
ErrorUtils.tsx Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
EventRenderingUtils.ts New group call experience: Call tiles (#9332) 2022-09-30 19:26:08 +00:00
EventUtils.ts Live location share - disallow message pinning (PSF-1084) (#8928) 2022-06-29 07:11:33 +00:00
Feedback.ts Don't show feedback prompts when that UIFeature is disabled (#9305) 2022-09-22 15:08:14 +01:00
FileDownloader.ts Revert "remove code related to encrypted file download button in iframe" (#7957) 2022-03-02 18:27:36 +01:00
FileUtils.ts Show file name and size on images on hover (#6511) 2022-05-14 10:31:53 +02:00
FixedRollingArray.ts
FontManager.ts
FormattingUtils.ts Fix spacing errors (#7484) 2022-01-10 12:57:20 +00:00
HostingLink.ts
IDestroyable.ts
IdentityServerUtils.ts Make sonar happier (#9114) 2022-07-29 11:01:15 +00:00
Image.ts Fix wrong assertions that all media events have a mimetype (#8946) 2022-06-30 14:35:40 +01:00
JSON.ts Fix view source and devtools showing hljs warnings (#7759) 2022-02-09 09:09:06 +00:00
KeyVerificationStateObserver.ts
LazyValue.ts Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
MarkedExecution.ts
MatrixGlob.ts
MediaEventHelper.ts Respect `filename` field on `m.file` events (#8951) 2022-06-30 16:22:52 +01:00
MegolmExportEncryption.ts Apply corrections identified by SonarQube (#8457) 2022-05-03 22:04:37 +01:00
MessageDiffUtils.tsx
Mouse.ts
MultiInviter.ts Move from `browser-request` to `fetch` (#9345) 2022-10-12 18:59:07 +01:00
NativeEventUtils.ts Live location share - focus on user location on list item click (PSG-609) (#9051) 2022-07-18 08:34:39 +00:00
PasswordScorer.ts
PinningUtils.ts Allow pinning polls (#7922) 2022-03-04 09:26:13 -05:00
PreferredRoomVersions.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
ReactUtils.tsx
Reply.ts Location (live) share replies now provide a fallback content (#8949) 2022-07-01 08:01:22 +02:00
ResizeNotifier.ts
RoomUpgrade.ts Remove Piwik support (#8835) 2022-06-14 17:51:51 +01:00
ShieldUtils.ts
Singleflight.ts Run a minor code quality checker over the repo (#8524) 2022-05-09 22:52:05 +00:00
SnakedObject.ts Use & enforce snake_case naming convention on config.json settings (#8062) 2022-03-18 10:12:36 -06:00
SortMembers.ts Integrate searching public rooms and people into the new search experience (#8707) 2022-06-15 16:14:05 +02:00
StorageManager.ts Remove Piwik support (#8835) 2022-06-14 17:51:51 +01:00
Timer.ts
TypeUtils.ts
UrlUtils.ts
UserInteractiveAuth.ts Support for login + E2EE set up with QR (#9403) 2022-10-19 13:31:20 +01:00
ValidatedServerConfig.ts Extract ValidatedServerConfig (#9054) 2022-07-14 15:03:34 +02:00
WellKnownUtils.ts Fetch homeUrl from .well-known (#7790) 2022-05-30 19:01:55 +00:00
Whenable.ts
WidgetUtils.ts Pass language to Jitsi Widget (#9346) 2022-10-06 13:19:01 -06:00
arrays.ts Add array concat util (#9306) 2022-09-21 20:06:05 +02:00
blobs.ts Allow sending and thumbnailing AVIF images (#8172) 2022-03-29 00:03:41 -06:00
colour.ts fix rainbow breaks compound emojis (#8245) 2022-04-20 14:49:12 +00:00
connection.ts Reload map on reconnect (#8848) 2022-06-15 16:38:35 +02:00
createMatrixClient.ts Remove unused sessionStorage layer (#8834) 2022-06-14 21:29:24 +01:00
createVoiceMessageContent.ts Extract createVoiceMessageContent (#9322) 2022-09-29 13:06:49 -06:00
direct-messages.ts Prepare utils for local rooms (#9084) 2022-07-25 10:17:40 +02:00
enums.ts
error.ts Extract view/join room logic to room helper (#8329) 2022-04-21 10:56:02 +01:00
humanize.ts Live location sharing: beacon list view tiles (#8363) 2022-04-20 11:57:50 +00:00
i18n-helpers.ts Correct accessibility labels for unread rooms in spotlight (#9003) 2022-07-11 11:34:23 +00:00
image-media.ts Update image-media.ts (#9276) 2022-09-14 12:00:54 +01:00
iterables.ts Remove dead code (#9035) 2022-07-11 07:52:44 +02:00
leave-behaviour.ts Store refactor: use non-global stores in components (#9293) 2022-10-19 13:07:03 +01:00
local-room.ts Prepare utils for local rooms (#9084) 2022-07-25 10:17:40 +02:00
login.ts Step 8.5: Move isLoggedIn helper 2022-03-28 14:02:31 -06:00
maps.ts Remove dead code (#9035) 2022-07-11 07:52:44 +02:00
membership.ts Step 8.5: Move various room utilities out of `createRoom` 2022-03-28 14:02:31 -06:00
notifications.ts Do not create account data event for guests (#9407) 2022-10-13 13:15:34 +01:00
numbers.ts
objects.ts Fix naming of set-theory utils to match convention (#7343) 2021-12-13 10:57:51 +00:00
pages.ts Fetch homeUrl from .well-known (#7790) 2022-05-30 19:01:55 +00:00
pillify.tsx Fix pillification sometimes doubling up (#9152) 2022-08-09 15:37:13 +01:00
presence.ts Use & enforce snake_case naming convention on config.json settings (#8062) 2022-03-18 10:12:36 -06:00
promise.ts More posthog tracking around joining rooms and room search (#7807) 2022-02-17 18:03:27 +00:00
read-receipts.ts Add option to stop sending read receipts (delabs MSC2285: private read receipts) (#8629) 2022-08-05 17:33:57 +02:00
rooms.ts Update matrix-analytics-events to @matrix-org/analytics-events (#8778) 2022-06-07 20:08:36 +01:00
sets.ts Space preferences for whether or not you see DMs in a Space (#7250) 2021-12-17 09:26:32 +00:00
space.tsx Store refactor: use non-global stores in components (#9293) 2022-10-19 13:07:03 +01:00
stringOrderField.ts
strings.ts Apply corrections identified by SonarQube (#8457) 2022-05-03 22:04:37 +01:00
tooltipify.tsx Fix tile crash around tooltipify links (#9270) 2022-09-12 15:28:22 +01:00
units.ts Remove dead code (#9035) 2022-07-11 07:52:44 +02:00
useTooltip.tsx Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
video-rooms.ts Element Call video rooms (#9267) 2022-09-16 11:12:27 -04:00