Skip to content

Apps tab — render tool.icons on tool list items #1264

Closed

Description

@cliffhall

Context

The MCP Tool type now carries an optional icons field. Both the Tools and Apps sidebars should render this icon when present. Today ToolListItem (clients/web/src/components/groups/ToolListItem/ToolListItem.tsx) only shows name and title.

The Apps spec lists AppListItem as a sibling component (v2_ux_storybook.md § 2.3a) but notes an alternative: fold icon support into ToolListItem and reuse it on the Apps screen.

Scope

Pick one path during implementation:

Option A — fold icons into ToolListItem (preferred if scope stays small)

  • Render tool.icons (size sm) when present.
  • Add WithIcon Storybook story.
  • Drop AppListItem from the Apps tab plan (use ToolListItem directly with the chevron affordance via a withChevron prop or a new variant).

Option B — keep AppListItem as a separate component

  • Implement AppListItem per the spec entry 2.3a.
  • Document why a separate component is warranted (e.g. icon rendering rules differ, chevron is always present, hover behavior, etc.).

Acceptance criteria

  • Both Tools and Apps sidebars render tool.icons consistently when present.
  • No raw hex colors; icon size uses theme tokens.
  • Storybook coverage for the icon and no-icon states.
  • Tests pass and coverage is ≥ 90%.

Dependencies

  • Coordinates with: Apps tab — AppListItem and AppDetailPanel groups (one of these issues should be deferred or merged depending on the chosen option).

Branch / Base

  • Base: v2/main
  • Label: v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

v2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions