Skip to content

Cleanup: code style conventions, alphabetization, and file organization#178

Closed
laugharn wants to merge 8 commits intomainfrom
dan/cleanup-alphabetize
Closed

Cleanup: code style conventions, alphabetization, and file organization#178
laugharn wants to merge 8 commits intomainfrom
dan/cleanup-alphabetize

Conversation

@laugharn
Copy link
Copy Markdown
Contributor

@laugharn laugharn commented Apr 21, 2026

Summary

  • Rename cart slideover title from "Shopping Cart" to "Cart"
  • Alphabetize i18n JSON keys, named export specifiers, and string union type members across the template
  • Remove product-card barrel file (index.ts) and use direct imports
  • Rename primitives.tsx to components.tsx and establish naming convention for split files
  • Add <!-- BEGIN:vercel-shop-style --> code style block to AGENTS.md documenting conventions: alphabetization, no barrel files, client boundary placement, file organization, naming, Tailwind patterns
  • Document the comment-delineated block pattern in the docs site (using-a-coding-agent.mdx)

Test plan

  • pnpm format passes clean
  • pnpm lint passes with no new errors
  • pnpm build succeeds
  • Verify cart slideover shows "Cart" title in browser

🤖 Generated with Claude Code

laugharn and others added 3 commits April 21, 2026 17:20
Also alphabetize all i18n JSON keys (top-level sections and nested keys) in
en.json and en.d.json.ts.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sort export lists alphabetically in barrel files and UI component
trailing exports for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sort SocialPlatform and MenuItemType union members alphabetically.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

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

Project Deployment Actions Updated (UTC)
shop-docs Ready Ready Preview, Comment Apr 22, 2026 3:31pm
shop-template Ready Ready Preview, Comment, Open in v0 Apr 22, 2026 3:31pm

Replace all imports from @/components/product-card (barrel) with direct
imports from the specific source files: primitives, product-card, and
quick-add.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Document house style conventions: alphabetized exports/keys, no barrel
files, client boundary placement, naming, Tailwind patterns. Wrapped in
<!-- BEGIN:vercel-shop-style --> comments so downstream users can remove
if they disagree with the choices.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Explain the BEGIN/END marker pattern, why it exists (safe upgrades,
easy removal), and what each shipped block contains.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Keep sub-components in the same file as their consumer unless they need
different directives. Do not create primitives.tsx by default.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Rename product-card/primitives.tsx to components.tsx. Update AGENTS.md
file organization guidance: use components.tsx for directive-free
sub-components, client-components.tsx for client, server-components.tsx
for server.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@laugharn laugharn changed the title Cleanup: rename cart title and alphabetize codebase Cleanup: code style conventions, alphabetization, and file organization Apr 22, 2026
@laugharn laugharn closed this Apr 22, 2026
@laugharn laugharn deleted the dan/cleanup-alphabetize branch April 22, 2026 17:17
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