Skip to content

feat(auth): update password reset page UI and policy - #149

Open
mulldug wants to merge 6 commits into
mainfrom
feat/new-password-restyle
Open

feat(auth): update password reset page UI and policy#149
mulldug wants to merge 6 commits into
mainfrom
feat/new-password-restyle

Conversation

@mulldug

@mulldug mulldug commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

ref: https://app.clickup.com/t/9014802374/86b9txpuj

  • Replace email field outline with filled/disabled style
  • Add password visibility toggle with eye icon
  • Add confirm field match indicator (empty circle / green check / red X)
  • Add password requirements list derived from config
  • Add help link below the card
  • Disable submit button until all requirements pass and fields match
  • Update card title and subheader to FN branding
  • Fix min password length to 10 (was 8) and add + to allowed special chars pattern
  • Add AUTH_PASSWORD_MIN_LENGTH, AUTH_PASSWORD_SHAPE_LIST, and AUTH_PASSWORD_ALLOWED_SPECIAL_CHARACTERS_TEXT config keys
  • Update local dev docs: queue drain command and config cache notes

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Improved the password reset form with password visibility controls and live confirmation indicators.
    • Added clearer password requirements, including a minimum 10-character length, required components, and permitted special characters.
    • Prevented submission until password requirements and confirmation checks are satisfied.
    • Added a “Need help?” contact link and updated the submit button to “Set password.”
  • Documentation

    • Expanded local development guidance for frontend builds, captcha testing, password-reset email processing, log checks, and configuration updates.

- Replace email field outline with filled/disabled style
- Add password visibility toggle with eye icon
- Add confirm field match indicator (empty circle / green check / red X)
- Add password requirements list derived from config
- Add help link below the card
- Disable submit button until all requirements pass and fields match
- Update card title and subheader to FN branding
- Fix min password length to 10 (was 8) and add + to allowed special chars pattern
- Add AUTH_PASSWORD_MIN_LENGTH, AUTH_PASSWORD_SHAPE_LIST, and
  AUTH_PASSWORD_ALLOWED_SPECIAL_CHARACTERS_TEXT config keys
- Update local dev docs: queue drain command and config cache notes
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@mulldug, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 30 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d849e8ca-e886-4be0-b2eb-ea26792f703e

📥 Commits

Reviewing files that changed from the base of the PR and between e01a887 and 93a0d4c.

📒 Files selected for processing (1)
  • resources/js/reset_password/reset_password.js
📝 Walkthrough

Walkthrough

The password reset flow now exposes expanded password-policy settings, provides visibility and confirmation feedback, tightens submission validation, updates styling and copy, updates password fixtures, and documents local development workflows.

Changes

Password reset experience

Layer / File(s) Summary
Password policy configuration and view wiring
config/auth.php, .env.example, resources/views/auth/passwords/reset.blade.php
Adds environment-backed policy settings, raises the default minimum length to 10, exposes allowed-character text, and changes the submit label to “Set password”.
Reset form behavior and presentation
resources/js/reset_password/reset_password.js, resources/js/reset_password/reset_password.module.scss
Adds visibility toggling, confirmation indicators, structured requirements, stricter submission validation, updated copy, a support link, and supporting styles.
Updated password fixtures
database/seeds/TestSeeder.php, tests/OIDCProtocolTestCase.php, tests/PasswordChangeRevokeTokenTest.php, tests/UserApiTest.php
Updates seeded and test passwords to satisfy the expanded password policy.
Local frontend and reset-flow instructions
LOCAL_DEVELOPMENT_HOWTO.md
Documents asset builds, Turnstile test keys, Redis queue processing, password-reset link lookup, and config-cache clearing.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Config as config/auth.php
  participant ResetPage as reset.blade.php
  participant ResetUI as reset_password.js
  participant User
  Config->>ResetPage: provide password policy settings
  ResetPage->>ResetUI: pass passwordPolicy
  User->>ResetUI: enter password and confirmation
  ResetUI->>User: show visibility and match indicators
  ResetUI->>User: enable submission only when fields are valid
Loading

Possibly related PRs

