Skip to content

Proto: Create dev stores from app dev - #8323

Draft
dmerand wants to merge 1 commit into
mainfrom
dlm-app-dev-inline-store-creation
Draft

Proto: Create dev stores from app dev#8323
dmerand wants to merge 1 commit into
mainfrom
dlm-app-dev-inline-store-creation

Conversation

@dmerand

@dmerand dmerand commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Let interactive app dev create a development store inline from store selection, including store name and plan prompts.
  • Share development-store creation, plan taxonomy, polling, and Business Platform token refresh through @shopify/organizations; keep store create dev behavior and output modes.
  • Return creation metadata to app dev, wait for the created store to appear, render success, and enforce transfer-disabled stores.

Behavior

  • Interactive app-management selection always offers Create a new dev store when creation is available, including when one store exists; an empty list creates directly, and the choice remains during search.
  • Noninteractive selection never prompts or creates. Without an explicit or cached store, it fails with app dev --store <store-domain> guidance. Explicit and cached dev_store_url selection continues to work.
  • Partners retain the existing Developer Dashboard link and reload fallback.
  • App-management cap filtering reads Organization.devStoreCapReached. A capped organization hides creation; with no existing stores it receives a cap error and --store guidance. Request or field errors fail open.

Cap filtering depends on shop/world PR #944713 (open at d55a955954a7eedf03cad9ce2892c1c9c47ca5f7), which exposes Organization.devStoreCapReached: Boolean!. Deploy that dependency before relying on cap enforcement; until then, the CLI's fail-open behavior keeps creation available.

Verification

  • git diff --check
  • JavaScript, changed TypeScript syntax, project JSON, and generated-file/config sanity checks pass.
  • Full Vitest, Nx type-check/lint, and GraphQL codegen could not run because this worktree has no installed dependencies (pnpm exec vitest and pnpm exec nx report command not found). CI should run these checks after the World schema dependency is available.

Assisted-By: devx/847628e2-86d4-4bde-af0b-ba035ed61865
@github-actions github-actions Bot added the Area: @shopify/app @shopify/app package issues label Aug 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

We found no new type declarations in this PR

Existing type declarations

packages/cli-kit/dist/public/node/monorail.d.ts
@@ -83,6 +83,7 @@ export interface Schemas {
             cmd_dev_preview_url_opened?: Optional<boolean>;
             cmd_dev_graphiql_opened?: Optional<boolean>;
             cmd_dev_dev_preview_toggle_used?: Optional<boolean>;
+            cmd_dev_store_created?: Optional<boolean>;
             cmd_create_app_template?: Optional<string>;
             cmd_create_app_template_url?: Optional<string>;
             cmd_deploy_flag_message_used?: Optional<boolean>;

@dmerand dmerand changed the title Create dev stores from app dev Proto: Create dev stores from app dev Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/app @shopify/app package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant