Commit Graph

21 Commits

Author SHA1 Message Date
Quentin Gliech
52b0a9b2ba Update license headers to match the actual license 2025-06-12 10:32:16 +02:00
Quentin Gliech
8da8c95573 Polish the session details 2025-02-13 16:15:56 +01:00
Quentin Gliech
0d2f0a7ba3 Prevent double-fetch of translations 2024-10-23 17:36:43 +02: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
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
035d23bdba frontend: move getNinetyDaysAgo to a shared utility 2024-08-01 14:13:22 +02:00
Olivier 'reivilibre
fed23e99c1 frontend: add password complexity bar to change password form 2024-07-16 17:30:28 +01:00
Olivier 'reivilibre
f2965e2f0d Add JSON dictionaries with words from zxcvbn-rs but for use with zxcvbn-ts 2024-07-16 17:30:28 +01:00
Quentin Gliech
a7dc41fdba Parse User Agents on the backend side (#2388)
* Parse user agents on the server side

* Parse and expose user agents on the backend

* Use the parsed user agent in the device consent page

* Fix the device icon tests

* Fix clippy warnings

* Box stuff to avoid large enum variants

* Ignore a clippy warning

* Fix the requester boxing
2024-02-23 16:47:48 +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
888e94bfd8 Replace all GraphQL mutations with urql 2024-02-15 14:17:20 +01:00
Quentin Gliech
e58062a676 WIP: start replacing jotai-urql with urql 2024-02-15 14:17:20 +01:00
Kerry
1bc159e3a0 DM: Device type icon (#1783) 2023-10-06 11:24:04 +02:00
Kerry
f8c1160d7b 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
09860eb26c add util hook for unwrapping current browser session id 2023-09-13 01:41:31 +02:00
Quentin Gliech
2938ec90fc frontend: update unit tests post ua-parser-js upgrade 2023-09-12 15:58:56 +02:00
Kerry
35da1a3495 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
Kerry
05657b6398 DM: Make session UI closer to design (#1538)
* setup

* new session tile style

* update compound-web

* use compound components

* use deviceId from scope as session name

* add basic test for Session

* border color

* use new Session in compat session

* tidy

* tidy

* Revert "setup"

This reverts commit ee86051dc4f6c6ca2f9d57ce39fa93396817a974.

* disable "deprecate/import" enzyme rule from matrix-eslint that breaks lint

* lint

* correct copyright year

* more lint

* try to stabilise timezone for session tests

* just stub DateTime in test

* test deviceIdFromScope

* tests

* revert config change
2023-08-22 15:37:28 +12:00