Skip to content

Campaign pages and side-by-side report view - #224

Merged
romainkieffer merged 44 commits into
devfrom
feature/wp5-campaign-two-pane
Oct 12, 2026
Merged

romainkieffer merged 44 commits into
devfrom
feature/wp5-campaign-two-pane

Conversation

@romainkieffer

Copy link
Copy Markdown

Adds a page listing campaigns, where admins can create them and assign evaluators per team.

Writers and evaluators can now see a team's previous report, with its grades, next to the one they're working on.

Also fixes a few small things: false "unsaved changes" prompts on reopened reports, and the finalize bar hiding form fields.

Refs #216, #217, #219, #220, #221, #223

…:assigned

Reads were gated on reports:read:own/all only, so the seeded evaluator role
(reports:read:assigned) got 403 from list/get/timeline/compare regardless of
assignment. Visibility now unions team membership with actively-assigned
evaluations (unassigned_at IS NULL), scoped per report rather than per team.
CampaignEvaluation.vue wires useCampaignPairing + useActiveSection into the
paired previous/current layout, reusing SectionGradeCard and FinalizeBar
unchanged from the single view. Extends ViewModeSwitch/EvaluationHeader to
support a campaign-active direction, adds a vs-previous slot to FinalizeBar,
and extends useCampaignPairing with the full timeline and the caller's own
previous overall_grade (D6), plus a distinct forbidden status for the
assignment-scope case.

Refs #151
…pane view

First E2E harness in the repo (operator sign-off given). Config runs 8
projects (320/768/1024/1440 x light/dark); global-setup logs the seeded
admin persona in through the real Dex SSO flow, then provisions four
team-pairs via the API for the layout, round-trip, keyboard-order, and
screenshot checks. Verified green against a live rebuilt+reseeded dev stack.

Refs #152
Picks up available_at plus several endpoints added since the last dump
(evaluator-candidates, my-evaluations) that had drifted out of sync.
Picks up the new team/campaign evaluator-assignment endpoints.
Picks up CampaignCreate.report_specs.
…wo-pane

# Conflicts:
#	backend/openapi.json
#	frontend/src/services/teams.ts
#	frontend/src/types/api.d.ts
Unlocking the editor no longer emits an update; drafts equal to the server are dropped.

Refs #24
@romainkieffer
romainkieffer merged commit d4d2d03 into dev Oct 12, 2026
6 checks passed
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