Web: admin solution review (Sprint 11 PR 11.18) - #138
Merged
Merged
Conversation
/a/solution/{id} — org-scoped (404 unknown / other-org). Header card:
health / assignments / hard-violations / soft-score KPIs + published
badge + created date. Alpine segmented toggle: Assignments
(event-grouped, assignee chips, "Unfilled" when none) and Stats
(fairness stdev + workload max/min/median, distinct, total). Reuses
api.routers.solutions get_solution / get_solution_assignments /
get_solution_stats. Linked from the 11.17 solver result.
Scope note: issue #118 lists assignments+stats+conflicts — Conflicts
segment trimmed: the conflicts API (api/routers/conflicts) is
org-wide, not solution-scoped, so a per-solution conflicts tab needs
backend work out of this PR's scope. Assignments+Stats are the core
review surface.
5 web tests (renders w/ assignment chip + stats, 404 unknown, 404
other-org, admin-gated, auth-gated). 108 web/contract/openapi pass.
Verified e2e on the live server: solved → reviewed Solution #1
(brand-correct, dark mode; KPI grid + segments + empty-assignments
state all render).
Closes #118
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/solution/{id}— org-scoped (404 unknown/other-org). Header KPIs (health/assignments/violations/soft-score) + published badge. Alpine segmented Assignments (event-grouped, assignee chips) / Stats (fairness + workload). Reusesget_solution/get_solution_assignments/get_solution_stats. Linked from 11.17 solver result.Scope note: #118 lists assignments+stats+conflicts — conflicts segment trimmed (the conflicts API is org-wide, not solution-scoped; per-solution conflicts needs backend work out of scope).
Test plan
black --check api tests/ruff check api testscleanpytest tests/web tests/contract tests/unit/test_openapi_schema.py— 108 passCloses #118
🤖 Generated with Claude Code