Repository navigation
feat: install the SDK's view-underlying-data plugin - #34
Merged
Merged
Conversation
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.
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.
Summary
viewUnderlyingDataPlugin()in the host's plugin list (src/data-app.ts), so a Data App'squery.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.query.menu()opens nothing on this host, while plainanfra servealready 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.core.queryandcore.query.export, whichserver/anfra.tsalready allows and rate-limits. No server change.Tested: built this branch and served anfra-demo-data's Ecommerce Overview through it (anfra 0.19.0 image, this
distmounted 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) andpnpm buildpass.Asana
N/A
Lasting Changes (Technical)
query.menu().Type of change
Checklists
yarn docs)