1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-23 11:02:35 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Quentin Gliech
d91b0e20e4 Expose a unified session list in the GraphQL API 2023-09-20 20:27:08 +02:00
Kerry
ff66f052a0 DM: Simplify session components API (#1745)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-09-14 12:41:30 +00:00
Kerry
ce2395f94b Error boundary (#1743)
* reinstate link to browser session detail

* add util hook for unwrapping current browser session id

* fix bug in compatsessiondetail createdAt -> finishedAt

* browser session detail page

* tweak naming

* add ErrorBoundary

* useCurrentBrowserSessionId throw when error

* add ErrorBoundary to pages

* throw errors instead of rendering error

* add unwrap util
2023-09-14 00:26:32 +00:00
Kerry Archibald
de04b1679c browser session detail page 2023-09-13 01:41:31 +02:00
Kerry
63fdc07793 Rename Home tab to Sessions (#1568)
* rename /account/emails route to profile

* rename tab to sessions

* quick design pass and new session labels

* align copy on list pages with home page

* comment

* remove support for /emails

* bad unit test for Layout

* update snapshots, fix layout test

* fix snapshots from old version of compound

* better layout test

* coverage?

* userhome styles

* move no primary email alert to email list

* update snapshots

* Remove obselete snapshot & remove unnecessary logs

---------

Co-authored-by: Quentin Gliech <quenting@element.io>
2023-08-25 16:17:46 +02:00
Quentin Gliech
4556332efb frontend: simple "active only" list filtering 2023-08-08 18:35:32 +02:00
Quentin Gliech
f001463585 frontend: add tests & stories for many components
Also more compound adoption
Also prettier upgrade
2023-08-08 18:35:32 +02:00
Quentin Gliech
802cf142fd Remove the last authentication from the browser session model 2023-07-21 19:50:30 +02:00
Quentin Gliech
7e82ae845c WIP: use sea-query for dynamic paginated queries 2023-07-21 19:50:30 +02:00
Quentin Gliech
f67cc0d6d0 Frontend cleanups
Mainly:

 - better handling of GraphQL errors
 - better logout state
 - dependencies update
 - a way to end browser sessions in the GraphQL API
2023-06-20 16:53:53 +02:00
Quentin Gliech
3672d2dbde Adopt eslint-config-matrix-org & bump deps 2023-06-14 09:24:49 +02:00
Quentin Gliech
741873b84e Ability to remove emails 2023-06-14 09:24:49 +02:00
Quentin Gliech
826e84904e Setup consistent import order and fix eslint errors 2023-06-14 09:24:49 +02:00
Quentin Gliech
3d6eba6acc Use the same pagination primitives in the session lists 2023-06-14 09:24:49 +02:00
Quentin Gliech
d7403ca0fd WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech
3c933a9d29 WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech
574514638e WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech
b26d12f52f frontend: Migrate to jotai and urql
This cuts the bundle size by 50% and makes it easier to reason about state.
It removes the usage of react-router-dom and replaces it with a simple router atom based on jotai-location.
Since the screens will be quite simple, I don't expect that we'll need the advanced caching features of react-relay, hence the switch to urql.
2023-03-20 21:10:04 +01:00
Quentin Gliech
408a7ba363 More components reuse 2022-11-18 13:43:01 +01:00
Quentin Gliech
7dec625114 Configure Storybook 2022-11-18 13:43:01 +01:00
Quentin Gliech
f195cd3567 OAuth and browser session lists 2022-11-18 13:43:01 +01:00