Add comprehensive documentation for idiomatic Phoenix LiveView URL state management to ensure browser back/forward buttons work correctly. Changes: - Add design document: docs/plans/2026-02-12-browser-navigation-fix-design.md - Documents the problem (18 LiveViews missing handle_params/3) - Provides idiomatic Phoenix patterns using push_patch/2 - Includes migration strategy for updating all LiveViews - Contains testing protocols and success criteria - Update CLAUDE.md: Add "Browser Navigation and URL State Management" section - Documents the three core patterns: tabs, modals, filters - Establishes critical rules for all future LiveView development - Provides working code examples for each pattern - Links to official Phoenix documentation Key Principles: - URL is single source of truth for visible state - Use push_patch/2 in event handlers, never assign for URL-backed state - Always implement handle_params/3 to validate and process URL params - Use Phoenix built-ins (no custom helpers needed) This ensures future LiveView development follows the correct pattern and browser navigation works as users expect. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| features | ||
| librenms-audit | ||
| plans | ||
| NIX-VERIFICATION.md | ||
| nix.md | ||
| README-nix-section.md | ||