Skip to content

Add Quanah Dimensional missions tracker - #12

Merged
ejpham merged 1 commit into
mainfrom
feature/quanah-missions
Nov 27, 2026
Merged

ejpham merged 1 commit into
mainfrom
feature/quanah-missions

Conversation

@ejpham

@ejpham ejpham commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a Dimensional missions tab to the Quanah page, next to the set solver.

  • One checkmark per mission: Inspector Level and Battlesim (round), Bosses and Star Force (permanent). That's 110 missions in total.
  • The top of the tab shows the Dimensional grade with progress to the next grade, total points, missions completed (X / 110), permanent points and round points.
  • Cascading completion: reaching a level, floor, boss difficulty or star force level completes every earlier mission in that list. Unchecking one also unchecks every later mission in that list.
  • Reset round missions (behind a confirmation dialog) clears Inspector Level and Battlesim missions and keeps permanent ones.
  • Progress is saved server-side in configs/quanah_missions.json through GET/PUT/DELETE /api/quanah/missions.
    • Saves go to the server one at a time, in click order.
    • If the save file can't be read, the request fails rather than overwriting progress.
    • A damaged save file is copied to quanah_missions.damaged.json.
  • Both tabs stay loaded, so a running scan continues while you're on the missions tab. The last tab you opened is remembered.

Known minor follow-ups (from review, not fixed here)

  • A save file with a UTF-8 BOM is treated as damaged. Reading it as utf-8-sig would fix this.
  • A second damaged save overwrites the earlier .damaged.json copy.
  • Retrying a tab that failed to load could leave duplicate event listeners. This only happens if a mount throws outside its own error handling.
  • ruff format would add a blank line after _backup_path in missions.py. CI only runs ruff check, which doesn't flag it.

Testing

  • pytest: 840 passed, including the new tests/test_quanah_missions.py.
  • node --test tests/js/*.cjs: 54 passed, including the new quanah-missions.test.cjs.
  • Checked in the app: cascading checks and unchecks, totals, the reset dialog, that quick tab switching loads each tab only once, and that quick checkbox clicks are saved in order.

🤖 Generated with Claude Code

A second Quanah tab for Dimensional missions: one checkmark each, with the
grade, total and permanent points, and missions completed at the top.
Completing a mission completes the earlier ones in its chain (inspector
levels, Battlesim floors, a boss's difficulties, star force); undoing one
undoes the later ones. Round missions reset behind a confirmation dialog.

Progress is one global list saved server-side in configs/quanah_missions.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ejpham
ejpham merged commit 5a1067b into main Nov 27, 2026
1 check passed
@ejpham ejpham mentioned this pull request Nov 27, 2026
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