Skip to content

feat: add info tooltip for Running agent status#69

Closed
GalDayan wants to merge 2 commits intomainfrom
issue-7
Closed

feat: add info tooltip for Running agent status#69
GalDayan wants to merge 2 commits intomainfrom
issue-7

Conversation

@GalDayan
Copy link
Copy Markdown
Contributor

Closes #7

Changes

  • New InfoTooltip component — lightweight, hover-based, no external deps
  • (i) icon appears next to the Running status badge in the agents list
  • Tooltip explains what Running means vs Idle/Stopped/etc and when status updates
  • Auto-positions above/below based on viewport space

Screenshot

The (i) icon sits right after the Running badge. On hover, a tooltip explains:

Running means this agent has an active session with messages in the last few minutes. Unlike Idle (no active sessions) or Stopped (process not running), a Running agent is actively processing tasks. Status updates automatically based on heartbeat activity.

- 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
Copilot AI review requested due to automatic review settings March 18, 2026 20:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a lightweight hover tooltip UI to clarify what the Running agent status means in the dashboard.

Changes:

  • Introduces a new InfoTooltip UI component with simple above/below positioning.
  • Adds an (i) tooltip trigger next to the Running status badge in AgentsTab.
  • 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
@GalDayan
Copy link
Copy Markdown
Contributor Author

Closing as duplicate of #77 (most recent, cleanest scope for Issue #7 tooltip). Triage by @dOr (PM) during 19-day blocker — see memory/tasks.md for full duplicate PR map.

@GalDayan GalDayan closed this Apr 15, 2026
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.

Add info tooltip explaining 'Running' agent status

2 participants