Skip to content

feat(mod): gate tutorial-prompt nudge on the playground-tutorial.dot app#384

Merged
UtkarshBhardwaj007 merged 1 commit into
mainfrom
feat/tutorial-prompt-hint
Jun 13, 2026
Merged

feat(mod): gate tutorial-prompt nudge on the playground-tutorial.dot app#384
UtkarshBhardwaj007 merged 1 commit into
mainfrom
feat/tutorial-prompt-hint

Conversation

@UtkarshBhardwaj007

Copy link
Copy Markdown
Member

What

The post-mod Next steps block prints a step 2 of the form:

2. edit with claude (prompt: "start tutorial")

Previously the (prompt: "start tutorial") bracket appeared whenever the user started a quest track. This PR hardcodes it to appear only when modding playground-tutorial.dot.

How

  • New self-contained module src/commands/mod/tutorialPromptHint.ts holds the hardcoded playground-tutorial.dot domain and exports shouldShowTutorialPrompt({ domain, startedTutorial }) (returns true only for that domain; startedTutorial is accepted but ignored so the call site keeps threading it through).
  • src/commands/mod/index.ts feeds editWithClaudeStep from shouldShowTutorialPrompt(...) instead of startedTutorial.
  • Unit tests in tutorialPromptHint.test.ts.

The hardcode is deliberately isolated so it can be reverted in one step: delete the module + test and pass startedTutorial straight to editWithClaudeStep.

Verification

pnpm typecheck, pnpm format:check, pnpm lint:license, and the mod tests all pass. Changeset included.

The post-mod "Next steps" block now shows the (prompt: "start tutorial")
nudge in step 2 only when modding playground-tutorial.dot, instead of
whenever a quest track was started. The hardcoded domain check lives in
its own tutorialPromptHint module so it can be removed in one go.
@UtkarshBhardwaj007 UtkarshBhardwaj007 merged commit 600faed into main Jun 13, 2026
19 of 20 checks passed
@UtkarshBhardwaj007 UtkarshBhardwaj007 deleted the feat/tutorial-prompt-hint branch June 13, 2026 15:13
@github-actions

Copy link
Copy Markdown
Contributor

Dev build ready — try this branch:

curl -fsSL https://raw.githubusercontent.com/paritytech/playground-cli/main/install.sh | VERSION=dev/feat/tutorial-prompt-hint bash

@github-actions

Copy link
Copy Markdown
Contributor

E2E Test Pass · ❌ FAIL

Tag: e2e-ci-pr · Branch: feat/tutorial-prompt-hint · Commit: d75d80e · Run logs

Cell Result Time
pr-deploy-frontend ✅ PASS 9m02s
pr-install ✅ PASS 0m53s
pr-deploy-cdm ✅ PASS 3m50s
pr-deploy-foundry ✅ PASS 0m46s
pr-login-session ✅ PASS 1m51s
pr-mod ✅ PASS 1m17s
pr-preflight ❌ FAIL 8m07s
${{ matrix.cell }} ⏭️ SKIP 0m-1s
${{ matrix.cell }} ⏭️ SKIP 0m-1s

Sentry traces: view spans for this run

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