Skip to content

feat: show component details on list item hover#1750

Merged
maxy-shpfy merged 1 commit intomasterfrom
02-04-feat_show_component_details_on_list_item_hover
Feb 19, 2026
Merged

feat: show component details on list item hover#1750
maxy-shpfy merged 1 commit intomasterfrom
02-04-feat_show_component_details_on_list_item_hover

Conversation

@maxy-shpfy
Copy link
Collaborator

@maxy-shpfy maxy-shpfy commented Feb 4, 2026

Description

Added a hover popover for components in the Flow Sidebar that displays component details. When hovering over a component (i) icon in the sidebar, a popover appears showing the component name and details.

Type of Change

  • New feature
  • Improvement

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Changes

  • Created new ComponentHoverPopover component that shows component details on hover
  • Added debounce utility function to prevent rapid toggling of the popover
  • Modified TextBlock component to accept a defaultCollapsed prop
  • Updated TaskDetails to support expanded descriptions by default
  • Added the new component to React compiler config

image.png

Test Instructions

Component Details on info hover.mov (uploaded via Graphite)

  1. Navigate to the Flow Sidebar
  2. Hover over (i) icon of any component in the sidebar
  3. Verify that a popover appears showing the component name and details
  4. Verify that the popover disappears when moving the mouse away
  5. Verify that Component Details dialog opens and operates properly.
  6. Verify that after closing the dialog ComponentHoverPopover displays properly.

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@maxy-shpfy maxy-shpfy force-pushed the 02-04-feat_show_component_details_on_list_item_hover branch 2 times, most recently from 45ef8ce to 16bb61b Compare February 4, 2026 11:35
Comment on lines 26 to 28
const delaySetIsOpen = debounce((open: boolean) => {
setIsOpen(open);
}, HOVER_DELAY_MS);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a smallish workaround instead of getting https://ui.shadcn.com/docs/components/base/hover-card - I decided to try a small but mighty solution before getting a bigger component.

@maxy-shpfy maxy-shpfy marked this pull request as ready for review February 4, 2026 11:40
@maxy-shpfy maxy-shpfy requested a review from a team as a code owner February 4, 2026 11:40
@maxy-shpfy maxy-shpfy requested a review from Mbeaulne February 4, 2026 12:02
@maxy-shpfy maxy-shpfy force-pushed the 02-04-feat_show_component_details_on_list_item_hover branch from 16bb61b to 21c01b4 Compare February 19, 2026 05:08
Comment on lines +1 to +13
export const debounce = <F extends (...args: Parameters<F>) => ReturnType<F>>(
func: F,
waitFor: number,
) => {
let timeout: ReturnType<typeof setTimeout>;

const debounced = (...args: Parameters<F>) => {
clearTimeout(timeout);
timeout = setTimeout(() => func(...args), waitFor);
};

return debounced;
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Re: lines +1 to +14]

Likely for another PR, but there are likely a few places in our code that this would work.

See this comment inline on Graphite.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We have a useDebouncedState hook but it might be a bit much for this specific use case

Copy link
Collaborator

@camielvs camielvs left a comment

Choose a reason for hiding this comment

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

I'm not a fan of the UI of the popover. It feels... flat? I won't block though, we can iterate later.

image.png

You may also want to look into the failing e2e tests before merging.

@maxy-shpfy maxy-shpfy force-pushed the 02-04-feat_show_component_details_on_list_item_hover branch from 21c01b4 to 617d59d Compare February 19, 2026 19:05
Copy link
Collaborator Author

maxy-shpfy commented Feb 19, 2026

Merge activity

  • Feb 19, 7:07 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 19, 7:08 PM UTC: @maxy-shpfy merged this pull request with Graphite.

@maxy-shpfy maxy-shpfy merged commit 9192296 into master Feb 19, 2026
7 of 8 checks passed
@maxy-shpfy maxy-shpfy deleted the 02-04-feat_show_component_details_on_list_item_hover branch February 19, 2026 19:08
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