TypeScript
docs: composer banner guidance names a consumer that still exists (#28276)
Victor Vogelc9f47c18ae0c
diff --git a/.macroscope/check-run-agents/ui-consistency.md b/.macroscope/check-run-agents/ui-consistency.mdindex 047dafbdd4b..905823d1d1a 100644--- a/.macroscope/check-run-agents/ui-consistency.md+++ b/.macroscope/check-run-agents/ui-consistency.md@@ -44,7 +44,7 @@ The reference for how this codebase wants UI built is the composer banner system- `ComposerBanner.tsx` exports one object of small slot components (`Root`, `Row`, `Icon`, `Content`, `Actions`, `Dismiss`, `Children`, and so on). Each slot owns its own Tailwind classes, exposes a `data-slot` attribute, takes `className` and spreads the rest of its props, and uses `cn` so callers can adjust without overriding. Variants and density are props on `Root`, not ad hoc class strings at call sites. Where a slot needs a real control it renders `Button` from `ui/` rather than a styled `<button>`.- `ComposerBannerStack.tsx` composes those slots into the ordered stack and owns only stack behavior (priority, expand and collapse, dismiss transitions).-- Consumers such as `ComposerActivityStatus.tsx`, `ComposerStashBadge.tsx`, and `ComposerPlanFollowUpBanner.tsx` are a few lines of `<ComposerBanner.Row><ComposerBanner.Icon/><ComposerBanner.Content>…` with no styling of their own.+- Consumers such as `ComposerPlanFollowUpBanner.tsx` are a few lines of `<ComposerBanner.Row><ComposerBanner.Icon/><ComposerBanner.Content>…` and style only their own content.Hold new and changed UI to that shape:diff --git a/docs/internals/web-ui.md b/docs/internals/web-ui.mdindex 13b7d9df99f..c54a3802be9 100644--- a/docs/internals/web-ui.md+++ b/docs/internals/web-ui.md@@ -31,8 +31,8 @@ The composer banners are the reference.renders `Button`.- [`ComposerBannerStack.tsx`](../../apps/web/src/components/chat/ComposerBannerStack.tsx) composesthe slots and owns only stack behavior: priority, expand and collapse, dismiss transitions.-- Consumers are a few lines of slots, and the slots carry the styling:- [`ComposerActivityStatus.tsx`](../../apps/web/src/components/chat/ComposerActivityStatus.tsx).+- Consumers are a few lines of slots, and the slots carry the banner styling:+ [`ComposerPlanFollowUpBanner.tsx`](../../apps/web/src/components/chat/ComposerPlanFollowUpBanner.tsx).Build new UI the same way. Compose or extend a component instead of copying its markup and classes.When a call site repeats a treatment another one already uses, make it a variant or a slot on the