Quentin Gliech
74582441e2
frontend: upgrade @tanstack/react-router
2024-03-18 18:42:47 +01:00
Michael Telatynski
894602bca1
Render browser icon for compat & browser sessions ( #2478 )
...
* Render browser icon for compat & browser sessions
* Use PNGs
* Add support for png resources
2024-03-18 18:41:40 +01:00
Michael Telatynski
f543a8bd40
Update snapshots
2024-03-18 17:18:58 +01:00
Michael Telatynski
54f0b2c5be
Add scopes to compat session detail view
2024-03-18 17:18:58 +01:00
dependabot[bot]
f1102a2b7a
build(deps-dev): bump autoprefixer from 10.4.17 to 10.4.18 in /frontend
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.4.17 to 10.4.18.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.17...10.4.18 )
---
updated-dependencies:
- dependency-name: autoprefixer
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-18 13:58:31 +01:00
dependabot[bot]
f3c554d199
build(deps-dev): bump the vite group in /frontend with 1 update
...
Bumps the vite group in /frontend with 1 update: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ).
Updates `vite` from 5.1.4 to 5.1.6
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.1.6/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: vite
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-18 12:13:17 +01:00
Michael Telatynski
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
dependabot[bot]
7200f945e8
build(deps-dev): bump the types group in /frontend with 2 updates
...
Bumps the types group in /frontend with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ).
Updates `@types/node` from 20.11.20 to 20.11.24
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@types/react` from 18.2.60 to 18.2.61
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: types
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: types
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 15:51:57 +01:00
dependabot[bot]
2ec4754bd8
build(deps): bump @vector-im/compound-design-tokens in /frontend
...
Bumps [@vector-im/compound-design-tokens](https://github.com/vector-im/compound-design-tokens ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/vector-im/compound-design-tokens/releases )
- [Changelog](https://github.com/element-hq/compound-design-tokens/blob/main/docs/release.md )
- [Commits](https://github.com/vector-im/compound-design-tokens/compare/v1.1.1...v1.2.0 )
---
updated-dependencies:
- dependency-name: "@vector-im/compound-design-tokens"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-01 15:51:49 +01:00
Quentin Gliech
452f4c17f5
graphql: check that the username is available when creating them
...
This calls the HS to make sure the username isn't reserved.
This check can be bypassed using the `skipHomeserverCheck` flag on the
`addUser` mutation.
2024-02-29 11:21:24 +01: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
dependabot[bot]
65f164d56d
build(deps-dev): bump postcss-nesting from 12.0.3 to 12.0.4 in /frontend
...
Bumps [postcss-nesting](https://github.com/csstools/postcss-plugins/tree/HEAD/plugins/postcss-nesting ) from 12.0.3 to 12.0.4.
- [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-nesting/CHANGELOG.md )
- [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugins/postcss-nesting )
---
updated-dependencies:
- dependency-name: postcss-nesting
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 14:49:23 +01:00
dependabot[bot]
f099e507ec
build(deps-dev): bump the types group in /frontend with 1 update
...
Bumps the types group in /frontend with 1 update: [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ).
Updates `@types/react` from 18.2.59 to 18.2.60
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: types
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 14:45:27 +01:00
dependabot[bot]
0d4285e583
build(deps): bump the i18next group in /frontend with 3 updates
...
Bumps the i18next group in /frontend with 3 updates: [i18next](https://github.com/i18next/i18next ), [i18next-http-backend](https://github.com/i18next/i18next-http-backend ) and [i18next-parser](https://github.com/i18next/i18next-parser ).
Updates `i18next` from 23.9.0 to 23.10.0
- [Release notes](https://github.com/i18next/i18next/releases )
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md )
- [Commits](https://github.com/i18next/i18next/compare/v23.9.0...v23.10.0 )
Updates `i18next-http-backend` from 2.4.3 to 2.5.0
- [Changelog](https://github.com/i18next/i18next-http-backend/blob/master/CHANGELOG.md )
- [Commits](https://github.com/i18next/i18next-http-backend/compare/v2.4.3...v2.5.0 )
Updates `i18next-parser` from 8.12.0 to 8.13.0
- [Release notes](https://github.com/i18next/i18next-parser/releases )
- [Changelog](https://github.com/i18next/i18next-parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/i18next/i18next-parser/compare/8.12.0...8.13.0 )
---
updated-dependencies:
- dependency-name: i18next
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: i18next
- dependency-name: i18next-http-backend
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: i18next
- dependency-name: i18next-parser
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: i18next
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 14:07:19 +01:00
dependabot[bot]
4645c4a969
build(deps-dev): bump the types group in /frontend with 2 updates
...
Bumps the types group in /frontend with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ).
Updates `@types/node` from 20.11.19 to 20.11.20
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@types/react` from 18.2.57 to 18.2.59
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/node"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: types
- dependency-name: "@types/react"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: types
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 13:58:59 +01:00
dependabot[bot]
f117261750
build(deps-dev): bump the graphql-codegen group
...
Bumps the graphql-codegen group in /frontend with 1 update: [@graphql-codegen/client-preset](https://github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/presets/client ).
Updates `@graphql-codegen/client-preset` from 4.2.3 to 4.2.4
- [Release notes](https://github.com/dotansimha/graphql-code-generator/releases )
- [Changelog](https://github.com/dotansimha/graphql-code-generator/blob/master/packages/presets/client/CHANGELOG.md )
- [Commits](https://github.com/dotansimha/graphql-code-generator/commits/@graphql-codegen/client-preset@4.2.4/packages/presets/client )
---
updated-dependencies:
- dependency-name: "@graphql-codegen/client-preset"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: graphql-codegen
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 13:58:49 +01:00
dependabot[bot]
d9b16a517d
build(deps-dev): bump the eslint group in /frontend with 1 update
...
Bumps the eslint group in /frontend with 1 update: [eslint](https://github.com/eslint/eslint ).
Updates `eslint` from 8.56.0 to 8.57.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: eslint
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 13:57:35 +01:00
dependabot[bot]
96154d986d
build(deps-dev): bump happy-dom from 13.3.8 to 13.6.2 in /frontend
...
Bumps [happy-dom](https://github.com/capricorn86/happy-dom ) from 13.3.8 to 13.6.2.
- [Release notes](https://github.com/capricorn86/happy-dom/releases )
- [Commits](https://github.com/capricorn86/happy-dom/compare/v13.3.8...v13.6.2 )
---
updated-dependencies:
- dependency-name: happy-dom
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-27 13:57:14 +01:00
Quentin Gliech
879a44ed99
Implement the user profile edit modal
2024-02-27 13:46:36 +01: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
0b0faf127f
Fix the dark high-constrast theme in Storybook
2024-02-27 12:58:30 +01:00
Quentin Gliech
696dd2d910
Fix dialogs being blurry and not scrollable
...
This positions dialogs with a flexbox layout, which avoids the weird
bluriness due to `transform: translate` and allows the dialog to be
scrollable.
It also adds a story which has a long content to test the scrollability.
2024-02-27 12:37:55 +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 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
7de4be219b
Make all compound themes and all locales available in Storybook
2024-02-21 17:52:03 +01:00
Quentin Gliech
900e556bc3
Bump all frontend dependencies
2024-02-21 17:13:11 +01:00
Quentin Gliech
ed5893eb20
Save which user session created a compat session
...
This also exposes the user session in the GraphQL API, and allow
filtering on browser session ID on the app session list.
2024-02-21 11:55:58 +01:00
Quentin Gliech
e76945372a
Make sure we load current session data in route loaders
...
This means we should almost never see a loading spinner when navigating
2024-02-20 12:08:50 +01:00
Quentin Gliech
800c594276
Set the session pagination to use query parameters
...
Also reverses the order of the sessions to show the most recent ones first.
Fixes #1497
2024-02-20 12:08:50 +01:00
Quentin Gliech
edfcea0419
Make the layout wider on "account" pages
...
This also fixes a bug where a double "layout" was applied to the not
found pages.
It also sets the layout min height to use 100svh instead of 100vh, so
that it doesn't unecessarily scroll on iOS.
2024-02-19 17:56:06 +01:00
Quentin Gliech
1c000a1fed
Make sure the locale fallback works as expected
...
- Also makes sure that the fallback runs in the backend and is then
picked up by the frontend
- and explicitely fallback zh-CN to zh-Hans
2024-02-19 11:43:36 +01:00
Quentin Gliech
d88bf1faa5
Fix the zh-Hans translation
...
This had the wrong code in localazy, and I think the Localazy download
action doesn't remove old files, so I did that manually.
2024-02-19 09:56:25 +01:00
sandhose
008bae3d02
Translations updates
2024-02-17 11:22:41 +01:00
Quentin Gliech
aefcc3cae2
Move the cross signing reset UI in its own page
2024-02-17 09:48:53 +01:00
Quentin Gliech
0d4b941b43
Make sure all the loader use the abort signal
...
This makes sure that the loader stops loading when navigating away
2024-02-17 09:48:53 +01:00
Quentin Gliech
f10a1c7830
Make sure the error boundary & loading spinner don't suspend
...
This is done by making it possible to render the GenericError, Layout
and Footer with a `dontSuspend` prop. This then sets the `useSuspense`
to `false` in translations, and sets a default translations in case they
haven't been loaded yet.
2024-02-17 09:48:53 +01:00
Quentin Gliech
ebcd6222fd
Upgrade compound-web to remove React warning
2024-02-17 09:48:53 +01:00
Quentin Gliech
b7030f1ac7
Add a TooltipProvider in the storybook preview
2024-02-16 15:11:31 +01:00
Quentin Gliech
017ef2fd43
Revamp the confirmation dialog
2024-02-16 15:11:31 +01:00
Quentin Gliech
dd6f1cbc9b
Update the email list to match the new design
2024-02-16 15:11:31 +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
3f90839744
Replace remaining atomWithQuery with urql except paginated lists
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
Quentin Gliech
9e2d761e62
frontend: upgrade to Vite 5
2024-02-09 15:57:11 +01:00
Quentin Gliech
52f8c83e42
Upgrade compound and fix bad focus rings on inputs
2024-02-08 17:54:10 +01:00