Skip to content

Move preview store name into card body instead of a single-row table#7925

Merged
amcaplan merged 1 commit into
mainfrom
preview-store-created-card-body
Jun 25, 2026
Merged

Move preview store name into card body instead of a single-row table#7925
amcaplan merged 1 commit into
mainfrom
preview-store-created-card-body

Conversation

@amcaplan

@amcaplan amcaplan commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What

When a preview store is created, the success card rendered the store name in a one-row table:

╭─ success ───────────────────────╮
│  Store created                  │
│                                 │
│  Name  Lavender Candles         │
│                                 │
│  Your Shopify store is ready... │
│  ...                            │
╰─────────────────────────────────╯

A single-row table looks awkward. This folds the name into the body copy instead, keeping the Store created title:

╭─ success ──────────────────────────────────────╮
│  Store created                                 │
│                                                │
│  Your Shopify store "My Store" is ready. This  │
│  store is temporary. Create a free Shopify     │
│  account to save it and start selling.         │
│                                                │
│  Next steps                                    │
│    • ...                                       │
╰────────────────────────────────────────────────╯

Why

Per the design discussion: keep the title de-emphasized so auto-generated names (e.g. My Store) don't get title-level emphasis, and surface the name in the less-emphasized body text instead.

Changes

  • index.ts: result message now interpolates the store name — Your Shopify store "<name>" is ready. ... (flows into both text and JSON output).
  • result.ts: removed the single-row tabularData section; Store created headline unchanged.
  • Updated tests for the new wording.

No changeset — preview-store work isn't public yet.

🤖 Generated with Claude Code

The "Store created" card showed the store name in a one-row table, which
looks awkward. Fold the name into the body copy (Your Shopify store "<name>"
is ready...) so it reads naturally and stays less emphasized — important
since auto-generated names like "My Store" would look odd in the title.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jun 25, 2026
@amcaplan amcaplan marked this pull request as ready for review June 25, 2026 10:15
@amcaplan amcaplan requested a review from a team as a code owner June 25, 2026 10:15
Copilot AI review requested due to automatic review settings June 25, 2026 10:15

Copilot AI 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.

Pull request overview

This PR refines the preview-store creation success output by removing the awkward single-row “Name” table and instead incorporating the store name directly into the success message body copy, while keeping the “Store created” headline unchanged.

Changes:

  • Interpolates the preview store name into the returned message string (affecting both text and JSON outputs).
  • Removes the tabularData custom section that previously rendered the store name as a one-row table.
  • Updates service/presenter tests to assert the new wording and section structure.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/store/src/cli/services/store/create/preview/result.ts Drops the single-row tabular “Name” section; renders the success card message body directly.
packages/store/src/cli/services/store/create/preview/result.test.ts Updates presenter expectations for the new message text and removed table section.
packages/store/src/cli/services/store/create/preview/index.ts Updates the success message to include the created store name via interpolation.
packages/store/src/cli/services/store/create/preview/index.test.ts Updates the service-level expected message string to match the new wording.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amcaplan amcaplan added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 6c1f62a Jun 25, 2026
28 of 30 checks passed
@amcaplan amcaplan deleted the preview-store-created-card-body branch June 25, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants