Quentin Gliech
3f947025e2
Host a Swagger UI both in the static documentation and by the server
2024-08-01 15:17:14 +02:00
Quentin Gliech
f988aa0d7e
vite: enable preloading and make sure we load the right dev/prod deps
2024-08-01 14:13:22 +02:00
Quentin Gliech
e937ea8fa8
Rework assets loading to fix splitting CSS chunks
2024-07-25 12:59:29 +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
Quentin Gliech
8f96427c47
Make sure the upstream OAuth callback pages are proxied to the backend
2024-02-27 13:01:10 +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
9e2d761e62
frontend: upgrade to Vite 5
2024-02-09 15:57:11 +01:00
Quentin Gliech
b82db7a3de
frontend: use in-memory history in test environments
...
This removes the flakiness of location-based tests
2023-10-23 14:52:27 +02:00
Michael Telatynski
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
Quentin Gliech
dc7dacca19
frontend: remove an unused svgr config option
2023-09-26 14:53:08 +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 Archibald
127bf91b54
Display IP address on sessions
2023-09-21 12:47:45 +02:00
Kerry
7db4303445
fix: revert change to proxy server ( #1824 )
2023-09-20 21:59:26 +00:00
Kerry
680c89acb9
DM: Last active timestamp UI ( #1793 )
2023-09-19 11:48:10 +02:00
Quentin Gliech
7a9a873271
Compoundify the templates
2023-09-01 15:57:13 +02:00
Quentin Gliech
652217ec9b
frontend: work around the CSS split issue
2023-08-08 21:22:27 +02:00
Quentin Gliech
e7e70d8fa8
frontend: disable CSS code splitting
2023-08-08 18:35:32 +02:00
Quentin Gliech
c8ba2a1fa3
frontend: start using CSS modules for components with design tokens
2023-08-08 18:35:32 +02:00
Quentin Gliech
176852066f
Bump frontend dependencies
2023-08-02 15:54:10 +02:00
Quentin Gliech
1a318e104a
Upgrade compound-web and fix form refs
2023-08-02 13:11:33 +02:00
Quentin Gliech
76653f9638
Better frontend assets handling and move the react app to /account/ ( #1324 )
...
This makes the Vite assets handling better, namely:
- make it possible to include any vite assets in the templates
- include the right `<link rel="preload">` tags for assets
- include Subresource Integrity hashes
- pre-compress assets and remove on-the-fly compression by the Rust server
- build the CSS used by templates through Vite
It also moves the React app from /app/ to /account/, and remove some of the old SSR account screens.
2023-07-06 15:30:26 +02:00
Quentin Gliech
f67cc0d6d0
Frontend cleanups
...
Mainly:
- better handling of GraphQL errors
- better logout state
- dependencies update
- a way to end browser sessions in the GraphQL API
2023-06-20 16:53:53 +02:00
Quentin Gliech
ebb87f0a5e
Many frontend fixes & deps bumps
2023-06-20 16:53:53 +02:00
Germain
33da9f05fe
First-pass for Compound styles
2023-06-14 09:24:49 +02:00
Quentin Gliech
aa8d5b6aed
Fix the build and the CompatSsoLoginList query
2023-06-14 09:24:49 +02:00
Quentin Gliech
826e84904e
Setup consistent import order and fix eslint errors
2023-06-14 09:24:49 +02:00
Quentin Gliech
415d06f209
WIP my account page
2023-06-14 09:24:49 +02:00
Quentin Gliech
b26d12f52f
frontend: Migrate to jotai and urql
...
This cuts the bundle size by 50% and makes it easier to reason about state.
It removes the usage of react-router-dom and replaces it with a simple router atom based on jotai-location.
Since the screens will be quite simple, I don't expect that we'll need the advanced caching features of react-relay, hence the switch to urql.
2023-03-20 21:10:04 +01:00
Quentin Gliech
1f56d9b2f7
Fix frontend code coverage generation
2023-03-14 12:07:09 +01:00
Quentin Gliech
960f1b8cec
Bump frontend dependencies
...
Also swap Jest with Vitest, so that we can drop the Babel config.
2023-03-14 12:07:09 +01:00
Quentin Gliech
933022850b
Serve the SPA by the server
2022-11-18 13:43:01 +01:00
Quentin Gliech
7dec625114
Configure Storybook
2022-11-18 13:43:01 +01:00
Quentin Gliech
815afb4535
Bootstrap the frontend
2022-11-18 13:43:01 +01:00