Commit Graph
169 Commits
Author SHA1 Message Date
Quentin Gliech ecc8c46b96 Fix template formatting & update translations 2026-06-10 10:50:56 +02:00
Quentin Gliech ba96908275 Merge remote-tracking branch 'origin/main' into gordnhoo/main 2026-06-10 10:34:16 +02:00
Quentin Gliech 318c41101f Update the device link page design 2026-05-28 13:30:25 +02:00
Quentin Gliech bcd629be12 Update the device consent page design 2026-05-28 13:30:25 +02:00
Quentin Gliech 3025708520 Add a configuration option to disable device code auto-fill 2026-05-28 13:30:25 +02:00
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 5ea68e0bc3 Update the Compound icons in the server-side generated templates 2026-05-25 16:28:42 +02:00
Eric Eastwood d274793198 Better ConsentForbidden 2026-05-15 17:39:49 -05:00
Eric Eastwood 50b49cd38a Back to more normal 2026-05-14 19:27:01 -05:00
Eric Eastwood 08c98ff6d2 Merge branch 'main' into madlittlemods/session-soft-limit-for-interactive-contexts
Conflicts:
	translations/en.json
2026-05-12 11:44:21 -05:00
Eric Eastwood 80ae3db491 Merge branch 'main' into madlittlemods/fix-client-uri-on-policy-violation-screen
Conflicts:
	translations/en.json
2026-05-07 20:08:06 -05:00
Eric Eastwood 31e4f22e5a Remove redundant comments
(we no longer deal with the `grant` at all to care about explaining)
2026-05-07 19:57:24 -05:00
Eric Eastwood 4140e83be6 Simplify to only use client_uri 2026-05-07 19:55:29 -05:00
Eric Eastwood 94fd625dd4 Merge branch 'main' into madlittlemods/session-soft-limit-for-interactive-contexts
Conflicts:
	translations/en.json
2026-05-07 13:37:35 -05:00
Eric Eastwood 9b64b69bb4 Fix template not rendering and document reasoning 2026-05-06 21:29:57 -05:00
Eric Eastwood 6d1b91dd4f Fix client linking to none on policy violation screen 2026-05-06 11:19:54 -05:00
Eric Eastwood 2834816044 Use translation text for "Cancel" button in reauth template 2026-05-06 10:23:51 -05:00
Eric Eastwood d181d863c6 Merge branch 'main' into madlittlemods/session-soft-limit-for-interactive-contexts
Conflicts:
	translations/en.json
2026-04-28 14:30:34 -05:00
Eric Eastwood 7d2706c0d5 Display Device limit reached error on policy violation screen 2026-04-17 15:17:43 -05:00
Eric Eastwood cc1e26256e Improve consent screen when idenity provider has no avatar 2026-04-16 16:07:01 -05:00
Gordnho 732dc7970c Refactor login form to include password input conditionally
This removes the username login box when only providers are chosen
2026-04-03 14:50:26 +02:00
shingyu 66c78727ac feat(recaptcha): change recaptcha endpoint 2026-03-15 18:18:14 +08:00
Quentin Gliech e891533b56 Sync Compound icons 2026-01-06 10:04:05 +01:00
Quentin Gliech 332127360b Pre-load locale data in the React app 2025-12-17 15:53:37 +01:00
Quentin Gliech 9f61a2dbdc Update icons in templates 2025-12-16 15:01:11 +01:00
Quentin Gliech e50a7163e8 Un-break the scope tempalte helpers 2025-12-03 14:04:46 +01:00
Quentin Gliech e26a7f3c86 Explain how to use scope.unsafe_scopes() better 2025-12-03 13:46:59 +01:00
Quentin Gliech fed83c26a6 Fix the consent templates failing to render in tests 2025-12-03 10:27:18 +01:00
Quentin Gliech cd3d92b4f6 Fix rendering of the logout button in a few places 2025-12-02 19:54:14 +01:00
Quentin Gliech fbf5fbf7a8 Merge remote-tracking branch 'origin/main' into quenting/simpler-consent-screen 2025-12-02 19:42:57 +01:00
Quentin Gliech cd5e9c287a Make the compat SSO login page use the same layout as other consent
pages
2025-12-02 18:13:02 +01:00
Quentin Gliech 580767f2dd Simplify the consent screens 2025-12-02 18:10:12 +01:00
Quentin Gliech d4c1dd9e46 Allow rendering a custom logout button in the templates 2025-12-02 17:55:16 +01:00
Olivier 'reivilibre 3a342b6165 Add experimental and preliminary policy-driven session limiting when logging in compatibility sessions. (#5287) 2025-12-02 15:50:04 +00:00
Olivier 'reivilibreandQuentin Gliech c0f2d3aef9 Update templates/pages/compat_login_policy_violation.html
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-12-02 15:25:04 +00:00
Olivier 'reivilibre 68107af042 We can't show a cancel button, so don't show one 2025-11-28 12:42:48 +00:00
Quentin Gliech 93b9b174e2 Remove unused login_link.html template 2025-11-27 16:18:18 +01:00
Olivier 'reivilibre 86d71de995 Add a 'compat login policy violation' page 2025-11-25 18:41:14 +00:00
Quentin Gliech c525d9e968 Update icons in the templates 2025-11-19 14:25:04 +01:00
Quentin Gliech be57b40b53 Fix the 'username is already taken' error message 2025-11-19 13:30:28 +01:00
Quentin Gliech c189bb2950 Fix frontend style, template syntax and regenerate translations 2025-11-19 13:07:02 +01:00
Quentin Gliech f0b408ef5a Interactively guide users for selecting a valid username 2025-11-18 18:25:23 +01:00
Quentin Gliech 2caa6e7f04 Move all the frontend entrypoints to a dedicated directory
This will make it easier to add new entrypoints in the future without
having to change the vite config
2025-11-18 16:22:40 +01:00
Olivier 'reivilibre ea7f568d81 Clarify some more conditions in the templates 2025-10-28 16:52:18 +00:00
Olivier 'reivilibre 647c8e703a For branding: use none instead of undefined 2025-10-28 15:51:34 +00:00
Olivier 'reivilibre adad55161b templates: fix reliance on lax undefined behaviour 2025-10-24 14:27:35 +01:00
Quentin Gliech 806a815f75 Highlight dangerous scopes when consenting to them 2025-10-22 11:29:52 +02:00
Quentin Gliech e4844968d3 Add a configuration option to make email optional for password registration 2025-10-07 17:28:01 +02:00
Quentin Gliech 7e018a06aa Merge remote-tracking branch 'origin/main' into quenting/stable-api 2025-08-04 16:38:49 +02:00