Commit Graph

16 Commits

Author SHA1 Message Date
Quentin Gliech ed4b6c42a7 Remove (C) 2024-09-10 14:28:55 +02:00
Quentin Gliech f6bb100c0a License headers change 2024-09-05 13:25:42 +02:00
Quentin Gliech cb8bfa466b frontend: move getNinetyDaysAgo to a shared utility 2024-08-01 14:13:22 +02:00
Olivier 'reivilibre df2271630a frontend: add password complexity bar to change password form 2024-07-16 17:30:28 +01:00
Olivier 'reivilibre 6db71fd48e Add JSON dictionaries with words from zxcvbn-rs but for use with zxcvbn-ts 2024-07-16 17:30:28 +01:00
Quentin Gliech f3cbd3b315 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 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 0591fbfb2b Replace all GraphQL mutations with urql 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
Kerry f7e12e7301 DM: Device type icon (#1783) 2023-10-06 11:24:04 +02: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 34a9af624f add util hook for unwrapping current browser session id 2023-09-13 01:41:31 +02:00
Quentin Gliech eaf5c83528 frontend: update unit tests post ua-parser-js upgrade 2023-09-12 15:58:56 +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
Kerry a068e496f0 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