Update auth pages visually#6479
Conversation
|
- Create new auth layout context that looks visually cleaner, and hides the header and footer - Transform all auth pages to use the new context. This includes: - Login page - Signup page - Password reset page - Password reset request page - Password reset request success page - Password reset error page - Activate account page - Verify 2FA page - Verify 2FA recovery code page - SSO login page - SSO provision notice page - SSO provision issue page - Invitation expired page - Tighten copy across auth pages to be more consistent and concise - Remove password conformation field from signup page - Extract password field to a new component with visibility toggle - Extract Plausible logo to a new component
4319128 to
081c808
Compare
| ) | ||
|
|
||
| assert html_response(response, 429) =~ "Too many activation attempts" | ||
| assert html_response(response, 200) =~ |
There was a problem hiding this comment.
What's the reason for changing from 429 to 200?
There was a problem hiding this comment.
@aerosol we switched the rate-limit from a full-page 429 error to an inline error on the /activate page itself for better UX (see this convo). Since inline errors are rendered as a normal form render rather than an error page, I thought the status is 200 instead of 429. Would you prefer if we keep 429 instead?
| </:footer> | ||
| </.focus_box> | ||
| <% else %> | ||
| <.styled_link method="delete" href="/me?redirect=/register">change email</.styled_link> |
There was a problem hiding this comment.
are we deliberately dropping the confirmation dialog?
There was a problem hiding this comment.
Yeah deliberate, at this point in the flow it's not really a destructive action. Clicking 'change email' and then being asked 'Deleting your account cannot be reversed. Are you sure?' sounds quite alarming for what's essentially 'let me fix a typo/use a different email'.
RobertJoonas
left a comment
There was a problem hiding this comment.
Nice work! 👏 Happy to see much less classname duplication and more extracted reusable components :)
Changes
Tests
Changelog
Documentation
Dark mode