Remove front runners from Toronto votes page - #60
Merged
Conversation
All mayoral candidates now render in the same uniform grid. Drops the front-runner band, the "rest of the field" label, the FrontRunnerCard component, and the frontRunnerKeys/frontRunnerNote content fields. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Greptile SummaryThis PR intentionally removes the Toronto mayoral front-runner distinction and simplifies the shared election landing component.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The removed interface fields have no remaining consumers in the primary or related repositories, and the resulting uniform candidate rendering matches the explicitly stated intent.
|
| Filename | Overview |
|---|---|
| src/components/elections/ElectionLanding.tsx | Removes the optional front-runner API and presentation, rendering the complete mayoral collection through the existing uniform card grid. |
| src/app/toronto/vote/2026/page.tsx | Stops importing and passing the deleted Toronto front-runner metadata. |
| src/app/toronto/vote/2026/data.ts | Deletes the now-unused hand-maintained front-runner keys and explanatory note. |
Reviews (1): Last reviewed commit: "Remove front-runner treatment from elect..." | Re-trigger Greptile
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
All mayoral candidates now render on the same level in a single uniform grid on
/toronto/vote/2026— no more elevated "Front runners" band.Changes
ElectionLanding.tsx— removed the front-runner band, the "The rest of the field" label, theFrontRunnerCardcomponent, and thefrontRunnerKeys/frontRunnerNotefields fromLandingContent. The mayoral grid maps over all ofview.mayoral.toronto/vote/2026/data.ts— deletedMAYORAL_FRONT_RUNNER_KEYSandFRONT_RUNNER_NOTE.toronto/vote/2026/page.tsx— dropped the corresponding imports and content props.Note: this removes the front-runner capability from the shared component for every region, not just Toronto. No other region was using it.
Testing
tsc --noEmitandeslintboth pass on the changed files.🤖 Generated with Claude Code