Commit Graph

29 Commits

Author SHA1 Message Date
Quentin Gliech
2322b33639 Update frontend test snapshots 2025-02-21 17:04:12 +01:00
Quentin Gliech
b5bd4b4866 Update tests snapshots 2025-01-06 17:12:28 +01:00
Quentin Gliech
b828277f88 Full page render tests 2024-11-15 09:51:16 +01:00
Quentin Gliech
bf305c225c Enable recommended rules and fix all linting issues 2024-10-22 14:55:33 +02:00
Quentin Gliech
0a776d64f3 Reorder imports by running biome check --fix 2024-10-22 14:55:33 +02:00
Quentin Gliech
8b3729dad5 Clean up how pagination parameters are handled 2024-10-01 18:27:20 +02:00
Quentin Gliech
9a946c19e7 Remove (C) 2024-09-10 14:28:55 +02:00
Quentin Gliech
9da19e2af0 License headers change 2024-09-05 13:25:42 +02:00
Quentin Gliech
99ffd69e50 frontend: add filter for inactive sessions 2024-07-19 13:40:27 +02:00
Quentin Gliech
426d1005ad Apply prettier to all files in the frontend 2024-04-03 12:04:18 +02:00
Quentin Gliech
90f4f98415 frontend: upgrade @tanstack/react-router 2024-03-18 18:42:47 +01:00
Quentin Gliech
334c015460 Make sure the dummy router finished loading in the test environment 2024-02-27 11:25:01 +01:00
Quentin Gliech
d33d721287 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
576d8bb791 Move the cross signing reset UI in its own page 2024-02-17 09:48:53 +01:00
Quentin Gliech
76cdec56f0 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
b371516bda 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
5f895d5ec3 Update snapshots post compound-web upgrade 2023-11-14 15:29:33 +01:00
Michael Telatynski
af1a960c2f Wire up i18n for the React frontend (#1962)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-10-19 12:41:38 +00:00
Quentin Gliech
fd4481713b Allow running the authentication service on a different base path 2023-10-06 14:07:55 +02:00
Quentin Gliech
46bdd9d4f0 Type-level check that we handle all session types & route types 2023-09-21 09:48:03 +02:00
Kerry Archibald
3c9ba75b73 copyright years 2023-09-21 09:48:03 +02:00
Kerry Archibald
2fa719445e add app sessions list 2023-09-21 09:48:03 +02:00
Kerry Archibald
833f6515aa split browser sessions section into own component 2023-09-21 09:48:03 +02:00
Kerry Archibald
5c983c59db fix snaps after npm i 2023-09-21 09:48:03 +02:00
Kerry Archibald
10651ae8e5 fetch from app sessions api 2023-09-21 09:48:03 +02:00
Quentin Gliech
87ea9ba0b9 frontend: upgrade compound & use the Badge component to mark the current session 2023-09-08 11:51:01 +02:00
Kerry
5a8f05e518 Implement MSC2965 action parameter (#1673)
* redirect session_end action to session detail

* fix react key warning in oauth session detail

* move Route type to /routing

* test getRouteActionRedirection

* comment

* frontend: Split the routing-related stuff in multiple files under routing/

* frontend: Cover all the redirections defined by MSC2965

* frontend: fix test

* Make the backend keep query parameters through login to the /account/ interface

* Fix frontend tests & clippy lints

---------

Co-authored-by: Quentin Gliech <quenting@element.io>
2023-09-01 09:42:50 +00:00
Kerry Archibald
1d011c0905 rename session route to browser-sessions 2023-08-31 09:41:35 +02:00
Kerry
886688a770 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