Skip to content

fix: DH-18770: Chart builder support for ui.table#1356

Open
jnumainville wants to merge 4 commits into
deephaven:mainfrom
jnumainville:18770_ui_chart_builder
Open

fix: DH-18770: Chart builder support for ui.table#1356
jnumainville wants to merge 4 commits into
deephaven:mainfrom
jnumainville:18770_ui_chart_builder

Conversation

@jnumainville

Copy link
Copy Markdown
Collaborator

ui.table now supports chart builder for the underlying table

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds chart builder support to ui.table by wiring the IrisGrid “create chart” action through the dashboard event hub, so charts can be created against the underlying table model.

Changes:

  • Add an onCreateChart handler in UITable that emits IrisGridEvent.CREATE_CHART with chart settings, source panel id, and table metadata.
  • Pass the underlying dh.Table through the event payload when the grid model is a table template.
  • Add Jest tests for the new onCreateChart wiring and emitted payload behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
plugins/ui/src/js/src/elements/UITable/UITable.tsx Adds onCreateChart handling and emits a dashboard event for chart creation, including sourcePanelId and table metadata.
plugins/ui/src/js/src/elements/UITable/UITable.test.tsx New tests validating onCreateChart is passed to IrisGrid and that the correct chart-create event payload is emitted.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread plugins/ui/src/js/src/elements/UITable/UITable.test.tsx
Comment thread plugins/ui/src/js/src/elements/UITable/UITable.test.tsx Outdated
Comment thread plugins/ui/src/js/src/elements/UITable/UITable.test.tsx Outdated
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@github-actions

Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@jnumainville jnumainville requested review from a team and vbabich and removed request for a team June 11, 2026 18:42
@jnumainville jnumainville marked this pull request as ready for review June 11, 2026 18:42
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