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

fix: Navigation issue with metadata not showing up #1247

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Nov 3, 2023

This PR fixes the issue of metadata panel not showing in dataset preview when some filters were applied prior to navigating there.

The problem was that the AnimationPresence's onExitAnimation was not triggered, probably related to nesting of AnimatePresences with layout animations, some bugs with exit layout animations have been reported e.g. here. Wrapping the SearchFilters' children with AnimatePresence fixed the error.

To reproduce go to https://test.visualize.admin.ch/en/browse/theme/https%3A%2F%2Fregister.ld.admin.ch%2Fopendataswiss%2Fcategory%2Fadministration?dataSource=Prod and select the first dataset.

I also fixed a smaller issue with search filters being cleared when going to dataset preview, this bug looked like in the video below; now the filters shouldn't be cleared anymore.

filters.mov

...to avoid jumping filters behavior. In this commit we also retrieve filters from previous query param to keep them defined.
Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 3, 2023 10:08am

@bprusinowski bprusinowski merged commit e33a7c4 into main Nov 3, 2023
3 of 4 checks passed
@bprusinowski bprusinowski deleted the fix/navigation-issue-dataset-metadata branch November 3, 2023 11:09
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.

1 participant