Commit Graph
43 Commits
Author SHA1 Message Date
Quentin Gliech da9bd49be1 Full page render tests 2024-11-15 09:51:16 +01:00
Quentin Gliech f848e912ef Switch to Tanstack Query 2024-11-15 09:51:16 +01:00
Quentin Gliech 26d945d161 Use enums as types in the GraphQL codegen 2024-10-23 17:53:04 +02:00
Quentin Gliech 0b9acfea12 Enable recommended rules and fix all linting issues 2024-10-22 14:55:33 +02:00
Quentin Gliech f3e2f4b80d Reorder imports by running biome check --fix 2024-10-22 14:55:33 +02:00
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 bd359848bf Replace all icons by the ones exported by compound-design-tokens 2024-07-17 09:04:48 +02:00
Quentin Gliech d178a63281 Apply prettier to all files in the frontend 2024-04-03 12:04:18 +02:00
57c5e8601f Update session details styles to closer match latest Figma (#2439)
Co-authored-by: Quentin Gliech <quenting@element.io>
2024-03-08 14:41:41 +00:00
Quentin Gliech 4e682793b1 Share the device card between the frontend and the backend 2024-02-27 17:56:20 +01:00
Quentin Gliech bfc088bdd0 Make the session list way better 2024-02-27 17:56:20 +01:00
Quentin Gliech f5e47edbb9 Remove unused SelectableSession component 2024-02-27 17:56:20 +01:00
Quentin Gliech a8d1f151b8 Make the end session button more flexible 2024-02-27 12:23:46 +01:00
Quentin Gliech 9a6439a7c5 Make sure the dummy router finished loading in the test environment 2024-02-27 11:25:01 +01:00
Quentin GliechandGitHub 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 017ef2fd43 Revamp the confirmation dialog 2024-02-16 15:11:31 +01:00
Quentin GliechandGitHub 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 52f8c83e42 Upgrade compound and fix bad focus rings on inputs 2024-02-08 17:54:10 +01:00
Quentin Gliech d790e18499 Upgrade compound 2024-02-06 15:08:57 +01:00
Quentin Gliech b18095080c Update snapshots post compound-web upgrade 2023-11-14 15:29:33 +01:00
Quentin Gliech f734d9c21f Frontend cleanups
Including:

  - use a readonly field for the email list
  - use the MFA control
  - compound upgrade
  - stopped using deprecated compound exports/components
2023-10-30 15:55:15 +01:00
Quentin Gliech a404398c2c Polish all forms and add nice page headings to most screens 2023-10-30 15:55:15 +01:00
Quentin Gliech 48d06d2f0e frontend: update snapshot after compound upgrade 2023-10-19 17:47:41 +02:00
43648052e2 Wire up i18n for the React frontend (#1962)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-10-19 12:41:38 +00:00
KerryandGitHub f7e12e7301 DM: Device type icon (#1783) 2023-10-06 11:24:04 +02:00
Quentin Gliech 2066c83ec6 frontend: update compound & other dependencies 2023-10-06 10:04:09 +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 ArchibaldandQuentin Gliech 127bf91b54 Display IP address on sessions 2023-09-21 12:47:45 +02:00
Quentin Gliech 1417ec65ee Update extracted Compound CSS & test snapshots 2023-09-20 18:06:06 +02:00
Quentin Gliech f5f56682e4 Display the client logo with a referrerpolicy set to "no-referrer"
Fixes #1768
2023-09-20 18:01:58 +02:00
KerryandQuentin Gliech 894addef1e Documentation: Add storybook stories for Session components (#1806) 2023-09-19 19:53:48 +02:00
KerryandGitHub 680c89acb9 DM: Last active timestamp UI (#1793) 2023-09-19 11:48:10 +02:00
Kerry ArchibaldandQuentin Gliech dd7237113e add selectable session wrapper 2023-09-14 17:04:09 +02:00
e19002a0ca Confirm destructive actions (#1759)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-09-14 12:35:09 +00:00
Quentin Gliech 627ea2c421 frontend: upgrade compound & use the Badge component to mark the current session 2023-09-08 11:51:01 +02:00
Kerry ArchibaldandQuentin Gliech 5e76adb325 test clientavatar 2023-09-08 10:41:26 +02:00
Kerry ArchibaldandQuentin Gliech 0d726cd7cb add client logo to session tile and detail 2023-09-08 10:41:26 +02:00
Kerry ArchibaldandQuentin Gliech e84049c815 add spinners to session end buttons 2023-09-07 10:13:51 +02:00
KerryandGitHub 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
KerryandGitHub 0c267c0d9d Add more information to session detail page (#1659)
* rename `session` route to `browser-sessions`

* add session detail route

* stubbed route with userid

* get session and display as session tile on session detail page

* improve error message

* useMemo instead of ref

* oauth session detail page

* compat session detail

* link to session detail from compat and oauth sessions
2023-08-31 21:59:41 +00:00
Quentin Gliech 6d0daff7dd frontend: update test snapshots 2023-08-23 20:09:55 +02:00
KerryandGitHub 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