Points calculator: box the mark/points results, add equivalent-marks table - #69
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bundle Size
|
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>
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.
What
Two UI updates to
/projects/track/points-calculator:--secondary-light-gray) bordered box so they read as calculator output, visually distinct from the Category/Gender/Event selectors above.<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 --noEmitand eslint clean (three pre-existingset-state-in-effectwarnings untouched)npm run buildpasses; the details/table render in the static HTML🤖 Generated with Claude Code