Skip to content

Omit admin URL for preview stores in store info#7858

Merged
amcaplan merged 1 commit into
mainfrom
preview-store-omit-admin-url-in-store-info
Jun 19, 2026
Merged

Omit admin URL for preview stores in store info#7858
amcaplan merged 1 commit into
mainfrom
preview-store-omit-admin-url-in-store-info

Conversation

@amcaplan

Copy link
Copy Markdown
Contributor

What

shopify store info no longer surfaces an admin URL for preview stores.

Why

The admin URL doesn't resolve for an unclaimed preview store, so showing it is misleading. Preview stores already get their info from the locally stored session plus the claim/access URLs (they short-circuit before StoreInfoAdminShopQuery), so partnerDevelopment was never queried for them and needs no change here.

Changes

  • index.ts — drop adminUrl from buildPreviewStoreResult.
  • index.test.ts — update the preview-store assertion and explicitly assert adminUrl is omitted.

No changeset: preview stores aren't a public feature yet.

🤖 Generated with Claude Code

@amcaplan amcaplan requested a review from a team as a code owner June 18, 2026 16:36
@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 18, 2026

@alfonso-noriega alfonso-noriega 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.

small naming change, but otherwise every thing is perfect

subdomain: SHOP,
adminUrl: 'https://admin.shopify.com/store/shop',
accessUrl: 'https://app.shopify.com/auth/preview-store?token=fresh-access-token',
claimUrl: 'https://admin.shopify.com/store-transfer/accept/claim-token',

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.

lets refrase this to match the oficial new user facing save url

displayName: previewSession.preview.name,
adminUrl: buildAdminUrl(extractMyshopifyHandle(store)),
accessUrl: previewStoreUrls.accessUrl,
claimUrl: previewStoreUrls.claimUrl,

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.

same here, save url is the official term now

The admin URL doesn't resolve for an unclaimed preview store, so drop it
from the preview-store result. Preview stores already get their info from
the stored session + claim/access URLs (not StoreInfoAdminShopQuery), so
partnerDevelopment was never queried for them and needs no change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amcaplan amcaplan force-pushed the preview-store-omit-admin-url-in-store-info branch from ffb7e3b to 468b1b6 Compare June 19, 2026 03:44
@amcaplan amcaplan force-pushed the preview-store-access-url-in-store-info branch from 309aaa6 to 8491e6d Compare June 19, 2026 03:44

amcaplan commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

Base automatically changed from preview-store-access-url-in-store-info to main June 19, 2026 04:24
@amcaplan amcaplan added this pull request to the merge queue Jun 19, 2026
Merged via the queue into main with commit 25beb42 Jun 19, 2026
28 of 51 checks passed
@amcaplan amcaplan deleted the preview-store-omit-admin-url-in-store-info branch June 19, 2026 04:30
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.

2 participants