Skip to content

Ask players why they stop (early-exit card + Floor 5 survey) - #82

Merged
kevsaj merged 2 commits into
mainfrom
player-why-survey
Nov 24, 2026
Merged

kevsaj merged 2 commits into
mainfrom
player-why-survey

Conversation

@kevsaj

@kevsaj kevsaj commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Requested by Kevin · project thread

What

Two small questions so we learn why players stop, sent to the existing Feedback tab with the floor attached.

  1. "Quick one: what stopped you?" card on the tower map. Shows when a player leaves one of Tower 1's Floors 1–5 for the map (back button or Android Back) without ever clearing it. Taps: Confusing / Boring / Too hard / Phone trouble / Just busy, then an optional note and Send. Shown once per player, skippable in one tap, not a dialog (the map stays usable), and never on a later launch.
  2. "Help shape LoopBot?" link on the results card from Tower 1 Floor 5 on, until answered once. Opens a sheet: how fun 1–5, keep playing Yes/Maybe/No, what would make it better (optional).

Both are hidden when anonymous stats are off (or the build has no endpoint). English + French.

How it lands in the sheet

Rows in Feedback with mood why-stop or survey, e.g.

  • why-stop · t1-f01 · Stopped because: Confusing | Not sure what the arrow means
  • survey · t1-f05 · Fun 4/5 | Keep playing: Yes | Better: More music

The tapped answers are always written into the message, so the Code.gs already deployed works as is (no redeploy needed). Each one also triggers the usual feedback email.

Files

  • src/survey/index.ts rules + sending, src/survey/SurveyCards.tsx the card and sheet, src/survey/survey.test.ts
  • App.tsx (map card on floor → map), FloorScreen.tsx / ResultsCard.tsx (link + sheet), styles.css (tokens only), fr/ui.json
  • No changes to floor content or onboarding.

Testing

  • npx vitest run: 31 files, 2750 tests pass; tsc -b clean.
  • Playwright on a 390×844 phone (EN + FR) with a stubbed endpoint: both flows send the payloads above. Screenshots in the project's loopbot-why-stop/ folder.

Generated by Claude Code

Leaving one of Tower 1's first five floors for the map without ever
clearing it shows a small card once: what stopped you? After Floor 5 the
results card links to three quick taps. Both go to the Feedback tab via
the existing telemetry endpoint with the floor attached, only when stats
are on. English and French.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnC1d1KWTaiw6tfpfrqP98
@kevsaj kevsaj self-assigned this Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HnC1d1KWTaiw6tfpfrqP98
@kevsaj
kevsaj merged commit ac8b051 into main Nov 24, 2026
3 checks passed
@kevsaj
kevsaj deleted the player-why-survey branch November 24, 2026 13:06
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.

2 participants