Skip to content

Conversation

@daniel-lxs
Copy link
Member

@daniel-lxs daniel-lxs commented Jun 27, 2025

Description

This PR fixes the checkpoint popover that stopped opening when clicked.

Problem

The StandardTooltip component was incorrectly wrapping the PopoverTrigger, which prevented the popover from opening. This was introduced in PR #5098 when standardizing tooltip delays across the application.

Solution

Moved StandardTooltip inside PopoverTrigger (with asChild prop) so that PopoverTrigger can properly control its child element while still providing tooltip functionality.

Changes

  • Reordered components in CheckpointMenu.tsx to place StandardTooltip inside PopoverTrigger rather than wrapping it
  • This pattern is consistent with other components like ShareButton

Testing

  • Verified checkpoint popover now opens when clicked
  • Verified tooltip still appears on hover
  • Checked other components using StandardTooltip with PopoverTrigger - no other instances of this issue found

Related Issues

Fixes #5173
Regression from #5098


Important

Fixes popover opening issue in CheckpointMenu.tsx by reordering StandardTooltip and PopoverTrigger.

  • Behavior:
    • Fixes popover not opening in CheckpointMenu.tsx by moving StandardTooltip inside PopoverTrigger.
    • Ensures PopoverTrigger can control its child element while maintaining tooltip functionality.
  • Testing:
    • Verified popover opens on click and tooltip appears on hover.
    • Checked other components using StandardTooltip with PopoverTrigger for similar issues.

This description was created by Ellipsis for 7690264. You can customize this summary. It will automatically update as commits are pushed.

…flict

The StandardTooltip component was incorrectly wrapping the PopoverTrigger,
which prevented the popover from opening. This was introduced in PR #5098
when standardizing tooltip delays.

The fix moves StandardTooltip inside PopoverTrigger (with asChild prop)
so that PopoverTrigger can properly control its child element while still
providing tooltip functionality.

This pattern is consistent with other components like ShareButton.
@daniel-lxs daniel-lxs requested review from cte, jr and mrubens as code owners June 27, 2025 15:19
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jun 27, 2025
@delve-auditor
Copy link

delve-auditor bot commented Jun 27, 2025

No security or compliance issues detected. Reviewed everything up to 7690264.

Security Overview
  • 🔎 Scanned files: 1 changed file(s)
Detected Code Changes
Change Type Relevant files
Bug Fix ► CheckpointMenu.tsx
    Fix checkpoint popover not opening by moving StandardTooltip inside PopoverTrigger

Reply to this PR with @delve-auditor followed by a description of what change you want and we'll auto-submit a change to this PR to implement it.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 27, 2025
@mrubens mrubens merged commit b019038 into main Jun 27, 2025
21 of 22 checks passed
@mrubens mrubens deleted the fix-checkpoint-popover-tooltip branch June 27, 2025 15:22
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 27, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jun 27, 2025
daniel-lxs added a commit that referenced this pull request Jun 28, 2025
Fixes popover not opening when StandardTooltip wraps PopoverTrigger.
Follows the same pattern as PR #5192 for CheckpointMenu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Checkpoints functionality has disappeared

3 participants