Suggested reviewers: romanetar

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 6.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes to the password reset page UI and password policy.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/new-password-restyle

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@config/auth.php`:
- Around line 106-109: Update the default fallback for AUTH_PASSWORD_MIN_LENGTH
in the password configuration to 10 instead of 8, preserving the existing
environment-variable override behavior.

In `@resources/js/reset_password/reset_password.js`:
- Line 211: Render passwordPolicy.allowed_special_characters_text as a normal
React child in resources/js/reset_password/reset_password.js:211, removing
dangerouslySetInnerHTML. In resources/views/auth/passwords/reset.blade.php:27,
serialize the configured value with Illuminate\Support\Js::from(...) before
embedding it in the script block.
- Around line 151-157: Update the password visibility IconButton to provide a
dynamic accessible name reflecting show versus hide state. Add
screen-reader-visible status text for the confirmation indicator covering
matching, mismatching, and empty confirmation states, while preserving the
existing visual icons and behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e0d6a357-a410-4cd2-b08b-d5afc11d090d

📥 Commits

Reviewing files that changed from the base of the PR and between 83eaa4a and ba52678.

📒 Files selected for processing (6)
  • .env.example
  • LOCAL_DEVELOPMENT_HOWTO.md
  • config/auth.php
  • resources/js/reset_password/reset_password.js
  • resources/js/reset_password/reset_password.module.scss
  • resources/views/auth/passwords/reset.blade.php
💤 Files with no reviewable changes (1)
  • .env.example

Comment thread config/auth.php
Comment thread resources/js/reset_password/reset_password.js
Comment thread resources/js/reset_password/reset_password.js Outdated
- Add aria-label to password visibility toggle reflecting show/hide state
- Add sr-only aria-live region for confirm field match status
- Replace dangerouslySetInnerHTML with plain React child for special
  characters text; use Js::from() in blade template to safely serialize
  the value without HTML entity encoding
- Update password_min_length default from 8 to 10 to match policy
@github-actions

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@resources/js/reset_password/reset_password.module.scss`:
- Line 90: In the .sr_only style rule, replace the deprecated clip declaration
with clip-path: inset(50%) while preserving the existing visually hidden
behavior and other declarations.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6e14e557-4608-46e6-b98d-6ce84565ae49

📥 Commits

Reviewing files that changed from the base of the PR and between ba52678 and 8e3299e.

📒 Files selected for processing (4)
  • config/auth.php
  • resources/js/reset_password/reset_password.js
  • resources/js/reset_password/reset_password.module.scss
  • resources/views/auth/passwords/reset.blade.php
🚧 Files skipped from review as they are similar to previous changes (3)
  • config/auth.php
  • resources/views/auth/passwords/reset.blade.php
  • resources/js/reset_password/reset_password.js

Comment thread resources/js/reset_password/reset_password.module.scss Outdated
Replace test passwords (8–9 chars) with a new one (10 chars)
across TestSeeder and four test files so the suite passes against the
updated auth.password_min_length default.
@github-actions

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

@github-actions

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

Comment thread .env.example Outdated
Comment thread resources/views/auth/passwords/reset.blade.php Outdated
Comment thread resources/js/reset_password/reset_password.js
@smarcet
smarcet requested review from Copilot and romanetar August 6, 2026 14:46

@smarcet smarcet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mulldug please review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the password reset experience and password policy defaults to match the new UX requirements (visibility toggle, live match indicator, requirements list) while aligning backend-configured password constraints (notably min length 10) with tests and seed data.

Changes:

  • Revamps the reset password UI (email field styling, password visibility toggle, match indicators, requirements list, help link, submit disabling).
  • Updates password policy configuration defaults and introduces additional config/env keys for UI display.
  • Aligns test fixtures and seed user passwords with the new minimum-length policy; expands local development documentation.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/UserApiTest.php Updates test password to meet new minimum length.
tests/PasswordChangeRevokeTokenTest.php Updates current password values to meet new minimum length.
tests/OIDCProtocolTestCase.php Updates login fixture password strings to match seeded/test policy.
resources/views/auth/passwords/reset.blade.php Adds new password policy fields into the reset-password page config payload.
resources/js/reset_password/reset_password.module.scss Adds styles for the new reset-password UI elements.
resources/js/reset_password/reset_password.js Implements new reset-password UI behaviors and submission gating.
LOCAL_DEVELOPMENT_HOWTO.md Adds frontend build/watch notes, captcha test keys guidance, queue draining, and config cache notes.
database/seeds/TestSeeder.php Updates seeded test users’ passwords to satisfy new password policy.
config/auth.php Raises default min length to 10 and adds new config/env keys for password policy display.
.env.example Minor change in the auth password section (needs expansion to include new keys).
Suppressed comments (2)

resources/js/reset_password/reset_password.js:21

  • Typography is imported but no longer used in this component, which can cause lint/build warnings and adds unnecessary code to the bundle.
import Typography from "@material-ui/core/Typography";

resources/js/reset_password/reset_password.js:261

  • There are two elements with id="email" (the disabled TextField and this hidden input). Duplicate IDs are invalid HTML and can break label associations and automated tests. Keep the hidden field for submission, but remove/rename its id.
        <input type="hidden" value={initialValues.email} id="email" name="email"/>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread resources/js/reset_password/reset_password.js Outdated
Comment thread resources/js/reset_password/reset_password.js
Comment thread .env.example
Comment thread resources/views/auth/passwords/reset.blade.php Outdated
- Sync .env.example password pattern with new config default (adds +,
  enforces allowed-charset body) and add missing AUTH_PASSWORD_MIN_LENGTH,
  AUTH_PASSWORD_ALLOWED_SPECIAL_CHARACTERS_TEXT, and AUTH_PASSWORD_SHAPE_LIST keys
- Harden shape_list in reset.blade.php with Js::from() to prevent JS
  parse errors from quotes or backslashes in the config value
- Add aria-label to the disabled email field so screen readers announce
  its accessible name
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

Drop InfoOutlinedIcon, Typography, and the unused string import from
yup — leftovers from the password hint UI refactor.
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

📘 OpenAPI / Swagger preview

➡️ https://OpenStackweb.github.io/openstackid/openapi/pr-149/

This page is automatically updated on each push to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants