Loop generator: browser-test Familiarity / Area / Must-visit panels #73

Closed
opened 2026-11-05 20:42:53 +00:00 by maximus · 2 comments
Member

The loop generator's Familiarity, Area and Must-visit panels (BRouter loop generator, live since 11-01) have never been tested in a browser. That has been open since August and was split off from #5 when it closed.

  • Add them to the live acceptance suite (/root/tools/wanderer-shots/acceptance/, test user claude_test). Use sequential, gentle BRouter calls only.
  • Check that accepting a generated loop goes through the #68 edit queue as one undo step (round 6).
  • File any bugs found.

🤖 Generated with Claude Code

The loop generator's **Familiarity**, **Area** and **Must-visit** panels (BRouter loop generator, live since 11-01) have never been tested in a browser. That has been open since August and was split off from #5 when it closed. - [ ] Add them to the live acceptance suite (`/root/tools/wanderer-shots/acceptance/`, test user `claude_test`). Use sequential, gentle BRouter calls only. - [ ] Check that accepting a generated loop goes through the #68 edit queue as one undo step (round 6). - [ ] File any bugs found. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Member

Browser acceptance run, 2026-11-06, against live https://wanderer.bearoverse.com as claude_test (headless Playwright, new-trail editor, start = the claude_test "TEST Cap Ferrat coastal loop" start). Nothing was saved, so no trails were created and there was nothing to clean up.

Test: /root/tools/wanderer-shots/acceptance/t8_loop_panels.mjs (results out/t8-live-2026-11-06.json, screenshots out/t8*.png). REAL=0 runs a dry run with every BRouter call stubbed.

BRouter load: 6 real generations, 208 calls in total (40 max per run plus 2 × 4 accept legs). A test-side gate kept at most 1 call at the backend at a time, with a 250 ms delay per call and a pause plus load/mem guard between runs. UI-only checks ran against an instant 422 stub that never reached BRouter.

Check Result
8a/8b Start point: Pick on map (hint, no route anchor added) and Use current location pass
8c Familiarity off: no track search, no hint pass
8d Familiarity strength label + track source → completed filter pass
8e Familiarity finds own nearby trails FAIL → #75: the filter uses the user id, but the index stores the actor id, so there are always 0 hits and the "familiarity bias not applied" hint shows
8f Familiarity scoring ("% on known trails"; known vs new moves each score by 2·25·s·share) pass, but only with a test-side author rewrite to the actor id
8g Area draw: Finish disabled below 3 points, status text, no route anchors, Finish/Clear, Prefer/Avoid colour + status pass
8h Area scoring ("% in area"; prefer vs avoid moves each score by 2·20·share, same candidate set) pass (13 %/33 % in area; diff 5.4/13.0 vs 5.2/13.2 expected)
8i Area Clear pass
8j Must visit: add on map (hint, no route anchor), × removes only that point pass
8k Must visit: trail-waypoint checklist (tick adds by name, untick removes) pass
8l Must visit: all 40 generation requests route via the point; Preview highlights; Accept → loop passes 3 m from it; list cleared pass (shows duplicate candidates → #76, minor)
8m Accept = ONE undo step (#68 round 6) pass: 2 anchors/937 m → accept 5/7.06 km → undo 2/937 m → redo 5/7.06 km → undo 2/937 m → undo 1 anchor (the earlier edit) → redo 2/937 m
8n Undo pressed while the accept is still routing pass: undo clicked 173 ms after Accept, last leg landed at 1635 ms; the queue waited and then undid exactly the accept (2/937 m, redo available; redo → loop, undo → back)

No console or page errors apart from the stub's 422s. The only HTTP errors were komoot contour-tile 404s.

Side notes, not filed: the 6 km target from this start on the peninsula gave only 4.6 km / 8.1 km / 7.1 km loops ("Best found, X % off target" shown). That is expected best-effort behaviour on a constrained network. While "Finish" is disabled, its tooltip is clipped at the panel's left edge (cosmetic).

Leaving this open until #75 is fixed. Re-run 8e/8f with node t8_loop_panels.mjs after the fix; 8f should then pass without the rewrite.

🤖 Generated with Claude Code

Browser acceptance run, 2026-11-06, against live https://wanderer.bearoverse.com as `claude_test` (headless Playwright, new-trail editor, start = the claude_test "TEST Cap Ferrat coastal loop" start). Nothing was saved, so no trails were created and there was nothing to clean up. **Test:** `/root/tools/wanderer-shots/acceptance/t8_loop_panels.mjs` (results `out/t8-live-2026-11-06.json`, screenshots `out/t8*.png`). `REAL=0` runs a dry run with every BRouter call stubbed. **BRouter load:** 6 real generations, 208 calls in total (40 max per run plus 2 × 4 accept legs). A test-side gate kept at most 1 call at the backend at a time, with a 250 ms delay per call and a pause plus load/mem guard between runs. UI-only checks ran against an instant 422 stub that never reached BRouter. | Check | Result | |---|---| | 8a/8b Start point: Pick on map (hint, no route anchor added) and Use current location | pass | | 8c Familiarity off: no track search, no hint | pass | | 8d Familiarity strength label + track source → `completed` filter | pass | | **8e Familiarity finds own nearby trails** | **FAIL → #75**: the filter uses the user id, but the index stores the actor id, so there are always 0 hits and the "familiarity bias not applied" hint shows | | 8f Familiarity scoring ("% on known trails"; known vs new moves each score by 2·25·s·share) | pass, but only with a test-side author rewrite to the actor id | | 8g Area draw: Finish disabled below 3 points, status text, no route anchors, Finish/Clear, Prefer/Avoid colour + status | pass | | 8h Area scoring ("% in area"; prefer vs avoid moves each score by 2·20·share, same candidate set) | pass (13 %/33 % in area; diff 5.4/13.0 vs 5.2/13.2 expected) | | 8i Area Clear | pass | | 8j Must visit: add on map (hint, no route anchor), × removes only that point | pass | | 8k Must visit: trail-waypoint checklist (tick adds by name, untick removes) | pass | | 8l Must visit: all 40 generation requests route via the point; Preview highlights; Accept → loop passes 3 m from it; list cleared | pass (shows duplicate candidates → **#76**, minor) | | **8m Accept = ONE undo step (#68 round 6)** | **pass**: 2 anchors/937 m → accept 5/7.06 km → undo 2/937 m → redo 5/7.06 km → undo 2/937 m → undo 1 anchor (the earlier edit) → redo 2/937 m | | **8n Undo pressed while the accept is still routing** | **pass**: undo clicked 173 ms after Accept, last leg landed at 1635 ms; the queue waited and then undid exactly the accept (2/937 m, redo available; redo → loop, undo → back) | No console or page errors apart from the stub's 422s. The only HTTP errors were komoot contour-tile 404s. Side notes, not filed: the 6 km target from this start on the peninsula gave only 4.6 km / 8.1 km / 7.1 km loops ("Best found, X % off target" shown). That is expected best-effort behaviour on a constrained network. While "Finish" is disabled, its tooltip is clipped at the panel's left edge (cosmetic). Leaving this open until #75 is fixed. Re-run 8e/8f with `node t8_loop_panels.mjs` after the fix; 8f should then pass without the rewrite. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Member

Done: /root/tools/wanderer-shots/acceptance/t8_loop_panels.mjs covers Familiarity / Area / Must-visit and the one-undo-step accept (#68). Bugs found (#75, #76) fixed in #77 and live; t8 on live after the fix: 14/14 PASS. Also runs against the preview with WANDERER_TARGET=preview.

🤖 Generated with Claude Code

Done: `/root/tools/wanderer-shots/acceptance/t8_loop_panels.mjs` covers Familiarity / Area / Must-visit and the one-undo-step accept (#68). Bugs found (#75, #76) fixed in #77 and live; t8 on live after the fix: 14/14 PASS. Also runs against the preview with `WANDERER_TARGET=preview`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
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
public/wanderer#73
No description provided.