Skip to content

feat(cli): messaging-shell page template — messaging archetype column frame - #3323

Merged
cixzhang merged 2 commits into
mainfrom
messaging-shell-template
Jul 11, 2026
Merged

cixzhang merged 2 commits into
mainfrom
messaging-shell-template

Conversation

@thedjpetersen

Copy link
Copy Markdown
Contributor

Why

Part of the frame-first template series (#3315, #3316, #3322). The messaging archetype (rail | sidebar | stream | thread panel) is the layout where generated code most often falls back to a padded card column, and it previously had no reference template — product apps built on the system had to hand-roll the entire multi-column frame.

What

packages/cli/templates/pages/messaging-shell/ — a team-chat shell:

  • Column frame rail 68 | sidebar 260 | message stream (fill) | thread panel 340 with the responsive contract documented at the frame root (>1024px all four columns; ≤1024px thread panel hidden; ≤768px sidebar hidden, stream keeps full width) via useMediaQuery
  • Built on the Chat family: ChatMessageList/ChatMessage/ChatMessageBubble with grouped bubbles, ChatSystemMessage date divider, ChatComposer (channel + thread reply)
  • Sidebar as List/ListItem rows with unread counts (Badge for counts) and presence AvatarStatusDot; workspace rail of IconButtons with Tooltips — dense rows, zero Cards
  • Thread panel via LayoutPanel; deterministic fixtures throughout
  • Adds 'Shell - Messaging' to TemplateCategory in core docs-types

Testing

  • pnpm typecheck:template-docs pass; sandbox sync + tsc --noEmit: 0 messaging errors
  • astryx template messaging-shell --skeleton renders the 68/260/fill/340 frame
  • vitest template command/api + xle suites: 52/52 pass

Note: committed with the lint-staged steps run manually (eslint --fix, prettier, pnpm check:repo — all clean) because the npm registry was returning 503s for the husky npx lint-staged fetch at commit time.

… frame

Adds a Slack-style messaging shell page template demonstrating the
frame-first layout recipe for the messaging app archetype.

Frame: workspace rail 68px | channel sidebar 260px | message stream
(fill) | thread panel 340px, composed with Layout/LayoutPanel and the
Chat component family (ChatLayout, ChatMessageList, ChatMessage,
ChatMessageBubble, ChatComposer, ChatSystemMessage).

Responsive contract: >1024px full four-column frame; <=1024px thread
panel hidden; <=768px sidebar also hidden (rail + stream keep full
width), implemented via useMediaQuery.

Container policy: dense rows, zero Cards — channels/DMs are
List/ListItem rows, presence uses AvatarStatusDot/StatusDot, and Badge
appears only for unread counts.

Fixtures are deterministic: fixed ISO timestamps rendered via
Timestamp, no Date.now()/Math.random().

Also adds the 'Shell - Messaging' entry to the TemplateCategory union
in packages/core/src/docs-types.ts and a changeset for cli/core.

Note: pre-commit hook's npx lint-staged could not fetch from the npm
registry (503 outage); its exact steps (eslint --cache --fix,
prettier --write, pnpm check:repo) were run manually and passed.
@vercel

vercel Bot commented Jul 1, 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, Comment Jul 11, 2026 4:55am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026 •

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

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


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

displayName: 'Messaging Shell',
description:
'Slack-style messaging shell with a four-column frame (workspace rail, channel sidebar, message stream, thread panel) built on the Chat component family — dense rows, zero cards.',
isReady: true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swap to false for now

@cixzhang cixzhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swapped isReady to false as commented. Approving to land as not-ready.

@cixzhang
cixzhang enabled auto-merge (squash) July 11, 2026 04:52
@cixzhang
cixzhang merged commit 55edc69 into main Jul 11, 2026
16 checks passed
github-actions Bot added a commit that referenced this pull request Jul 11, 2026

This branch was successfully deployed

1 active deployment
Preview — 63d22c2d Deployed Jul 11, 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. needs:code-review High-risk change (new package/component/API) — needs human code review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants