Quentin Gliech
e76945372a
Make sure we load current session data in route loaders
...
This means we should almost never see a loading spinner when navigating
2024-02-20 12:08:50 +01:00
Quentin Gliech
800c594276
Set the session pagination to use query parameters
...
Also reverses the order of the sessions to show the most recent ones first.
Fixes #1497
2024-02-20 12:08:50 +01:00
Quentin Gliech
aefcc3cae2
Move the cross signing reset UI in its own page
2024-02-17 09:48:53 +01:00
Quentin Gliech
e041f47dfe
Replace Jotai with @tanstack/router ( #2359 )
...
* Start replacing jotai with @tanstack/router
* Remove jotai completely
* Move the common layout & reimplement the ?action parameter
This also makes sure everything is properly loaded in the route loader,
and we use fragment where it makes sense
* Change the default error component
* GraphQL API: make the sessions fetchable through node(id: ID!)
2024-02-15 17:19:05 +01:00
Quentin Gliech
f0f7497d2d
Finish replacing jotai-urql with bare urql
...
Mostly remaining was pagination related stuff & fixing tests
2024-02-15 14:17:20 +01:00
Quentin Gliech
1b75b3b185
WIP: start replacing jotai-urql with urql
2024-02-15 14:17:20 +01:00
Quentin Gliech
b7c093c2a2
Simple UI to reset cross-signing keys
2023-12-05 17:47:36 +01:00
Quentin Gliech
f8d745d308
Add a GraphQL mutation to allow cross-signing reset
2023-12-05 17:47:36 +01:00
Quentin Gliech
3cb8a26d95
"Can request admin" flag on user
2023-10-09 18:52:30 +02:00
Quentin Gliech
2a100ab927
graphql: allow filtering appsessions on device_id
2023-10-06 16:05:26 +02:00
Kerry
f7e12e7301
DM: Device type icon ( #1783 )
2023-10-06 11:24:04 +02:00
Quentin Gliech
597482d4d8
Cleanup the session details fragments & load last active IP
...
This also cleans up the GraphQL scalar types, by making sure we always parse dates correctly
2023-09-21 12:47:45 +02:00
Kerry Archibald
51633a1853
remove compat session and oauth2 session list components and routes
2023-09-21 09:48:03 +02:00
Kerry Archibald
1567dbb6d6
add app sessions list
2023-09-21 09:48:03 +02:00
Kerry Archibald
87416bb0b0
fetch from app sessions api
2023-09-21 09:48:03 +02:00
Quentin Gliech
d91b0e20e4
Expose a unified session list in the GraphQL API
2023-09-20 20:27:08 +02:00
Quentin Gliech
50558a7319
Make the last activity timestamp and IP available through the API
2023-09-19 21:57:54 +02:00
Quentin Gliech
4d123b75af
frontend: Hide the navigation in the email verification page
2023-09-19 10:50:30 +02:00
Kerry
e19002a0ca
Confirm destructive actions ( #1759 )
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2023-09-14 12:35:09 +00:00
Kerry Archibald
de04b1679c
browser session detail page
2023-09-13 01:41:31 +02:00
Quentin Gliech
83ca90ee3d
Add a GraphQL mutation to create arbitrary OAuth2 sessions.
2023-09-11 12:03:42 +02:00
Kerry Archibald
bf13e58d16
link to client detail, design pass on client detail page
2023-09-08 11:37:26 +02:00
Kerry Archibald
0d726cd7cb
add client logo to session tile and detail
2023-09-08 10:41:26 +02:00
Quentin Gliech
7e247830c9
data-model: Make the user_id optional in the OAuth 2.0 sessions
2023-09-06 09:35:34 +02:00
Quentin Gliech
bc3f665739
graphql: expose the logo_uri in the OAuth 2.0 client
...
Fixes #1705
2023-09-06 09:28:47 +02:00
Kerry
571e4d2d75
Parse browser session userAgent for session name ( #1685 )
...
* parse browser session user agent and use for session name
* move current session badge to session component
* simplify browser session name
2023-09-06 17:27:20 +12:00
Quentin Gliech
be5b527403
graphql: admin API to add a user, lock them, and add emails without verification
2023-09-01 11:34:58 +02:00
Quentin Gliech
73d33dfccb
frontend: fix compatibility session crash & simplify the redirect URI
2023-08-31 15:03:50 +02:00
Kerry Archibald
915ebc9dfd
get session and display as session tile on session detail page
2023-08-31 09:41:35 +02:00
Kerry
da8a489748
Make Profile page the default route ( #1653 )
...
* make profile the default route
* src/pages/Home.tsx -> src/pages/SessionsOverview.tsx
* UserHome -> UserSessionsOverview
* update snapshots, fix session overview button alignment
2023-08-30 23:27:39 +00:00
Kerry Archibald
7bc13ab536
move unverified email alert to header
2023-08-30 19:40:59 +02:00
Quentin Gliech
7fcd022eea
Make sure we validate passwords & emails by the policy at all stages
...
Also refactors the way we get the policy engines in requests
2023-08-30 19:39:39 +02:00
Quentin Gliech
a19f405e53
graphql: Expose the BrowserSession User-Agent
2023-08-29 17:38:01 +02:00
Quentin Gliech
ba98b7c448
graphql: API to query client sessions out of a device_id and a user ID
2023-08-29 16:53:38 +02:00
Kerry
1826120f10
Allow user to view and change display name in My Account UI ( #1628 )
...
Co-authored-by: Quentin Gliech <quenting@element.io >
2023-08-29 13:40:00 +02:00
Quentin Gliech
438a10332a
Add the user_id directly on oauth2_sessions and make the scope a text list
2023-08-29 12:52:24 +02:00
Kerry Archibald
feb59344f3
add finishedAt to browser sessions
2023-08-29 12:43:04 +02:00
Quentin Gliech
85629820fd
api: Add a finishedAt property to the BrowserSession and a state property to all 3 session types
2023-08-29 08:34:07 +02:00
Quentin Gliech
096386e9b9
Save the application_type and the contacts in the OAuth 2.0 clients
...
This also removes the dedicated "redirect_uris" table and makes it a field of the "oauth2_clients" table
2023-08-28 14:41:49 +02:00
Quentin Gliech
1c372da6b8
Update GraphQL schema
2023-08-11 14:56:21 +02:00
Quentin Gliech
3feb9113bb
frontend: split the various lists off the home page
2023-08-08 18:35:32 +02:00
Quentin Gliech
4556332efb
frontend: simple "active only" list filtering
2023-08-08 18:35:32 +02:00
Quentin Gliech
6002a6b929
frontend: move the email verification form to a dedicated page
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
1e474518f5
graphql: API to set the user displayname ( #1412 )
2023-08-03 14:45:59 +00:00
Quentin Gliech
c454f5604b
frontend: show pagination total count in more lists
2023-07-21 19:50:30 +02:00
Quentin Gliech
517438471c
Better upstream OAuth provider pagination and filtering
2023-07-21 19:50:30 +02:00
Quentin Gliech
6767c93a75
Better OAuth 2.0 sessions pagination and filtering
2023-07-21 19:50:30 +02:00
Quentin Gliech
a75a53cc24
Better user emails pagination and filtering
2023-07-21 19:50:30 +02:00
Quentin Gliech
12ad572db8
Better SSO login pagination and filtering
2023-07-21 19:50:30 +02:00