EPAC-331: Ethics Disclosures section on MP profiles#266
Merged
sunnypurewal merged 1 commit intoApr 28, 2026
Conversation
Adds an Ethics Disclosures DisclosureGroup to every MP profile showing Commissioner investigation reports (Act and Code) from the Conflict of Interest and Ethics Commissioner. MPs with no investigations see a clean state with links to the CIEC compliance status report and public registry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
Code Review — PASSEDBuild: BUILD SUCCEEDED What was checked and left aloneThe implementation is clean and correct end-to-end:
Deferred AC items (non-blocking for v1)
Both are documented with rationale in the PR description. Squash-merged: fbe3934 |
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.
Why
The Conflict of Interest and Ethics Commissioner publishes investigation reports for every MP or minister found to have (or not to have) contravened the Act or Code. This data is the authoritative accountability document — it's what a user needs when they see their MP voting on an issue that touches the MP's declared financial interests. Adding it to the MP profile closes the loop from lobbyist communications (already shown) to Commissioner findings.
What changed
data/ethics-investigations.json— Curated list of 33 Commissioner investigation reports (Act and Code) from 2005 to 2023. All data is sourced verbatim from the CIEC investigation reports page (ciec-ccie.parl.gc.ca). Includes subject name, report title, date, type, and direct URL per finding. MPs with no Commissioner reports display a clean state linking to the compliance status report and public registry.ios/epac/Model/EthicsInvestigation.swift—EthicsInvestigation,EthicsInvestigationsSnapshot,EthicsInvestigationsDatabase. Lookup by last name with case-insensitive match. Mirrors the PromiseTracker/ReconciliationCalls bundled-JSON pattern.ios/epac/Views/Members/MemberProfileView.swift—Ethics DisclosuresDisclosureGroup added after Lobbying section. Matches Lobbying style exactly (DisclosureGroup, same padding/background/cornerRadius, no lazy loading needed since data is bundled). No-investigation state shows two CIEC links for user-driven lookup.ios/epac.xcodeproj/project.pbxproj—ethics-investigations.jsonadded todatagroup and Resources build phase.ios/epacTests/EthicsInvestigationsTests.swift— 3 tests: decode, date format, bundled snapshot (>20 investigations, Fergus = 1 report, Trudeau = 3 reports).Trade-offs not taken
Test plan
Screenshots
Resolves EPAC-331
Release-Note: MP profiles now show Conflict of Interest and Ethics Commissioner investigation reports, with direct links to published findings