Skip to content

Points calculator: box the mark/points results, add equivalent-marks table - #69

Merged
jchen1 merged 3 commits into
masterfrom
jchen1/points-calculator-outputs
Aug 12, 2026
Merged

Points calculator: box the mark/points results, add equivalent-marks table#69
jchen1 merged 3 commits into
masterfrom
jchen1/points-calculator-outputs

Conversation

@jchen1

@jchen1 jchen1 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

What

Two UI updates to /projects/track/points-calculator:

  1. Results box — the Mark and Points fields are now wrapped in a tinted (--secondary-light-gray) bordered box so they read as calculator output, visually distinct from the Category/Gender/Event selectors above.
  2. Equivalent marks table — a native <details> element (collapsed by default, no JS state) below the results box. When points are set, it lists the mark worth the same points in every other event for the currently selected category and gender. Rows whose quadratic solve produces no valid mark are dropped; combined-event scores are rounded to whole points.

Scope call

The table shows same category + same gender only — that keeps it a direct "what's my 100m worth in the 800m" comparison. Easy to grow a gender/category toggle later if wanted.

Verification

  • tsc --noEmit and eslint clean (three pre-existing set-state-in-effect warnings untouched)
  • npm run build passes; the details/table render in the static HTML
  • Spot-checked the math: men's 100m 10.00 → 1206 pts → 20.09 200m, 8.31m LJ, 2:05:53 marathon, 8511 decathlon

🤖 Generated with Claude Code

…table

Wrap the mark and points fields in a tinted, bordered box so they read
as calculator output rather than more form inputs. Below them, add a
collapsed-by-default table listing the mark worth the same points in
every other event for the selected category and gender.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
website Ready Ready Preview Aug 12, 2026 6:22pm

Request Review

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bundle Size

Route Size (gzipped)
/ 34.31KB (+1B)
/404 32.98KB (+0B)
/[page] 34.28KB (-1B)
/_app 42.76KB (+0B)
/_error 33.16KB (+0B)
/about 35.22KB (-1B)
/archive 33.61KB (+0B)
/impact 35.23KB (+0B)
/jota 35.22KB (+0B)
/jota/privacy 35.23KB (+0B)
/meet-reports 33.64KB (+0B)
/meet-reports/[slug] 36.11KB (+0B)
/metrics 38.09KB (+1B)
/posts/[slug] 36.1KB (+0B)
/projects 35.21KB (+0B)
/projects/track 33.46KB (+1B)
/projects/track/100m-predictor 38.28KB (+227B)
/projects/track/200m-lane-draw 35.9KB (+227B)
/projects/track/points-calculator 44KB (+737B)
/projects/track/wind-correction 36.13KB (+227B)
/tag/[tag] 34.62KB (+0B)
/twentysix 35.27KB (-1B)

The equivalent-marks table gets an Outdoor/Indoor tab row so a mark can
be compared across categories; the tabs follow the main category
selector until one is clicked. The results box keeps its border but
loses the background tint.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jchen1
jchen1 marked this pull request as ready for review August 12, 2026 18:33
@jchen1
jchen1 merged commit 2beff1e into master Aug 12, 2026
6 checks passed
@jchen1
jchen1 deleted the jchen1/points-calculator-outputs branch August 12, 2026 18:33
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