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

Preparation dashboard #1516

Merged
merged 18 commits into from
May 16, 2024
Merged

Preparation dashboard #1516

merged 18 commits into from
May 16, 2024

Conversation

ptbrowne
Copy link
Collaborator

@ptbrowne ptbrowne commented May 16, 2024

InteractiveFilters state has been lifted up, out of the chart themselves, inside a global InteractiveFilters provider, which creates one zustand store for each chart, and then provides it to the charts through InteractiveFiltersChartProvider. This will enable control of multiple interactive filters by one component.

@ptbrowne ptbrowne requested a review from bprusinowski as a code owner May 16, 2024 08:38
Copy link

vercel bot commented May 16, 2024

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 May 16, 2024 0:30am

Copy link
Collaborator

@bprusinowski bprusinowski left a comment

Choose a reason for hiding this comment

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

LGTM 💯

When testing, I noticed one issue (which is also there on TEST, so not a regression, but related to this area I think):

  1. Go to https://visualization-tool-git-feat-preparation-dashboard-ixt1.vercel.app/en/create/new?cube=https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9&dataSource=Prod
  2. Add a second chart.
  3. Go back to first chart.
  4. Go to X axis.
  5. Enable interactive filter.
  6. Proceed to layout options.
  7. See that the chart changes filter range to 2014-2014.

I can also open a new issue, let me know 👍

app/components/debug-panel/DebugPanel.tsx Show resolved Hide resolved
app/charts/shared/overlay-voronoi.tsx Show resolved Hide resolved
app/stores/interactive-filters.tsx Show resolved Hide resolved
app/stores/interactive-filters.tsx Outdated Show resolved Hide resolved
app/components/chart-published.tsx Outdated Show resolved Hide resolved
app/components/chart-published.tsx Outdated Show resolved Hide resolved
app/stores/interactive-filters.tsx Show resolved Hide resolved
app/package.json Outdated Show resolved Hide resolved
Co-authored-by: Bartosz Prusinowski <[email protected]>
@ptbrowne
Copy link
Collaborator Author

Thanks for the thorough review, I've created an issue for the problem you saw 🙇

@ptbrowne ptbrowne merged commit ef4dd08 into main May 16, 2024
3 of 4 checks passed
@ptbrowne ptbrowne deleted the feat/preparation-dashboard branch May 16, 2024 12:22
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.

2 participants