Skip to content

fix: DH-18443: Fix dx and dh.ui tooltips#1226

Merged
mofojed merged 12 commits intodeephaven:mainfrom
jnumainville:18443_plugin_tooltips
Aug 27, 2025
Merged

fix: DH-18443: Fix dx and dh.ui tooltips#1226
mofojed merged 12 commits intodeephaven:mainfrom
jnumainville:18443_plugin_tooltips

Conversation

@jnumainville
Copy link
Copy Markdown
Collaborator

@jnumainville jnumainville commented Aug 19, 2025

Externalizes @deephaven/dashboard-core-plugins for dx tooltips
Adds tooltip to dh.ui

@jnumainville jnumainville requested a review from Copilot August 19, 2025 19:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances panel tooltip functionality by adding tooltips to dh.ui panels and externalizing dashboard core plugins for dx tooltips. The changes ensure consistent tooltip behavior across different panel types in the Deephaven dashboard.

  • Adds tooltip support to dh.ui panels with variable name display
  • Extracts variable name handling in ReactPanel for better tooltip integration
  • Externalizes @deephaven/dashboard-core-plugins in plotly-express build configuration

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ReactPanel.tsx Separates variable name extraction and passes it to layout configuration for tooltip support
PortalPanelTooltip.tsx New component that renders tooltips for portal panels using WidgetPanelTooltip
PortalPanelTooltip.test.tsx Unit tests for the new PortalPanelTooltip component
PortalPanel.tsx Integrates tooltip rendering functionality into the Panel component
vite.config.ts Adds dashboard-core-plugins to external dependencies for plotly-express

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread plugins/ui/src/js/src/layout/PortalPanelTooltip.test.tsx Outdated
@jnumainville jnumainville changed the title fix: DH-18443: Fix dx and dh.ui panels fix: DH-18443: Fix dx and dh.ui tooltips Aug 19, 2025
@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@jnumainville jnumainville requested a review from mofojed August 20, 2025 14:42
@jnumainville jnumainville marked this pull request as ready for review August 20, 2025 14:44
glEventHub={glEventHub}
renderTabTooltip={() => (
<PortalPanelTooltip
name={glContainer.getConfig().variableName}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we not just pull from metadata.name here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -177,6 +178,7 @@ function ReactPanel({
props: {},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we just need to pass through the metadata as a prop here, no?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yep, way simpler, thanks

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@jnumainville jnumainville requested a review from mofojed August 22, 2025 17:13
Comment thread package-lock.json
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There shouldn't be any changes to the package-lock.json. Revert the diff on this file.

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link
Copy Markdown

ui docs preview (Available for 14 days)

@mofojed mofojed merged commit 371bfcd into deephaven:main Aug 27, 2025
24 checks 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.

3 participants