Skip to content

Render BioBrawl 2026 results by division - #1

Merged
Stringatlas merged 3 commits into
biobrawlfrom
biobrawl-2026-division-results
Aug 24, 2026
Merged

Render BioBrawl 2026 results by division#1
Stringatlas merged 3 commits into
biobrawlfrom
biobrawl-2026-division-results

Conversation

@iv-zhang

Copy link
Copy Markdown
Collaborator

Summary

  • add the BioBrawl 2026 winners dataset and documentation
  • add division-aware result types and render separate podiums for each division
  • update the podium component and results page layout for division-specific results
  • reconcile the results branch with the latest biobrawl base

Testing

  • npm run check
  • npm run build

iv-zhang and others added 2 commits July 29, 2026 15:18
From 2026 the competition runs separate High School and Middle School brackets
plus a mock round. results.winners has three flat slots (first/second/third),
which cannot represent that, so /results/2026 showed TBD.

- types.ts: add results.divisions[] as { name, places[{ rank, team, award }] }.
  results.winners is kept and still documented, so the 2024 and 2025 pages are
  unaffected.
- Podium.svelte: take a places array instead of three fixed props, so a division
  with only a first and second renders without an empty third plinth. Ranks map
  to the existing gold/silver/bronze styling and heights. The three-slot props
  remain as a fallback, including the TBD placeholders for an event with no
  results yet. Prize amounts render under the team name when present.
- results/[eventID]: render one titled podium per division, falling back to the
  single podium when divisions is absent.

The winner names are content, not code — this branch renders them but does not
supply them. biobrawl-2026/ holds the Sanity mutation plus the open questions
that need answering before it is applied: the unlabelled award block, the
Wayzata / Wayzata CMS naming difference, the stale 2025 results description,
and the Studio schema addition needed to make divisions editable.

Verified against the real /results/2026 with the winners stubbed in locally:
all three divisions render, and the 2025 three-place layout is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 23, 2026 04:53
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
helix-ed Ready Ready Preview Aug 24, 2026 2:50am

@iv-zhang
iv-zhang requested review from Stringatlas and removed request for Copilot August 23, 2026 04:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updated Podium rendering has at least two correctness issues affecting award visibility and rank styling for places beyond third.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds division-aware results rendering for BioBrawl 2026 while keeping backward compatibility with legacy single-ladder winner fields, and updates the podium UI to support an arbitrary number of ranked places (plus optional prize amounts).

Changes:

  • Render separate podiums per division when eventData.results.divisions is present, otherwise fall back to legacy winners.
  • Extend results types with Division/Place to represent per-division rankings and optional awards.
  • Update Podium to accept places[], re-order visually for podium layout, and display optional award amounts.
File summaries
File Description
src/routes/results/[eventID]/+page.svelte Renders division-specific podiums with a legacy fallback and adds division section styling.
src/lib/types.ts Introduces Division and Place types and documents legacy vs division result shapes.
src/lib/components/Podium.svelte Adds places API, dynamic rendering/reordering, and optional award display with new styling.
.gitignore Normalizes ignored build/output directories and adds *.log.
Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/lib/components/Podium.svelte
Comment thread src/lib/components/Podium.svelte
@Stringatlas
Stringatlas force-pushed the biobrawl-2026-division-results branch from c49e096 to e503308 Compare August 24, 2026 03:40
@Stringatlas
Stringatlas merged commit 2eba09f into biobrawl Aug 24, 2026
3 checks passed
@Stringatlas
Stringatlas deleted the biobrawl-2026-division-results branch August 24, 2026 03:52
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.

3 participants