Commit Graph

1274 Commits

Author SHA1 Message Date
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
dependabot[bot] 4ec134a996 build(deps): bump rustls from 0.21.1 to 0.21.2
Bumps [rustls](https://github.com/rustls/rustls) from 0.21.1 to 0.21.2.
- [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.21.1...v/0.21.2)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 10:37:58 +02:00
dependabot[bot] e052739610 build(deps): bump actions/upload-pages-artifact from 1.0.8 to 1.0.9
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v1.0.8...v1.0.9)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 10:37:24 +02:00
dependabot[bot] 15c3221517 build(deps-dev): bump eslint-plugin-matrix-org in /frontend
Bumps [eslint-plugin-matrix-org](https://github.com/matrix-org/eslint-config-matrix-org) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/matrix-org/eslint-config-matrix-org/releases)
- [Commits](https://github.com/matrix-org/eslint-config-matrix-org/compare/v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-matrix-org
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 10:36:51 +02:00
Quentin Gliech 4181cbc9d5 Refactor the matrix connection logic
Also make the display name available through the graphql api
2023-06-16 19:52:39 +02:00
Quentin Gliech 2a514cf452 Add a admin flag to the compatibility session
Also adds a CLI tool to issue a compatibility token.
2023-06-16 15:24:38 +02:00
Quentin Gliech 08d9b0b886 Update the JSON schema 2023-06-14 12:53:48 +02:00
Will Hunt d285e5ac97 Fix homeserver config docs 2023-06-14 12:53:48 +02:00
dependabot[bot] 18a74f6e7e build(deps): bump open-policy-agent/setup-opa from 2.0.1 to 2.1.0
Bumps [open-policy-agent/setup-opa](https://github.com/open-policy-agent/setup-opa) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/open-policy-agent/setup-opa/releases)
- [Commits](https://github.com/open-policy-agent/setup-opa/compare/v2.0.1...v2.1.0)

---
updated-dependencies:
- dependency-name: open-policy-agent/setup-opa
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 12:40:08 +02:00
dependabot[bot] d9bc7acfca build(deps): bump actions/deploy-pages from 2.0.1 to 2.0.2
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v2.0.1...v2.0.2)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 12:04:13 +02:00
Quentin Gliech 7e90564d16 Bump Rust dependencies 2023-06-14 12:02:16 +02:00
Quentin Gliech 3672d2dbde Adopt eslint-config-matrix-org & bump deps 2023-06-14 09:24:49 +02:00
Germain b493f62251 Use Alert component for not logged in message 2023-06-14 09:24:49 +02:00
Germain 33da9f05fe First-pass for Compound styles 2023-06-14 09:24:49 +02:00
Quentin Gliech dfdfc25d00 Bump frontend dependencies
Also properly exclude generated files from eslint
2023-06-14 09:24:49 +02:00
Quentin Gliech b56c2350a4 Buttons to end compat and OAuth2 sessions 2023-06-14 09:24:49 +02:00
Quentin Gliech 119e3300de Schema update 2023-06-14 09:24:49 +02:00
Quentin Gliech 63d4bfd0d4 Ability to set the primary email and cleanup the email lists 2023-06-14 09:24:49 +02:00
Quentin Gliech 741873b84e Ability to remove emails 2023-06-14 09:24:49 +02:00
Quentin Gliech e8b7591d7e Nicer email management UI 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 3d6eba6acc Use the same pagination primitives in the session lists 2023-06-14 09:24:49 +02:00
Quentin Gliech d7403ca0fd WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech 3c933a9d29 WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech 574514638e WIP my account page 2023-06-14 09:24:49 +02:00
Quentin Gliech f62d045b8c WIP my account page 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 d5bdf2ab15 ci: pin actions versions 2023-06-13 19:08:48 +02:00
Quentin Gliech 34fe7fc450 ci: Make it set the docker context again 2023-06-13 19:08:48 +02:00
Quentin Gliech 56bbc31a89 Fix the compat SSO redirect URL generation 2023-06-07 15:09:04 +02:00
dependabot[bot] 3111646ba5 build(deps): bump sigstore/cosign-installer from 3.0.2 to 3.0.5
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.0.2 to 3.0.5.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.0.2...v3.0.5)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 16:14:55 +02:00
Quentin Gliech 91e134f6b4 Bump Rust dependencies 2023-05-26 16:11:17 +02:00
dependabot[bot] 9571614a56 build(deps): bump async-graphql from 5.0.8 to 5.0.9
Bumps [async-graphql](https://github.com/async-graphql/async-graphql) from 5.0.8 to 5.0.9.
- [Release notes](https://github.com/async-graphql/async-graphql/releases)
- [Changelog](https://github.com/async-graphql/async-graphql/blob/master/CHANGELOG.md)
- [Commits](https://github.com/async-graphql/async-graphql/commits)

---
updated-dependencies:
- dependency-name: async-graphql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 09:52:19 +02:00
dependabot[bot] 3b0c2e8eb5 build(deps): bump figment from 0.10.8 to 0.10.9
Bumps [figment](https://github.com/SergioBenitez/Figment) from 0.10.8 to 0.10.9.
- [Commits](https://github.com/SergioBenitez/Figment/compare/v0.10.8...v0.10.9)

---
updated-dependencies:
- dependency-name: figment
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-26 09:52:12 +02:00
Quentin Gliech 64b3ed8ee0 Remove explicit generics from tasks layers
This defines an IdentityLayer<R> which is used to bind the request type
on the service, which helps with type inference.
2023-05-25 18:57:47 +02:00
Quentin Gliech 1993f4cfca Bump Rust dependencies 2023-05-25 18:15:44 +02:00
Quentin Gliech d2d68e9a27 Make password-based login optional 2023-05-23 17:02:02 +02:00
Kévin Commaille 25f045130e Downgrade tracing to 0.1.37
Version 0.1.38 and no new version was released

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-05-11 11:10:22 +02:00
Doug 7aae66e182 Make ClientErrorCode.error_description optional. 2023-05-09 19:10:19 +02:00
dependabot[bot] fb06c69a8b build(deps): bump tokio from 1.27.0 to 1.28.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.27.0...tokio-1.28.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 08:33:25 +02:00
dependabot[bot] 343a21e3bc build(deps): bump tracing from 0.1.37 to 0.1.38
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.37 to 0.1.38.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.38)

---
updated-dependencies:
- dependency-name: tracing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 08:09:57 +02:00
dependabot[bot] ac541f4dce build(deps): bump der from 0.7.4 to 0.7.5
Bumps [der](https://github.com/RustCrypto/formats) from 0.7.4 to 0.7.5.
- [Release notes](https://github.com/RustCrypto/formats/releases)
- [Commits](https://github.com/RustCrypto/formats/compare/der/v0.7.4...der/v0.7.5)

---
updated-dependencies:
- dependency-name: der
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 17:58:14 +02:00
dependabot[bot] ddb7dc7409 build(deps): bump axum from 0.6.16 to 0.6.17
Bumps [axum](https://github.com/tokio-rs/axum) from 0.6.16 to 0.6.17.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.16...axum-v0.6.17)

---
updated-dependencies:
- dependency-name: axum
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-25 17:58:04 +02:00
Quentin Gliech ed5c367df6 Have better output types on mutations 2023-04-25 16:39:15 +02:00
Quentin Gliech 3b0f2ea1b0 Have a new viewer and viewerSession graphql query member
This deprecates `currentUser` and `currentBrowserSession`, but doesn't remove them (yet).

Also start to split the root query in multiple objects
2023-04-25 16:39:15 +02:00
Quentin Gliech 047a91907d Split the mutations and make them use an input object instead of different parameters 2023-04-25 16:39:15 +02:00
Quentin Gliech c2d8243586 Have a Requester in the GraphQL API, in preparation for accessing it with OAuth credentials 2023-04-25 16:39:15 +02:00
Quentin Gliech be765fe04f Setup GraphQL mutations to add and verify email addresses
This refactors a bit how the connection to the repository is done in the
graphql handler, so that we can properly commit transactions.
2023-04-25 16:39:15 +02:00