You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request introduces a new user account settings page and
refactors the account update flow to use Turbo Streams for a more modern
and interactive experience. It also improves authorization logic for
user actions and updates UI components for consistency and clarity.
**Account settings and update flow improvements:**
* Added a new `SettingsController` and a settings index view
(`settings/index.html.erb`) with tabbed navigation for platform,
personal, account, and privacy settings. The account tab now loads the
account edit form via Turbo Frame for a smoother user experience.
[[1]](diffhunk://#diff-468b2a18927364431fb88902a0ce70d4c1270a0be2e1b9a38abc047efef5d0fcR1-R4)
[[2]](diffhunk://#diff-8878f104a035a955b0856186f73a9b27043d5406ee2887217fd899ebc4851381R1-R124)
[[3]](diffhunk://#diff-84f7c08f5ea35da4fa461e19343963db9ef9fbb1f4bfe4bff23661af7bb4c95dR24-R29)
[[4]](diffhunk://#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7R1260-R1284)
* Refactored the user registration controller to support Turbo Stream
responses for account updates, including improved error handling and
flash messaging. Added strong parameter configuration for account
updates and a dedicated path after update.
[[1]](diffhunk://#diff-3e0e48ea1c0c7d760bb6825971dfdb2372df42ff38dc4a166bd0ae0e0a1c2a25R11-R61)
[[2]](diffhunk://#diff-3e0e48ea1c0c7d760bb6825971dfdb2372df42ff38dc4a166bd0ae0e0a1c2a25R116-R124)
[[3]](diffhunk://#diff-3e0e48ea1c0c7d760bb6825971dfdb2372df42ff38dc4a166bd0ae0e0a1c2a25R147-R150)
**Authorization and policy updates:**
* Updated `UserPolicy` to restrict access to user management actions
based on the `manage_platform` permission, including index, show,
update, and scope resolution.
[[1]](diffhunk://#diff-a09b98d77c3d66e373fc9da40e3e8c02da1b04a27f8afabace949273267f0126L6-R10)
[[2]](diffhunk://#diff-a09b98d77c3d66e373fc9da40e3e8c02da1b04a27f8afabace949273267f0126L22-R22)
[[3]](diffhunk://#diff-a09b98d77c3d66e373fc9da40e3e8c02da1b04a27f8afabace949273267f0126L39-R41)
**UI and UX enhancements:**
* Replaced the account edit form with a partial that supports Turbo
Frames, and improved error display styling.
[[1]](diffhunk://#diff-67a46c8d5e9de90f4ab7514c745a6a5c6c2c8e7746472d19ac9d9b6c490b9289R1-R60)
[[2]](diffhunk://#diff-4d201ae5c67e8b121860359f6c67d044f5bf68c3d7a4687ca64089bfe5677a13L5-R5)
[[3]](diffhunk://#diff-12166b360a44b03e4282d804b08a2a1e2cf4c0518dcffa6623c5ad023b07d20fL2-R2)
* Improved flash message handling to support the `success` type and
ensure consistent Bootstrap alert styling.
* Updated the people form to remove redundant labels and hints for a
cleaner layout.
**Testing and dependencies:**
* Added the `rspec-rebound` gem to the test group in the `Gemfile` for
enhanced RSpec testing capabilities.
**Localization:**
* Added comprehensive English translations for the new settings page and
account edit flow, including tab labels and descriptions.
[[1]](diffhunk://#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7R1260-R1284)
[[2]](diffhunk://#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7R1480)##
Summary
Describe the change and the motivation.
## Checklist
- [ ] Tests added/updated and passing (`bin/ci`).
- [ ] Lint and security checks (`rubocop`, `brakeman`, `bundler-audit`).
- [ ] Documentation updated under `docs/` describing new/changed
functionality.
- [ ] Mermaid diagrams (`docs/*.mmd`) updated to reflect changes.
- [ ] Rendered PNGs regenerated with `bin/render_diagrams` and
committed.
- [ ] For DB changes, included any needed backfills/dedupes and noted
risks.
## Screenshots / Diagrams
If applicable, include screenshots or link to updated diagrams.
## Notes
Anything reviewers should be aware of (migration order, flags, feature
toggles).
0 commit comments