Skip to content

fix(webapp): restore admin debug tooltip on Tasks and Runs, make its IDs copyable#4332

Merged
samejr merged 10 commits into
mainfrom
samejr/restore-admin-shield-icon
Jul 22, 2026
Merged

fix(webapp): restore admin debug tooltip on Tasks and Runs, make its IDs copyable#4332
samejr merged 10 commits into
mainfrom
samejr/restore-admin-shield-icon

Conversation

@samejr

@samejr samejr commented Jul 22, 2026

Copy link
Copy Markdown
Member

Restores the debug panel on the Tasks and Runs pages, and makes the data it shows copyable.

Admin/impersonation only — no change for regular users, so there's no .server-changes

CleanShot 2026-07-22 at 12 05 27@2x

…IDs copyable

The admin-only debug tooltip (the shield icon in the page header) was
removed from the Tasks page in #3941 and had never been present on the
Runs list. Re-add `<AdminDebugTooltip />` to both pages' accessories so
it matches the other dashboard pages.

Also wrap the tooltip's identifier values (User ID, Org ID, Project ID,
Project ref, Environment ID) in `CopyableText` so admins can copy them
on hover, reusing the same copy-on-hover control used in table cells.
@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5af5b8c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The debug panel now uses a controlled popover with delayed close handling and renders identifiers through CopyableText. Copyable identifier displays were added across multiple environment and settings routes, and AdminDebugTooltip was added to the environment overview and development V2 runs headers.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description is missing the required issue link, checklist, testing, changelog, and screenshots sections from the template. Add the full template sections: Closes #..., checklist items, testing steps, changelog summary, and screenshots.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly states the main change: restoring the admin debug tooltip on Tasks and Runs and making IDs copyable.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch samejr/restore-admin-shield-icon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

samejr added 2 commits July 22, 2026 11:09
The copy button is absolutely positioned to the right of each value
(`-right-6`), which pushed it past the popover's right edge where
`overflow-y-auto` clipped it. Add right padding so it always shows.
…ns work

Radix tooltips enforce one-open-at-a-time globally (opening any tooltip
dispatches a document event that closes the others), so hovering a copy
button — which opens its own "Copy" tooltip — dismissed the debug panel.

Render the panel as a hover-triggered Popover instead. A popover holds
interactive content without closing, so copy-on-hover now works and the
panel stays open while you interact with it.
coderabbitai[bot]

This comment was marked as resolved.

The custom rows some pages add to the admin debug panel (Run/Deployment
IDs, trace id, env/org ids, image reference, region/branch ids, etc.)
were still plain text. Wrap the opaque identifiers in CopyableText across
those pages so they match the shared rows and can be copied on hover.

Enum/boolean/human-readable rows stay plain (Environment type/paused,
deployment Platform, plan name) and the Build Server link is left as-is.
Also drop a duplicated project ID that rendered twice in the env settings
panel.
coderabbitai[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

samejr added 3 commits July 22, 2026 12:29
…ad of a Popover

Add a hideTooltip prop to CopyableText that renders the copy control
without its own tooltip. The admin debug panel passes it on every copy
control, which removes the nested tooltip that was firing Radix's global
'one tooltip open at a time' close. With the root cause gone the panel
reverts from a Popover back to a plain Tooltip (no manual open/close
timer or effect needed).
@samejr
samejr merged commit 11d8a05 into main Jul 22, 2026
32 checks passed
@samejr
samejr deleted the samejr/restore-admin-shield-icon branch July 22, 2026 12:10
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