Skip to content

Remove front runners from Toronto votes page - #60

Merged
mikaalnaik merged 1 commit into
mainfrom
mikaal/remove-front-runners
Aug 14, 2026
Merged

Remove front runners from Toronto votes page#60
mikaalnaik merged 1 commit into
mainfrom
mikaal/remove-front-runners

Conversation

@mikaalnaik

Copy link
Copy Markdown
Contributor

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, the FrontRunnerCard component, and the frontRunnerKeys / frontRunnerNote fields from LandingContent. The mayoral grid maps over all of view.mayoral.
  • toronto/vote/2026/data.ts — deleted MAYORAL_FRONT_RUNNER_KEYS and FRONT_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 --noEmit and eslint both pass on the changed files.

🤖 Generated with Claude Code

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-apps

greptile-apps Bot commented Aug 14, 2026

Copy link
Copy Markdown

Greptile Summary

This PR intentionally removes the Toronto mayoral front-runner distinction and simplifies the shared election landing component.

  • Renders every mayoral candidate in one uniform grid.
  • Removes Toronto’s front-runner constants and page-level content properties.
  • Removes the shared front-runner card, filtering logic, and content fields.

Confidence Score: 5/5

The 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.

Important Files Changed

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

@mikaalnaik
mikaalnaik merged commit 6c41d5f into main Aug 14, 2026
2 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