Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/store/src/cli/services/store/info/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,11 @@ describe('getStoreInfo', () => {
id: 'gid://shopify/Shop/123',
displayName: 'Lavender Candles',
subdomain: SHOP,
adminUrl: 'https://admin.shopify.com/store/shop',
accessUrl: 'https://app.shopify.com/auth/preview-store?token=fresh-access-token',
saveUrl: 'https://admin.shopify.com/store-transfer/accept/claim-token',
})
// The admin URL doesn't resolve for an unclaimed preview store, so it's deliberately omitted.
expect(result.adminUrl).toBeUndefined()
})

test('prefers BP when store auth exists and BP can resolve the store', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/cli/services/store/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ function buildPreviewStoreResult(args: {
previewStoreUrls: PreviewStoreUrls
}): StoreInfoResult {
const {store, previewSession, previewStoreUrls} = args
// The admin URL is intentionally omitted: it doesn't resolve for an unclaimed preview store yet.
const fields: Partial<StoreInfoResult> = {
id: buildShopGid(previewSession.preview.shopId),
displayName: previewSession.preview.name,
adminUrl: buildAdminUrl(extractMyshopifyHandle(store)),
accessUrl: previewStoreUrls.accessUrl,
saveUrl: previewStoreUrls.saveUrl,
}
Expand Down
Loading