Skip to content

feat: install the SDK's view-underlying-data plugin - #34

Merged
chinh-dm-holistics merged 2 commits into
mainfrom
view-underlying-data
Nov 13, 2026
Merged

chinh-dm-holistics merged 2 commits into
mainfrom
view-underlying-data

Conversation

@chinh-dm-holistics

Copy link
Copy Markdown
Contributor

Summary

  • Installs the SDK's viewUnderlyingDataPlugin() in the host's plugin list (src/data-app.ts), so a Data App's query.menu() on a chart point or KPI offers View underlying data: a window listing the model's rows behind the number, 100 at a time, with Load more and Download CSV.
  • Without it, query.menu() opens nothing on this host, while plain anfra serve already offers it. demo.anfra.ai runs this host, so apps there (starting with dashboards/ecommerce-overview in anfra-demo-data) can't show underlying data.
  • The plugin is frame-only: its queries and CSV go through core.query and core.query.export, which server/anfra.ts already allows and rate-limits. No server change.
  • README lists the feature next to the other plugins.

Tested: built this branch and served anfra-demo-data's Ecommerce Overview through it (anfra 0.19.0 image, this dist mounted at /opt/anfra-host/dist). The Units sold KPI's menu showed View underlying data next to Ask AI; the window listed 6,164 units' order items, and Load more went to 200 rows. pnpm typecheck, pnpm lint, pnpm test (48 pass) and pnpm build pass.

Asana

N/A

Lasting Changes (Technical)

  • Every Data App on this host can now open View underlying data from query.menu().

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklists

  • Update CHANGELOG.md (no CHANGELOG in this repo)
  • Frontend: use new design system (see yarn docs)
  • Documentation (if necessary)
  • Tests (integration test/unit test)
  • User Acceptance Test (Product Feature Review)
  • Code Review

A Data App's query.menu() on a chart point or KPI now offers View underlying
data: a window of the model's rows behind the number, paged 100 at a time,
with a CSV download. The plugin is frame-only; its queries and download go
through core.query and core.query.export, which the server already allows.
@chinh-dm-holistics
chinh-dm-holistics merged commit 94de3bf into main Nov 13, 2026
1 check passed
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