Repository navigation
Governance: link election candidates to members (optional) - #2836
peterdrier wants to merge 6 commits into
Conversation
A candidate option may link to the member it is. Bare Guid, no cross-section key; EF-generated migration in GovernanceDbContext.
Each option row on the draft form gets an optional member picker (the shared human-search, re-run in script-added rows). Open refuses a ranked item when, across its assembly's ranked items, one member stands under two keys or one key is linked to two members. GDPR export lists a member's candidacies; erasure clears the link and keeps the label.
Results, the admin peek and the ballot page show a linked candidate's member beside the official label: in the outcome lines and elected badges, and in a Candidates list above the ballot and on results. The tap-to-rank cards and the count steps keep plain labels.
|
@codex review Generated by Claude Code |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Reviewed commit 50d5692 — no issues found. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
PR Surface ReportCompared Summary: 34 changed file(s) | EF migrations: 1 added file(s), max 1/1 per context Reforge Surface Score
Section Deltas
Section Size & Complexity Deltas
Rule Deltas
Corpus Size & Complexity
At head: largest class Published Write Surface15 of 57 sections publish write capability, 47 interfaces (0). Interface SurfaceNo new interfaces or interface members. Diff Size
New Files
EF Migrations (OK)
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186neA4Bg6a13rc7m266Yrf
What
An election candidate (an option on a ranked assembly vote) can optionally be linked to the member they are. Where the candidate is shown, the member appears beside the label with the shared Human hover card.
Why
Peter asked for it: people voted on in a real election are humans, and voters should be able to see who they are. The link is optional, so motions and test candidates work as before.
Existing surface checked
vc:humanandvc:human-searchunchanged.UserIdongovernance_assembly_vote_options, no cross-section foreign key.UnlinkCandidaciesAsyncon the Governance repository, the_Candidatespartial, one resx key, one GDPR export sliceAssemblyVoteCandidacies, twoAssemblyVoteActionResultvalues.UI changes / screenshots
Not yet looked at rendered; will be checked on the preview.
Checklist
tier:standard.20261201155445_AssemblyVoteOptionUseris EF output.mainonpeterdrier/Humans, branched offorigin/main.NuGet packages updatednone.New project rulenone.Reviewer notes
Generated by Claude Code