Commit Graph

506 Commits

Author SHA1 Message Date
dependabot[bot]
ed0fc3efb3 build(deps): bump the urql group in /frontend with 3 updates
Bumps the urql group in /frontend with 3 updates: [@urql/core](https://github.com/urql-graphql/urql/tree/HEAD/packages/core), [@urql/exchange-graphcache](https://github.com/urql-graphql/urql/tree/HEAD/exchanges/graphcache) and [@urql/exchange-request-policy](https://github.com/urql-graphql/urql/tree/HEAD/exchanges/request-policy).


Updates `@urql/core` from 4.2.3 to 4.3.0
- [Release notes](https://github.com/urql-graphql/urql/releases)
- [Changelog](https://github.com/urql-graphql/urql/blob/main/packages/core/CHANGELOG.md)
- [Commits](https://github.com/urql-graphql/urql/commits/@urql/core@4.3.0/packages/core)

Updates `@urql/exchange-graphcache` from 6.4.1 to 6.5.0
- [Release notes](https://github.com/urql-graphql/urql/releases)
- [Changelog](https://github.com/urql-graphql/urql/blob/main/exchanges/graphcache/CHANGELOG.md)
- [Commits](https://github.com/urql-graphql/urql/commits/@urql/exchange-graphcache@6.5.0/exchanges/graphcache)

Updates `@urql/exchange-request-policy` from 1.0.2 to 1.1.0
- [Release notes](https://github.com/urql-graphql/urql/releases)
- [Changelog](https://github.com/urql-graphql/urql/blob/main/exchanges/request-policy/CHANGELOG.md)
- [Commits](https://github.com/urql-graphql/urql/commits/@urql/exchange-request-policy@1.1.0/exchanges/request-policy)

---
updated-dependencies:
- dependency-name: "@urql/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: urql
- dependency-name: "@urql/exchange-graphcache"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: urql
- dependency-name: "@urql/exchange-request-policy"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: urql
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 07:29:51 +01:00
dependabot[bot]
fc3ec7a412 build(deps-dev): bump the types group in /frontend with 3 updates
Bumps the types group in /frontend with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom).


Updates `@types/node` from 20.11.24 to 20.11.28
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/react` from 18.2.61 to 18.2.67
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 18.2.19 to 18.2.22
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
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
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: types
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 07:29:24 +01:00
dependabot[bot]
4b11872469 build(deps): bump the i18next group in /frontend with 2 updates
Bumps the i18next group in /frontend with 2 updates: [i18next](https://github.com/i18next/i18next) and [react-i18next](https://github.com/i18next/react-i18next).


Updates `i18next` from 23.10.0 to 23.10.1
- [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.10.0...v23.10.1)

Updates `react-i18next` from 14.0.5 to 14.1.0
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/react-i18next/compare/v14.0.5...v14.1.0)

---
updated-dependencies:
- dependency-name: i18next
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: i18next
- dependency-name: react-i18next
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: i18next
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 07:29:10 +01:00
Quentin Gliech
90f4f98415 frontend: upgrade @tanstack/react-router 2024-03-18 18:42:47 +01:00
Michael Telatynski
0613519dfc 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
ff31ec9db1 Update snapshots 2024-03-18 17:18:58 +01:00
Michael Telatynski
9fe69b7ae5 Add scopes to compat session detail view 2024-03-18 17:18:58 +01:00
dependabot[bot]
dbc651fa70 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]
ae2f1224bb 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
2ae7a5b8ef 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]
d1f566e697 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]
884f666c86 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
9b87147d8f 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
9f58e60e95 Share the device card between the frontend and the backend 2024-02-27 17:56:20 +01:00
Quentin Gliech
63c84417f0 Make the session list way better 2024-02-27 17:56:20 +01:00
Quentin Gliech
fa385b037c Remove unused SelectableSession component 2024-02-27 17:56:20 +01:00
dependabot[bot]
6b5ac25f17 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]
64fd44e281 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]
2576a40366 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]
3482cc3cf2 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]
9c1b6c7ccd 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]
d827e182f2 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]
316f0a0efd 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
e3964ae72b Implement the user profile edit modal 2024-02-27 13:46:36 +01:00
Quentin Gliech
d1d3243a3f Make sure the upstream OAuth callback pages are proxied to the backend 2024-02-27 13:01:10 +01:00
Quentin Gliech
4b24ba6517 Fix the dark high-constrast theme in Storybook 2024-02-27 12:58:30 +01:00
Quentin Gliech
f7816ee19c 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
bd4683dfe1 Make the end session button more flexible 2024-02-27 12:23:46 +01:00
Quentin Gliech
334c015460 Make sure the dummy router finished loading in the test environment 2024-02-27 11:25:01 +01:00
Quentin Gliech
a7dc41fdba 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
eb37324f51 Make all compound themes and all locales available in Storybook 2024-02-21 17:52:03 +01:00
Quentin Gliech
980403909a Bump all frontend dependencies 2024-02-21 17:13:11 +01:00
Quentin Gliech
d3c799b3ae 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
6cccb1c127 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
d33d721287 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
6aeca9b463 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
46c02ab1e2 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
b046f7c6eb 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
ba97032ca7 Translations updates 2024-02-17 11:22:41 +01:00
Quentin Gliech
576d8bb791 Move the cross signing reset UI in its own page 2024-02-17 09:48:53 +01:00
Quentin Gliech
58e9e31f2c 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
60d4223038 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
98fe43210e Upgrade compound-web to remove React warning 2024-02-17 09:48:53 +01:00
Quentin Gliech
5a5630788f Add a TooltipProvider in the storybook preview 2024-02-16 15:11:31 +01:00
Quentin Gliech
2b9041e140 Revamp the confirmation dialog 2024-02-16 15:11:31 +01:00
Quentin Gliech
3b4285067f Update the email list to match the new design 2024-02-16 15:11:31 +01:00
Quentin Gliech
76cdec56f0 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
b371516bda 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
630a73680e Replace remaining atomWithQuery with urql except paginated lists 2024-02-15 14:17:20 +01:00
Quentin Gliech
888e94bfd8 Replace all GraphQL mutations with urql 2024-02-15 14:17:20 +01:00