Skip to content

feat(portal): add action buttons for application page elements#55

Open
BatLeDev wants to merge 3 commits intomasterfrom
application-actions
Open

feat(portal): add action buttons for application page elements#55
BatLeDev wants to merge 3 commits intomasterfrom
application-actions

Conversation

@BatLeDev
Copy link
Copy Markdown
Member

@BatLeDev BatLeDev commented May 7, 2026

Summary

  • Adds a new actionButtons config block on the application page element (api/types/page-element-applications/schema.js) to display action buttons around an embedded application: fullscreen, capture, embed, datasets, with configurable style (icon / text / both), position (top / bottom) and alignment.
  • New application-actions.vue component that renders the selected buttons. The datasets action fetches the application configuration to derive the list of datasets used and links either to the single dataset page or to /datasets?ids=… when multiple datasets are involved.
  • Extends the datasets catalog page element to support filtering by an ids query param, so the multi-dataset link from the actions resolves to the expected catalog view.
  • Refactors page-element-application.vue: action buttons can be rendered above or below the visualization; the preview screenshot path now reuses a single application fetch (via useLocalFetch outside preview) instead of re-fetching only in preview mode.
  • Threads an optional actionStyle prop through application-capture.vue and application-embed.vue so the page element config can override the portal-level default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant