No more repeat trees, a daily-puzzle celebration, and a real logo #3

Merged
cmoriarty merged 6 commits from osf/207-user-feedback into main 2026-12-02 14:56:26 -05:00
Owner

Players reported that practice kept showing the same tree, a correct daily puzzle ended on a flat screen, and reopening a finished day showed a bare notice with a confusing line about replays. Practice now deals from a shuffled bag of a catalog grown to 29 species, so nothing repeats within a pass, and rarer trees earn more points. A correct daily answer gets a confetti celebration with time, rarity and hint stats; a finished day reopens as a photo review of your result. A drawn logo leads every header. One puzzle per day stays; replays still earn nothing.

Checks: 2 things to look at

  • Code review: 6 notes left, 4 fixed
  • Tests it wrote were run: 1 test file the change wrote ran in no lane
    • e2e/smoke.spec.ts
  • CI: no CI ran on the checked code: the project has no CI (no workflow under .forgejo/workflows, .gitea/workflows or .github/workflows); what only CI tests went unverified
  • Passed: Scenarios with proof: 27 of 27 have a passing test or a look; Tests: 75 passed in 2 lanes; Seen working: 11 of 11 looks passed, and a session was played start to end; Tasks: 15 of 15 done; Same code: The tests and screenshots are of what merges

Not done

  • Rarity tiers are a recognizability judgement: worth a skim of the catalog in src/data/species.ts to check no tree sits in the wrong tier.
  • The ten new species' photo pairs state their source page and license in the catalog data; a person should spot-check that the licensing reads right.

Try it

  1. Check out osf/207-user-feedback and install with npm install.
  2. Run npm test for the unit suite, then npx playwright test for the browser smoke tests, which build and serve the app themselves.
  3. Start npm run dev, answer today's puzzle, and watch for the confetti, the stats row, and the new logo; reload and press "View today's tree" to see the review.
  4. Read README.md first — its scoring table and screen descriptions should match what you see.
Code review: 6 notes left, 4 fixed

Left for you

  • Three non-atomic writes per daily answer; pre-existing pattern, logged in .osf/bugs.json. (src/lib/stats.ts:145)
  • Replay session tidbit is the derived species'; main.ts overrides it, so display stays right. (src/lib/session.ts:117)
  • Practice confetti relies on dispatch, not a mode check; harmless as the code stands. (src/ui/quiz.ts:87)
  • Explicit undefined in options would clear a default; no current caller does it. (src/ui/dom.ts:89)
  • Review's tree photo replays the quiz hint fade; cosmetic, left alone. (src/style.css:232)
  • Weak final assertion; the bag-order rule is asserted by the tests above it. (src/lib/session.test.ts:216)

Fixed before the commit

  • A clock step back could store a negative time taken; now clamped at 0 before recording. (src/lib/session.ts:175)
  • Render-time recompute could go negative too; clamped at 0, drift left as defensive-only path. (src/main.ts:194)
  • Comment overstated when the elapsed pin works; corrected to before the answer. (src/main.ts:347)
  • Replay test now pins the served species id, not just correctness. (src/lib/session.test.ts:248)
Tests: 75 passed in 2 lanes

All 27 scenarios of user-feedback-1-i-have-a-user-report-tha-bcpv7j have a tagged test.

Left untested on purpose:

  • tree-of-the-day/New tree on the next day: covered by src/lib/session.test.ts "starts a new, uncompleted puzzle on the next UTC day", which fails if the next UTC day ever starts already completed; this change touched nothing in the day-to-puzzle derivation

Fix round 2 left something unchanged on purpose: - index.html's favicon (the 🍃 data-URI) and the two PWA icons under public/icons/ are untouched. The gate's words were about the logo in the upper-left of the app; the tab icon and the installed-app icons belong to the earlier pwa-shell change, src/pwa.test.ts pins the manifest's two icons, and design decision 7 rules out a raster asset or manifest change here. The new mark reuses the same leaf silhouette, so the icons read as the same brand. - The home screen's large “Flash Leaf” <h1> stays. It is required by app-branding/Home heading stays readable text and asserted by t…

The test lint recorded nothing in the run's tests.

Braid run 207: 2 h 14 m on vLLM · qwen3.8-flash-next
  • Workflow: Braid's OpenSpec flow, change user-feedback-1-i-have-a-user-report-tha-bcpv7j (43 steps, 7 retried)
  • Model: vLLM · qwen3.8-flash-next
  • Time: 2 h 14 m from start to this pull request, 2 h 10 m of it in the model
  • Tokens: 55.3M input, 229k output, 427k reasoning, over 995 model calls
  • Pre-flight estimate: too-big, p50 409k / p80 678k tokens against a 159k-token step allowance

Opened by Braid from braid-testing/flash-leaf#2.

Players reported that practice kept showing the same tree, a correct daily puzzle ended on a flat screen, and reopening a finished day showed a bare notice with a confusing line about replays. Practice now deals from a shuffled bag of a catalog grown to 29 species, so nothing repeats within a pass, and rarer trees earn more points. A correct daily answer gets a confetti celebration with time, rarity and hint stats; a finished day reopens as a photo review of your result. A drawn logo leads every header. One puzzle per day stays; replays still earn nothing. **Checks: 2 things to look at** - **Code review:** 6 notes left, 4 fixed - **Tests it wrote were run:** 1 test file the change wrote ran in no lane - e2e/smoke.spec.ts - **CI:** no CI ran on the checked code: the project has no CI (no workflow under `.forgejo/workflows`, `.gitea/workflows` or `.github/workflows`); what only CI tests went unverified - **Passed:** Scenarios with proof: 27 of 27 have a passing test or a look; Tests: 75 passed in 2 lanes; Seen working: 11 of 11 looks passed, and a session was played start to end; Tasks: 15 of 15 done; Same code: The tests and screenshots are of what merges **Not done** - Rarity tiers are a recognizability judgement: worth a skim of the catalog in `src/data/species.ts` to check no tree sits in the wrong tier. - The ten new species' photo pairs state their source page and license in the catalog data; a person should spot-check that the licensing reads right. **Try it** 1. Check out `osf/207-user-feedback` and install with `npm install`. 2. Run `npm test` for the unit suite, then `npx playwright test` for the browser smoke tests, which build and serve the app themselves. 3. Start `npm run dev`, answer today's puzzle, and watch for the confetti, the stats row, and the new logo; reload and press "View today's tree" to see the review. 4. Read `README.md` first — its scoring table and screen descriptions should match what you see. <details> <summary>Code review: 6 notes left, 4 fixed</summary> **Left for you** - Three non-atomic writes per daily answer; pre-existing pattern, logged in .osf/bugs.json. (`src/lib/stats.ts:145`) - Replay session tidbit is the derived species'; main.ts overrides it, so display stays right. (`src/lib/session.ts:117`) - Practice confetti relies on dispatch, not a mode check; harmless as the code stands. (`src/ui/quiz.ts:87`) - Explicit undefined in options would clear a default; no current caller does it. (`src/ui/dom.ts:89`) - Review's tree photo replays the quiz hint fade; cosmetic, left alone. (`src/style.css:232`) - Weak final assertion; the bag-order rule is asserted by the tests above it. (`src/lib/session.test.ts:216`) **Fixed before the commit** - A clock step back could store a negative time taken; now clamped at 0 before recording. (`src/lib/session.ts:175`) - Render-time recompute could go negative too; clamped at 0, drift left as defensive-only path. (`src/main.ts:194`) - Comment overstated when the elapsed pin works; corrected to before the answer. (`src/main.ts:347`) - Replay test now pins the served species id, not just correctness. (`src/lib/session.test.ts:248`) </details> <details> <summary>Tests: 75 passed in 2 lanes</summary> All 27 scenarios of `user-feedback-1-i-have-a-user-report-tha-bcpv7j` have a tagged test. Left untested on purpose: - `tree-of-the-day/New tree on the next day`: covered by src/lib/session.test.ts "starts a new, uncompleted puzzle on the next UTC day", which fails if the next UTC day ever starts already completed; this change touched nothing in the day-to-puzzle derivation Fix round 2 left something unchanged on purpose: - **`index.html`'s favicon (the 🍃 data-URI) and the two PWA icons under `public/icons/` are untouched.** The gate's words were about the logo in the upper-left of the app; the tab icon and the installed-app icons belong to the earlier pwa-shell change, `src/pwa.test.ts` pins the manifest's two icons, and design decision 7 rules out a raster asset or manifest change here. The new mark reuses the same leaf silhouette, so the icons read as the same brand. - **The home screen's large `“Flash Leaf”` `<h1>` stays.** It is required by `app-branding/Home heading stays readable text` and asserted by t… The test lint recorded nothing in the run's tests. </details> <details> <summary>Braid run 207: 2 h 14 m on vLLM · qwen3.8-flash-next</summary> - **Workflow:** Braid's OpenSpec flow, change `user-feedback-1-i-have-a-user-report-tha-bcpv7j` (43 steps, 7 retried) - **Model:** vLLM · qwen3.8-flash-next - **Time:** 2 h 14 m from start to this pull request, 2 h 10 m of it in the model - **Tokens:** 55.3M input, 229k output, 427k reasoning, over 995 model calls - **Pre-flight estimate:** too-big, p50 409k / p80 678k tokens against a 159k-token step allowance </details> --- Opened by Braid from braid-testing/flash-leaf#2.
cmoriarty changed title from Practice stops repeating trees; the daily puzzle celebrates results to No more repeat trees, a daily-puzzle celebration, and a real logo 2026-12-02 14:43:20 -05:00
cmoriarty deleted branch osf/207-user-feedback 2026-12-02 14:56:26 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
braid-testing/flash-leaf!3
No description provided.