Skip to content

fix(desktop): give bare-Composer story harnesses a full-width frame - #6308

Open
Mola-maker wants to merge 1 commit into
apache:mainfrom
Mola-maker:fix/storybook-composer-harness-width
Open

Mola-maker wants to merge 1 commit into
apache:mainfrom
Mola-maker:fix/storybook-composer-harness-width

Conversation

@Mola-maker

@Mola-maker Mola-maker commented Oct 26, 2026 •

Copy link
Copy Markdown

Summary

Fixes #5909.

The bare-Composer stories rendered the composer card at zero width. The issue blamed a missing --maka-reading-measure token, but the token resolves fine (800px). The real cause: the story harnesses put the composer form in a row-flex box, which shrink-wraps it to its padding. The fix wraps the composer in a width: 100% frame at those four harness sites, the same frame SkillDraftHarness already uses. No production code is touched. The stale comment blaming the token is corrected too.

Verification

  • Scoped Storybook build passes. All 24 stories in the 4 files measure a composer width of 800px at a 1280px viewport; before the fix, paste / slash-menu / resume measured 0px.
  • The new play assertion (card width > 100) fails before the fix and passes after.
  • biome check passes on all 3 changed files.
  • typecheck:stories: 4 pre-existing errors in packages/ui/src, none in the changed files. A full local Storybook build still fails on an unrelated missing generated file; CI runs the full suite.
  • Before/after screenshots of the paste story are attached below.

AI use

  • Generative tooling made a substantive contribution

Tool(s) and scope: Muse — reproduction (scoped Storybook build plus Playwright width measurement), the harness fix, and the regression assertion. The commit carries a Generated-by trailer.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above (Storybook rendering only; no production code changed)
shot2-product-composer-paste--paste-is-its-own-undo-step after-product-composer-paste--paste-is-its-own-undo-step

Fixes apache#5909. The row-flex harnesses shrink-wrapped the composer form to its padding, collapsing the card's min(800px, 100%) width to zero; the preview token itself resolves to 800px. Wrap the composer in a width:100% frame, the same frame SkillDraftHarness already uses, and correct the stale comment in composer-resume that blamed a missing token. Adds a width regression assertion to the paste story's first play.

Generated-by: Muse
@github-actions github-actions Bot added the effort/S Under 100 readable lines label Oct 26, 2026
@github-actions github-actions Bot added the stale No qualifying activity within the lifecycle policy window label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

This pull request has had no new commits for 30 days and has been marked stale. It will be closed in 7 days unless a new commit is pushed.

Comments do not reset this timer: only a new commit does. If the pull request is intentionally long-lived, a maintainer can apply the pinned label.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines stale No qualifying activity within the lifecycle policy window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(desktop): bare-Composer stories render collapsed — storybook preview misses --maka-reading-measure

1 participant