Skip to content

fix(storybook): use a size token Avatar still has in the Chat align story - #5381

Merged
cixzhang merged 1 commit into
mainfrom
chat-story-avatar-size
Aug 24, 2026
Merged

cixzhang merged 1 commit into
mainfrom
chat-story-avatar-size

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Problem

main is red, and it blocks the build job on every open PR:

stories/Chat.stories.tsx(632,43): error TS2322:
  Type '"small"' is not assignable to type 'AvatarSize | undefined'.

Avatar's named size scale became xsm | sm | md | lg | xl in #4140. The ChatMessageList align story landed after that in #3933 still using the old "small", so the two are individually fine and broken together.

build-storybook fails at its typecheck step, build is the aggregator that asserts it passed, and auto-merge stays blocked. Found it on #5379, which touches one test file and nothing else.

Change

One token: size="small" → size="sm". It is the only size="small" left in the repo, and every other Avatar in Chat.stories.tsx already uses "md".

Test plan

pnpm -F @astryxdesign/storybook typecheck — the TS2322 is gone. The TS2307s that remain locally are unbuilt workspace packages (@astryxdesign/vega, @astryxdesign/theme-neutral); CI builds those first, and this is the error it reported.

No changeset — Storybook is not published.

…tory

Avatar's named scale became `xsm | sm | md | lg | xl` (#4140); the align story
landed afterwards with `size="small"` (#3933), so `pnpm -F
@astryxdesign/storybook typecheck` fails on main and takes the `build` job with
it. Every open PR is blocked behind it.

Every other Avatar in the file uses a token from the current scale.
@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 24, 2026 1:39am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang merged commit 29be96d into main Aug 24, 2026
18 checks passed
github-actions Bot added a commit that referenced this pull request Aug 24, 2026
@github-actions
github-actions Bot deleted the chat-story-avatar-size branch August 24, 2026 04:19

This branch was successfully deployed

1 active deployment
Preview — 664a9b02 Deployed Aug 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant