Skip to content

feat: implement URL-synced dashboard state#660

Merged
Junirezz merged 1 commit into
Junirezz:mainfrom
queentiffany1111-cloud:feat/url-synced-dashboard-state
May 31, 2026
Merged

feat: implement URL-synced dashboard state#660
Junirezz merged 1 commit into
Junirezz:mainfrom
queentiffany1111-cloud:feat/url-synced-dashboard-state

Conversation

@queentiffany1111-cloud
Copy link
Copy Markdown
Contributor

URL-Synced Dashboard State

What's New

Implemented URL-synchronized state management for the vault dashboard, enabling users to share dashboard
configurations via URLs and maintain state across browser navigation.

Changes

  • New Hook: useDashboardUrlState - Manages dashboard state (tab, step, amount) in URL query parameters
  • Refactored: VaultDashboard component to use URL-synced state instead of local React state
  • Tests: 7 comprehensive unit tests (all passing)
  • Documentation: Complete guide for URL state management

Features

✅ Shareable URLs with dashboard state
✅ Browser back/forward navigation support
✅ Deep linking with pre-populated values
✅ Session persistence on page refresh
✅ Type-safe with full TypeScript support

URL Format

/dashboard?tab=deposit&step=review&amount=100.50
/dashboard?tab=withdraw&step=amount

Testing

All tests pass:

npm test -- useDashboardUrlState.test.ts

✓ 7 tests passed

closes #544

- Add useDashboardUrlState hook for managing tab, step, and amount in URL
- Refactor VaultDashboard to use URL-synced state instead of local state
- Enable shareable URLs, browser navigation, and session persistence
- Add comprehensive unit tests (7 tests, all passing)
- Add documentation guide for URL state management
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@queentiffany1111-cloud Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Junirezz Junirezz merged commit bec426b into Junirezz:main May 31, 2026
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.

Frontend: Add tab-state deep linking for dashboard sections

2 participants