Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): store accordion state in search params #6435

Merged
merged 4 commits into from Feb 10, 2024

Conversation

danieldietzler
Copy link
Member

@danieldietzler danieldietzler commented Jan 16, 2024

This PR introduces the ability to store the state of accordions (isOpen?) in the URL. If an accordion component gets a key foo, this key will be used in the URL. (i.e. demo.immich.app/admin/system-settings?isOpen=foo)

Copy link

cloudflare-pages bot commented Jan 16, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2bf722a
Status: ✅  Deploy successful!
Preview URL: https://ce448c09.immich.pages.dev
Branch Preview URL: https://refactor-admin-settings-acco.immich.pages.dev

View logs

@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch 2 times, most recently from 4e5e0c4 to 31858cd Compare January 24, 2024 20:54
@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch 2 times, most recently from 4dbc892 to f9aa4e2 Compare January 27, 2024 17:26
@danieldietzler danieldietzler changed the title refactor(web): keep admin settings accordion state in search params refactor(web): store accordion state in search params Jan 27, 2024
@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch from f9aa4e2 to 4793fe7 Compare January 27, 2024 18:02
@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch from 4793fe7 to e366e93 Compare January 28, 2024 20:55
@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch from e366e93 to 3d6f2f5 Compare February 7, 2024 23:13
@danieldietzler danieldietzler force-pushed the refactor/admin-settings-accordions-state branch from 3d6f2f5 to d484ccc Compare February 7, 2024 23:17
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

If your happy with this new approach, everything works and looks good to me.

@jrasm91 jrasm91 force-pushed the refactor/admin-settings-accordions-state branch from a1aa4bb to 52aac3a Compare February 9, 2024 20:18
@jrasm91 jrasm91 changed the title refactor(web): store accordion state in search params feat(web): store accordion state in search params Feb 9, 2024
@jrasm91 jrasm91 requested a review from martabal February 9, 2024 20:30
@danieldietzler danieldietzler marked this pull request as ready for review February 9, 2024 22:34
@jrasm91 jrasm91 merged commit a9e6657 into main Feb 10, 2024
24 checks passed
@jrasm91 jrasm91 deleted the refactor/admin-settings-accordions-state branch February 10, 2024 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants