towerops/priv
Graham McIntire d84a685878
fix: sync UserSettingsLive modal state to URL for browser navigation
Update UserSettingsLive to properly handle browser back/forward buttons
by syncing all modal state to URL parameters.

Changes:
- Update handle_params/3 to read modal param and set modal states
- Add build_settings_path/2 helper to construct URLs with preserved params
- Update all modal show/close handlers to use push_patch instead of assign:
  - add_token modal
  - token_created modal (shown after creating token)
  - revoke_all modal
  - add_device modal (TOTP)
  - device_qr modal (shown after creating device)
  - recovery_codes modal

Behavior:
- Browser back button now closes modals without navigating away
- URL reflects current modal state (?modal=add_token, etc.)
- Tab and page params preserved when opening/closing modals
- Bookmarkable URLs restore exact modal state

Follows idiomatic Phoenix LiveView pattern using push_patch/2 and
handle_params/3 as documented in CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-12 09:26:45 -06:00
..
gettext feat: migrate user settings and agent management to gettext 2026-02-02 13:20:54 -06:00
mibs mib update from librenms 2026-01-28 13:38:31 -06:00
profiles fix: sync UserSettingsLive modal state to URL for browser navigation 2026-02-12 09:26:45 -06:00
proto fix: resolve critical data loss and protobuf schema bugs (Phase 1) 2026-02-09 09:16:03 -06:00
repo Add 404-based brute force protection system 2026-02-10 16:31:48 -06:00
static Update changelog for agent self-update feature 2026-02-10 13:28:48 -06:00