Skip to content

[SPARK-56796][UI] Fix sticky tooltips for Stage page additional metrics#55771

Open
XdithyX wants to merge 1 commit intoapache:masterfrom
XdithyX:SPARK-56796
Open

[SPARK-56796][UI] Fix sticky tooltips for Stage page additional metrics#55771
XdithyX wants to merge 1 commit intoapache:masterfrom
XdithyX:SPARK-56796

Conversation

@XdithyX
Copy link
Copy Markdown
Contributor

@XdithyX XdithyX commented May 8, 2026

What changes were proposed in this pull request?

This PR updates the Stage page additional metrics tooltips to use data-bs-trigger="hover" (SPARK-56796).
The change is limited to the additional metrics checkbox options under Show Additional Metrics, such as Scheduler Delay, Task Deserialization Time, Getting Result Time, and Peak Execution Memory.

Why are the changes needed?

Currently, after selecting one of the Stage page additional metrics checkboxes, the tooltip can remain visible even after the mouse leaves the option.
This happens because Bootstrap tooltips use the default hover focus trigger. When a checkbox inside the tooltip target is clicked, focus can keep the tooltip active after mouseleave.

For these checkbox options, the tooltip should only be shown while hovering.

Does this PR introduce any user-facing change?

Yes.

In the Stage page, tooltips for Show Additional Metrics checkbox options now disappear when the mouse leaves the option after selecting it.

How was this patch tested?

Manually tested in the Spark UI Stage page:

  1. Opened a stage detail page.
  2. Expanded Show Additional Metrics.
  3. Hovered over an additional metric option to show the tooltip.
  4. Selected the checkbox.
  5. Moved the mouse away from the option.
  6. Verified that the tooltip no longer remains visible after mouseleave.

Was this patch authored or co-authored using generative AI tooling?

Yes. GPT 5.5 was used.

Before the fix

before.mov

After the fix

after.fix.mov

@XdithyX
Copy link
Copy Markdown
Contributor Author

XdithyX commented May 8, 2026

Hi @sarutak Can you please have a look?
Thank you!

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