Skip to content

fix(sessions): shrink resource chips and handle overflow#2619

Open
adboio wants to merge 1 commit into
mainfrom
posthog-code/shrink-resource-chips
Open

fix(sessions): shrink resource chips and handle overflow#2619
adboio wants to merge 1 commit into
mainfrom
posthog-code/shrink-resource-chips

Conversation

@adboio

@adboio adboio commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The "PostHog resources used" chips above the composer were a bit too large relative to the surrounding UI, and a long list of resources had no graceful handling — it could wrap across multiple rows and crowd the composer.

Why: Direct feedback from Michael that the bar "is really nice btw, although the buttons and text are a bit too large relative to the UI nearby" — plus a request to handle the case where there are too many chips and they might overflow.

Changes

  • Shrunk the chips and label: text 12px11px, chip icons 1211, inter-chip gap 21.
  • Graceful overflow: chips collapse past a max (6) behind a +N more badge that toggles to Show less, long labels truncate, and the row is clipped so it can never push wider than the chat content width.
  • Preserved existing behavior (per-product icons, clickable docs links, placement mirroring PlanStatusBar).

How did you test this?

  • biome lint on the changed file — clean.
  • pnpm build (full topological build) succeeded, then pnpm --filter @posthog/ui typecheck — no errors in the changed file.
  • Did not run the app / Storybook in this environment.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code from a Slack thread

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

React Doctor could not complete this scan.

No React dependency found in /tmp/react-doctor-baseline-rI5JBW/package.json. Add "react" to dependencies (or peerDependencies) and re-run.

Reviewed by React Doctor for commit e240eb2.

@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix(sessions): shrink resource chips and..." | Re-trigger Greptile

Shrink the "PostHog resources used" chips so they sit better with nearby UI:
label/badge text 12px -> 11px, chip icons 12 -> 11, gap 2 -> 1.

Handle long lists gracefully: collapse chips past a max behind a "+N more"
toggle, truncate long labels, and clip the row so the bar can never blow out
above the composer.

Generated-By: PostHog Code
Task-Id: c51a17de-d847-49bc-aa12-3798ca33288d
@adboio adboio force-pushed the posthog-code/shrink-resource-chips branch from c9fb62f to e240eb2 Compare June 12, 2026 20:05

adboio commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@adboio adboio marked this pull request as ready for review June 12, 2026 20:05
@adboio adboio requested a review from a team June 12, 2026 20:05
@greptile-apps

greptile-apps Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "fix(sessions): shrink resource chips and..." | Re-trigger Greptile

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.

1 participant