Skip to content

feat(ui): Agents Library row — connectors first, composer skill icon, hover names - #298

Open
shubhamagarwal-create wants to merge 2 commits into
mainfrom
feat/agent-library-row-icons
Open

feat(ui): Agents Library row — connectors first, composer skill icon, hover names#298
shubhamagarwal-create wants to merge 2 commits into
mainfrom
feat/agent-library-row-icons

Conversation

@shubhamagarwal-create

@shubhamagarwal-create shubhamagarwal-create commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Polish for the Agents Library rows so the icon set matches the composer and the counts aren't ambiguous.

Changes (packages/trueforge-ui/src/atoms/AgentsLibrary.tsx)

  • Order: show Connectors (plug) first, then Skills — matching the composer's Connectors→Skills order.
  • Skill icon: use the composer's lightbulb icon instead of wrench. The wrench read as "tools," which was confusing next to the connector count.
  • Hover: reveal the actual connector/skill names on hover (e.g. "Connectors: exa, github", "Skills: web-artifacts-builder") via the shared Tooltip primitive — the same component the composer uses. Replaces the plain title attribute so it's styled and consistent, and it renders above the Agents Library modal.

Notes

  • Verified live: the tooltip renders correctly above the CenteredModal (no z-index/portal issue).
  • @truefoundry/trueforge-ui patch changeset included.
  • No behavior change beyond the row's presentation.

🤖 Generated with Claude Code


Note

Low Risk
Presentation-only UI in Agents Library rows; no auth, data, or selection behavior changes.

Overview
Agents Library list rows now match the composer’s Connectors → Skills layout and iconography.

Connector counts (plug) appear before skill counts. Skills use the lightbulb icon instead of wrench. Hovering either count shows a shared Tooltip with named lists (e.g. Connectors: github, Skills: paint) when names exist, with matching aria-label text. Tests assert the new labels.

Patch changeset for @truefoundry/trueforge-ui.

Reviewed by Cursor Bugbot for commit 174f640. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 174f640

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@truefoundry/trueforge-ui Patch
frontend Patch

Not sure what this means? Click here to learn what changesets are.

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

const skillsCount = spec?.skills?.length ?? 0;
const mcpCount = spec?.mcpServers?.length ?? 0;
const skillNames = (spec?.skills ?? []).map(s => (s as { name?: string }).name).filter(Boolean);
const mcpNames = (spec?.mcpServers ?? []).map(m => (m as { name?: string }).name).filter(Boolean);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unsafe mount name casts

Medium Severity

Connector and skill names are read via as { name?: string } on opaque runtime mounts. That silences typing instead of using a guard, and duplicates the existing draftMountsFromSpec helper the composer already uses for the same tooltip copy.

Fix in Cursor Fix in Web

Triggered by project rule: TrueForge review rules

Reviewed by Cursor Bugbot for commit 2171c2d. Configure here.

@shubhamagarwal-create
shubhamagarwal-create enabled auto-merge (squash) August 17, 2026 10:27

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 92b728f. Configure here.

<Icon name="lightbulb" className="size-3.5" />
{skillsCount}
</span>
</Tooltip>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tooltip overflows on long names

Low Severity

Connector and skill tooltips join every name with no truncation, while the shared Tooltip defaults to whitespace-nowrap. Agents with many mounts can produce a single long line that runs off-screen, unlike the composer tooltip which truncates after four names and allows wrapping.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 92b728f. Configure here.

@shubhamagarwal-create
shubhamagarwal-create force-pushed the feat/agent-library-row-icons branch from 92b728f to e7c2e34 Compare August 17, 2026 11:33
Shubham Agarwal and others added 2 commits August 18, 2026 11:22
… hover names

- Order the row counts as Connectors (plug) then Skills, matching the composer.
- Use the composer's `lightbulb` skill icon instead of `wrench` (which read as "tools").
- Show the actual connector/skill names on hover via the shared Tooltip primitive
  (renders above the Agents Library modal), replacing the plain title attribute.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The row now labels the counts with the connector/skill names ("Connectors: github",
"Skills: paint") instead of "N MCP servers" / "N skills".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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