Commit Graph
1904 Commits
Author SHA1 Message Date
Quentin Gliech e23b3067b7 Migrate to Tailwind v4 (#5702) 2026-05-26 17:09:55 +02:00
Quentin Gliech 8e65bf198e frontend: migrate to Tailwind 4
Tailwind 4 ships its own Vite plugin and no longer needs PostCSS plumbing.
Drop postcss/autoprefixer/postcss-import/postcss-nesting and the .postcssrc.json,
wire @tailwindcss/vite into vite.config.ts, replace the @tailwind directives
with @import "tailwindcss", and convert the JS tailwind.config.cjs theme
into a CSS @theme block in shared.css. An @source directive points back at
the SSR templates so the Jinja-rendered HTML in templates/ still gets scanned
for utility classes.

The third-party CSS (compound design tokens, compound-web, fontsource) moves
into a new vendor.css entrypoint, loaded ahead of shared.css from main.tsx,
storybook, and base.html. Tailwind v4's @import bundler silently drops the
nested `@import url(...) layer(cpd-base) screen` statements inside the
compound-design-tokens.css barrel, so we have to keep those imports out of
any file that contains Tailwind directives and let Vite's normal CSS pipeline
resolve them instead.
2026-05-25 16:31:36 +02:00
Quentin Gliech e03c953945 Adjust the button sizes to the new t-shirt size. 2026-05-25 16:28:42 +02:00
Quentin Gliech 6f626ca0d3 Update Compound to the latest version 2026-05-25 16:28:42 +02:00
Quentin Gliech 99395c9e64 Make sure the footer is loaded before rendering the page 2026-05-25 12:46:00 +02:00
Quentin Gliech 41e8929ba5 Stop using the unsupported 'createFileRoute' typescript magic
Support for this ware removed from TanStack Router, so we need to explicitly set a route name when calling 'createFileRoute'.
2026-05-25 12:37:01 +02:00
Quentin Gliech 4bc2bc0e77 Update use of generated GraphQL types 2026-05-25 12:37:01 +02:00
Quentin Gliech ef6ecbbea0 Regenerate GraphQL types 2026-05-25 12:37:01 +02:00
Quentin Gliech 0cb2ea49be Update the typescript config for TypeScript 6 2026-05-25 12:37:01 +02:00
Quentin Gliech f339a10485 Run formatter 2026-05-25 12:37:01 +02:00
Quentin Gliech 9ae07db85a Bump all frontend dependencies 2026-05-25 12:36:56 +02:00
Quentin Gliech c7654248ab Inline the browser icons
They are very small and don't need an extra request to load. This is useful as
well for making the snapshots not dependant on where the project is installed
2026-05-25 11:16:55 +02:00
Quentin Gliech f78917ecbf Merge branch 'main' into quenting/pnpm 2026-05-25 11:12:18 +02:00
Eric Eastwood d4e33f5121 Fix lints 2026-05-20 15:48:56 -05:00
Eric Eastwood c16eebdc6a Fix potentially typo 2026-05-20 15:47:58 -05:00
Eric Eastwood 1c648edb87 Use safer num_sessions_filtered_header pluralization
See https://github.com/element-hq/matrix-authentication-service/pull/5644#discussion_r3227855225
2026-05-20 15:47:09 -05:00
Eric Eastwood 62b2bf9a78 Add note on doing better than data-testid 2026-05-20 15:43:27 -05:00
Eric Eastwood e65237b8f9 Merge branch 'main' into madlittlemods/soft-limit-account-session-management 2026-05-20 15:06:24 -05:00
matrixbot 4e99e36f87 Automatic merge back to main (#5690) 2026-05-19 16:30:37 +02:00
github-actions[bot] eb58397b05 Translations updates 2026-05-19 13:46:32 +00:00
Eric Eastwood addab2fde7 one/other translation boilerplate duplication 2026-05-12 15:10:26 -05:00
Eric Eastwood 8861cdbf70 Fix lints 2026-05-12 15:08:24 -05:00
Eric Eastwood 4a9cd47e87 Add NavItemErrorIcon
See https://github.com/element-hq/matrix-authentication-service/pull/5644#discussion_r3227879875
2026-05-12 15:04:40 -05:00
Eric Eastwood 551e2f1dd9 plural hit_session_limit_warning_description/approaching_session_limit_warning_description 2026-05-12 14:47:30 -05:00
Eric Eastwood e19b2f42e9 plural session_limit_info 2026-05-12 14:26:45 -05:00
Eric Eastwood fa6f90f672 plural num_sessions_filtered_header 2026-05-12 13:52:29 -05:00
Eric Eastwood 92f76bcc1f plural num_sessions_header 2026-05-12 13:32:15 -05:00
Eric Eastwood 3a409c40a1 Fix lints 2026-05-12 12:19:57 -05:00
Eric Eastwood 698ffd7864 Fix fragment masking ($fragmentRefs) problems in tests
See https://github.com/element-hq/matrix-authentication-service/pull/5644#discussion_r3134443493
2026-05-12 12:11:10 -05:00
Eric Eastwood df949630a1 Merge branch 'main' into madlittlemods/soft-limit-account-session-management 2026-05-12 11:45:08 -05:00
Quentin Gliech c349228505 Migrate from npm to pnpm workspace
Sets up a pnpm workspace at the repo root with the single existing
frontend/ package, pinned via packageManager to pnpm@11.1.0. The new
pnpm-workspace.yaml enables three pnpm 11 defaults explicitly so they
can't silently be relaxed:

 - trustPolicy: no-downgrade (override via trustPolicyExclude)
 - strictDepBuilds: true (override via allowBuilds)
 - strictPeerDependencies: true (override via peerDependencyRules.allowedVersions)

allowBuilds permits the @swc/core, esbuild and msw postinstalls (native
binaries / service worker setup) and explicitly denies @scarf/scarf
telemetry. trustPolicyExclude lists semver@6.3.1, which a transitive of
@babel/core publishes without provenance even though earlier versions
had it.

The lockfile is imported from the previous package-lock.json, so locked
versions stay identical to npm — no dependency upgrades sneak in here.
@graphql-typed-document-node/core is added as an explicit devDependency
because @graphql-codegen/client-preset's generated code imports it
directly and pnpm doesn't hoist transitive deps.

The frontend/.npmrc engine-strict=true setting moves to pnpm-workspace.yaml
as engineStrict: true.
2026-05-12 12:13:46 +02:00
Quentin Gliech 2a58ca9cda build(deps-dev): bump postcss from 8.5.8 to 8.5.12 in /frontend (#5658) 2026-05-07 15:21:33 +02:00
github-actions[bot] e4075021ea Translations updates 2026-05-07 12:14:30 +00:00
Eric Eastwood 6d3082e9dc Automatic updates 2026-05-06 09:53:02 -05:00
Eric Eastwood 51ec638b83 Design review: Use info styles for approaching limit warning 2026-05-06 09:48:32 -05:00
Eric Eastwood 336b80173e Merge branch 'main' into madlittlemods/soft-limit-account-session-management 2026-05-05 14:53:20 -05:00
Eric Eastwood 4bf93cb160 Merge branch 'main' into madlittlemods/better-consent-when-idp-has-no-avatar 2026-04-28 14:00:44 -05:00
Eric Eastwood 8f696053e2 Merge branch 'main' into madlittlemods/soft-limit-account-session-management 2026-04-28 14:00:17 -05:00
Eric Eastwood 1a0cd80556 Merge branch 'madlittlemods/hard_limit_eviction' into madlittlemods/soft-limit-account-session-management
Conflicts:
	crates/config/src/sections/experimental.rs
2026-04-28 14:00:11 -05:00
dependabot[bot] 2b55a0af91 build(deps-dev): bump postcss from 8.5.8 to 8.5.12 in /frontend
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.8 to 8.5.12.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.8...8.5.12)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.12
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-28 13:21:03 +00:00
github-actions[bot] b16e427f9f Translations updates 2026-04-28 11:13:14 +00:00
Eric Eastwood 321cb9c4ae Fix some lints 2026-04-23 18:03:26 -05:00
Eric Eastwood d83a3e77f5 Add test to ensure error shown on account page 2026-04-23 18:01:30 -05:00
Eric Eastwood cc7f786af3 Fix error icon in nav bar not disapparing when you remove enough devices
See https://github.com/element-hq/matrix-authentication-service/pull/5644#discussion_r3133886809
2026-04-23 16:26:24 -05:00
Eric Eastwood 041d9ad01d Fix lints and automatic updates 2026-04-22 18:31:41 -05:00
Eric Eastwood ebd0493cf5 Conditional NavBar device limit error 2026-04-22 18:27:47 -05:00
Eric Eastwood 69258452e5 Add session limit errors on account -> devices page 2026-04-22 18:19:55 -05:00
Eric Eastwood 8706b6203a Add session limit info icon 2026-04-22 17:45:03 -05:00
Eric Eastwood 6dce03e27d Pipe session_limit to frontend 2026-04-17 18:22:32 -05:00
Eric Eastwood d1edf64dda Add header showing total number of devices 2026-04-17 17:49:20 -05:00