feat(charts): show charts cards in admin - #1210
Open
nicolaskempf57 wants to merge 15 commits into
Open
Conversation
ThibaudDauce
approved these changes
Aug 28, 2026
Comment on lines
+21
to
+22
| v-model="chartForm" | ||
| :initial-chart="chart" |
Contributor
There was a problem hiding this comment.
It seems the component is not using the v-model and recomputing the form based on the initial-chart, no?
Contributor
Author
There was a problem hiding this comment.
True ! I'm updating so that initial-chart is only use for the first producer / resource / dataset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes datagouv/data.gouv.fr#2021
Show chart cards in the site administration
/admin/site/chartspage (superadmin) listing all charts as cards with pagination, plus a "Graphiques" entry in the admin sidebar. Cards link to the edit page/admin/beta/charts/{id}.ChartCardcomponent in@datagouv/components-next(image or placeholder, title, producer, update date, views, description), with anxlmedia size onObjectCard, aCharttype onPlaceholderand animagefield on theCharttype. Also showcased on/design/cards.LoadingBlock) and passes it toChartConfiguratorvia aninitialChartprop instead ofchartId.server: false(/admin/**is server-rendered; SSR fetches bypass e2e mocks and caused hydration mismatches — same pattern as the metrics pages).tests/visualizations/is 42/42 green on chromium, typecheck and lint pass.