Skip to content

feat(thread): tooltips explaining collapsed tool-call chip icons#2739

Merged
MattPua merged 2 commits into
mainfrom
posthog-code/tool-chip-icon-tooltips
Jun 17, 2026
Merged

feat(thread): tooltips explaining collapsed tool-call chip icons#2739
MattPua merged 2 commits into
mainfrom
posthog-code/tool-chip-icon-tooltips

Conversation

@MattPua

@MattPua MattPua commented Jun 17, 2026

Copy link
Copy Markdown
Member

Problem:

  • robot had mini icons to explain the type of work it did, but it wasn't always clear what exactly that work was.

  • Adds hover tooltips to each icon in a collapsed tool-call chip, explaining what it means (terminal → "Ran terminal commands", robot → "Spawned a subagent", etc.)

  • conversationThreadConfig.ts: new labelForIconKey(key) label map

  • ToolCallGroupChip.tsx: wrap each icon in the existing Tooltip primitive

CleanShot 2026-06-17 at 14 51 31@2x CleanShot 2026-06-17 at 14 51 40@2x

Created with PostHog Code

Each icon in a collapsed tool-call group chip now has a tooltip
describing what it means (e.g. terminal → "Ran terminal commands",
robot → "Spawned a subagent").

Generated-By: PostHog Code
Task-Id: 9fd8d7c6-d3d6-4495-a94a-9f24088530fe
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 06c94f1.

@MattPua MattPua requested a review from a team June 17, 2026 18:47
GroupIconEntry.key is now GroupIconKey ("subagent" | "mcp" |
kind:${CodeToolKind}) instead of string, so the label map and
addIcon calls are checked at compile time.

Generated-By: PostHog Code
Task-Id: 9fd8d7c6-d3d6-4495-a94a-9f24088530fe
@charlesvien charlesvien added the Stamphog This will request an autostamp by stamphog on small changes label Jun 17, 2026 — with Graphite App

@github-actions github-actions 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.

Pure UI enhancement wrapping existing icon renders in tooltips. Narrows a loose string key to a typed GroupIconKey union, adds a label lookup function, and uses an internal Tooltip primitive — all confined to @posthog/ui. No logic, API contracts, or data models are touched.

@MattPua MattPua enabled auto-merge (squash) June 17, 2026 18:52
@MattPua MattPua merged commit 36d5ec5 into main Jun 17, 2026
26 checks passed
@MattPua MattPua deleted the posthog-code/tool-chip-icon-tooltips branch June 17, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants