Web: admin run solver (Sprint 11 PR 11.17) - #137
Merged
Merged
Conversation
/a/solver — date range (defaults today..+28d) + Strict/Relaxed
segmented mode + minimize-moves toggle → POST /a/solver/run reusing
api.routers.solver.solve_schedule in the admin's org. Renders a
result partial: KPI grid (assignments, health, hard violations,
solve ms) + "Review solution" link to /a/solution/{id} (lands 11.18).
Invalid range / solver HTTPException (e.g. "no events in range") →
inline error. Admin nav now 4 tabs (Dashboard·People·Events·Solver).
5 web tests (form renders, run creates solution + result, invalid
range rejected, admin-gated, auth-gated). 103 web/contract/openapi
pass. Verified e2e on the live server: seeded org+admin+3 events+2
volunteers, live solve → Solution #1 with 3 assignments / health 100;
solver form screenshotted brand-correct (also confirms dark mode).
Closes #117
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/a/solver— date range + Strict/Relaxed mode + minimize-moves toggle →POST /a/solver/runreusingsolve_schedule. Result partial: KPI grid + "Review solution" link to/a/solution/{id}(11.18). Invalid range / "no events" → inline error. Admin nav now 4 tabs.Test plan
black --check api tests/ruff check api testscleanpytest tests/web tests/contract tests/unit/test_openapi_schema.py— 103 passCloses #117
🤖 Generated with Claude Code