Conversation
- New InfoTooltip component (hover-based, no external deps) - (i) icon appears next to Running status badge - Tooltip explains what Running means vs Idle/Stopped - Auto-positions above/below based on viewport space
There was a problem hiding this comment.
Pull request overview
Adds a lightweight hover tooltip UI to clarify what the Running agent status means in the dashboard.
Changes:
- Introduces a new
InfoTooltipUI component with simple above/below positioning. - Adds an
(i)tooltip trigger next to the Running status badge inAgentsTab. - Expands the “Running” status description text to explain behavior vs other statuses and update timing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
frontend/src/components/ui/info-tooltip.tsx |
New tooltip component used to display explanatory text on hover. |
frontend/src/app/dashboard/components/AgentsTab.tsx |
Renders the tooltip trigger next to the “Running” status and updates tooltip copy. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
+34
to
+41
| {visible && ( | ||
| <div | ||
| ref={tooltipRef} | ||
| className={`absolute z-50 w-64 px-3 py-2 text-xs leading-relaxed text-foreground bg-popover border border-border rounded-lg shadow-lg ${ | ||
| position === "top" | ||
| ? "bottom-full left-1/2 -translate-x-1/2 mb-2" | ||
| : "top-full left-1/2 -translate-x-1/2 mt-2" | ||
| }`} |
Comment on lines
+16
to
+20
| useEffect(() => { | ||
| if (visible && triggerRef.current) { | ||
| const rect = triggerRef.current.getBoundingClientRect(); | ||
| // If too close to top, show below | ||
| setPosition(rect.top < 80 ? "bottom" : "top"); |
Comment on lines
+1
to
+4
| "use client"; | ||
|
|
||
| import { useState, useRef, useEffect } from "react"; | ||
|
|
Comment on lines
+25
to
+30
| <span | ||
| ref={triggerRef} | ||
| className={`relative inline-flex items-center ${className}`} | ||
| onMouseEnter={() => setVisible(true)} | ||
| onMouseLeave={() => setVisible(false)} | ||
| > |
- ARIA: tooltip always rendered, toggled via CSS opacity + aria-hidden - Positioning: useLayoutEffect with proper viewport space comparison - Style: match project conventions (no semicolons, cn() helper) - A11y: trigger is now a <button> with onFocus/onBlur support
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7
Changes
InfoTooltipcomponent — lightweight, hover-based, no external deps(i)icon appears next to the Running status badge in the agents listScreenshot
The
(i)icon sits right after the Running badge. On hover, a tooltip explains: