Commit Graph

168 Commits

Author SHA1 Message Date
Kerry
4329c00087 Generic session list header component (#1832)
* add session list header component

* remove unused

* copyright year
2023-09-26 20:18:55 +00:00
Quentin Gliech
03ef447120 Update the svgr imports 2023-09-26 14:51:23 +02:00
Kerry
17ee646463 fix: OAuth2Session detail finished at wrong metadata (#1833) 2023-09-21 23:06:45 +00:00
Quentin Gliech
fae6e34342 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
a8c7c2e072 Display IP address on sessions 2023-09-21 12:47:45 +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
e2d98877c4 remove compat session and oauth2 session list components and routes 2023-09-21 09:48:03 +02:00
Kerry Archibald
d7866ecf6e remove debug 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
daaac782a5 update snapshots for compound 2023-09-21 09:48:03 +02:00
Kerry Archibald
10651ae8e5 fetch from app sessions api 2023-09-21 09:48:03 +02:00
Kerry Archibald
e4ede0b563 pass back buttn route to session header, go back to browser list from browser sessions 2023-09-21 09:13:52 +02:00
Quentin Gliech
bec2cda552 Expose a unified session list in the GraphQL API 2023-09-20 20:27:08 +02:00
Quentin Gliech
0e024add0e Update extracted Compound CSS & test snapshots 2023-09-20 18:06:06 +02:00
Quentin Gliech
02dcb7b2d2 Display the client logo with a referrerpolicy set to "no-referrer"
Fixes #1768
2023-09-20 18:01:58 +02:00
Quentin Gliech
8e73092ad0 Make the last activity timestamp and IP available through the API 2023-09-19 21:57:54 +02:00
Quentin Gliech
1127e7ec8b frontend: Post-merge fix 2023-09-19 20:00:51 +02:00
Kerry
68df11c780 Documentation: Add storybook stories for Session components (#1806) 2023-09-19 19:53:48 +02:00
Kerry
6885c82183 DM: Last active timestamp UI (#1793) 2023-09-19 11:48:10 +02:00
Quentin Gliech
4511108b51 frontend: upgrade compound & simplify the confirmation modal implementation 2023-09-19 10:50:55 +02:00
Quentin Gliech
535a7af774 frontend: Hide the navigation in the email verification page 2023-09-19 10:50:30 +02:00
Kerry Archibald
2227459f52 bust cache after verifying email 2023-09-18 19:50:36 +02:00
Kerry Archibald
8738714e2a clear dismissal when unverified emails count changes 2023-09-18 19:50:36 +02:00
Kerry Archibald
d2b5fe6e4c fix tiny dismiss button 2023-09-18 19:50:36 +02:00
Quentin Gliech
d36f9d3a5a frontend: have better margins everywhere 2023-09-15 18:41:39 +02:00
Kerry Archibald
4d0fefed99 update block styling to work better in selectable session 2023-09-14 17:04:09 +02:00
Kerry Archibald
4bcf5f6f78 add selectable session wrapper 2023-09-14 17:04:09 +02:00
Kerry
ec762efdc6 DM: Simplify session components API (#1745)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-09-14 12:41:30 +00:00
Kerry
9b7572b103 Confirm destructive actions (#1759)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-09-14 12:35:09 +00:00
Quentin Gliech
735b796198 Make the session back button use the <IconButton /> compound component 2023-09-14 11:34:15 +02:00
Quentin Gliech
bb8b2bd14f Extract the navigation link to a useNavigationLink hook 2023-09-14 11:34:15 +02:00
Kerry Archibald
93326222ac back to sessions button on session details 2023-09-14 11:34:15 +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
51581ea27e Profile: hide email pagination controls when no other pages (#1764)
* make add email button small

* hide pagination when only one page of emails

* add autohide to paginationcontrols
2023-09-13 22:07:47 +00:00
Kerry Archibald
68ad5f0fa2 UserName: switch to controlled input, disable save button when no changes 2023-09-13 18:22:07 +02:00
Kerry Archibald
4156adfc66 tweak naming 2023-09-13 01:41:31 +02:00
Kerry Archibald
009ea8495c browser session detail page 2023-09-13 01:41:31 +02:00
Kerry Archibald
d4fe0e6d65 fix bug in compatsessiondetail createdAt -> finishedAt 2023-09-13 01:41:31 +02:00
Kerry Archibald
09860eb26c add util hook for unwrapping current browser session id 2023-09-13 01:41:31 +02:00
Kerry Archibald
e693759a39 reinstate link to browser session detail 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 Archibald
677cfc9089 mock datetime properly 2023-09-12 15:25:55 +02:00
Kerry Archibald
61c6f5b335 test sessiondetail components 2023-09-12 15:25:55 +02:00
Kerry Archibald
01672ef64d test compatsessiondetail 2023-09-12 15:25:55 +02:00
Kerry Archibald
7ede6e95b9 tweak header style to match design 2023-09-12 15:25:07 +02:00
Kerry Archibald
9f5d5d34b4 add padding to container bottom 2023-09-12 15:25:07 +02:00
Quentin Gliech
e8f17924c2 Add a GraphQL mutation to create arbitrary OAuth2 sessions. 2023-09-11 12:03:42 +02:00