Skip to content

Feat/export dataset metrics#518

Merged
cristian-tamblay merged 7 commits intodevelopfrom
feat/export-dataset-metrics
Apr 8, 2026
Merged

Feat/export dataset metrics#518
cristian-tamblay merged 7 commits intodevelopfrom
feat/export-dataset-metrics

Conversation

@Creylay
Copy link
Copy Markdown
Collaborator

@Creylay Creylay commented Mar 31, 2026

Summary

Add per-card multi-format export capabilities to dataset analysis cards. Each card now has a download menu
offering image (full card or chart-only), CSV, and JSON export options via a reusable ExportableCard component.


Type of Change

Check all that apply like this [x]:

  • Backend change
  • Frontend change
  • CI / Workflow change
  • Build / Packaging change
  • Bug fix
  • Documentation

Changes (by file)

  • src/components/notebooks/dataset/ExportableCard.jsx: New reusable component wrapping MUI Card with a
    download icon that opens a menu with 4 export options — card as image, chart as image, CSV, and JSON. Uses
    html2canvas for image capture and auto-detects recharts/plotly containers for chart-only exports.
  • src/components/notebooks/dataset/tabs/NumericTab.jsx: Replaced Card with ExportableCard, passing column
    stats as exportData.
  • src/components/notebooks/dataset/tabs/TextTab.jsx: Replaced Card with ExportableCard, passing column
    stats as exportData.
  • src/components/notebooks/dataset/tabs/CategoricalTab.jsx: Replaced Card with ExportableCard, passing
    column stats as exportData.
  • src/components/notebooks/dataset/tabs/CorrelationsTab.jsx: Replaced Card with ExportableCard, passing
    correlation data as exportData.
  • src/components/notebooks/dataset/tabs/QualityTab.jsx: Replaced both Card elements with ExportableCard,
    passing quality info and missing data ratios as exportData.
  • src/components/notebooks/dataset/tabs/OverviewTab.jsx: Replaced only the Missing Values Overview card with
    ExportableCard; Dataset Preview and Column Types Distribution remain as plain Card.
  • src/utils/i18n/locales/en/datasets.json: Added translation keys for exportCardImage, exportChartImage,
    exportCSV, exportImage, exportJSON.
  • src/utils/i18n/locales/es/datasets.json: Added corresponding Spanish translations.

Testing (optional)

  • Verify the download icon appears on all analysis cards (Numeric, Text, Categorical, Correlations, Quality,
    Missing Values Overview).
  • Verify it does not appear on Dataset Preview or Column Types Distribution cards.
  • Test each menu option: card as image, chart as image, CSV download, and JSON download.
  • Confirm CSV and JSON options only appear on cards where exportData is provided.

Notes (optional)

  • The ExportableCard component detects charts at runtime by querying for .recharts-wrapper or
    .js-plotly-plot DOM elements within the card.
  • Cards without charts will still show the "Chart as image" option but it will be a no-op if no chart element is
    found.

@cristian-tamblay cristian-tamblay added the conflict This PR has merge conflicts label Apr 6, 2026
@Creylay Creylay removed the conflict This PR has merge conflicts label Apr 8, 2026
@cristian-tamblay cristian-tamblay merged commit ab92ed6 into develop Apr 8, 2026
19 checks passed
@cristian-tamblay cristian-tamblay deleted the feat/export-dataset-metrics branch April 8, 2026 21:57
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