Repository navigation
feat: target scale, unified level display and evaluation switch (UX-07) - #211
Merged
Merged
Conversation
- TargetScale: scale with level markers, best and last result, mirrored for "smaller is better"; one line with the next threshold and distance; Mein HCP | Ziel-HCP switch; full table collapsed below - LevelStars is the single level display (stars + number + color) used by drill card, drill head, history and the completion sheet; LevelBadge now shows the latest session's level - drill card shows difficulty as dots so stars only mean level - evaluation mode as a labeled Aktuell | Historisch switch with an explanation - scale model in src/hcp/scale.ts; tests (310) Co-Authored-By: Claude Sonnet 5.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.
Summary
TargetScale.vue, tab "Ziele"): a bar with ★ / ★★ / ★★★ markers at their thresholds, the best result (▲) and the last result. For "smaller is better" drills the scale is mirrored so better is always to the right. One line states the next threshold and the distance ("Nächste Stufe ★★ ab 7: dein Bestwert 6, noch +1."), below it all thresholds for the chosen handicap. A Mein HCP | Ziel-HCP switch shows what the goal needs (goal = ★★ at the target HCP, "Ziel erreicht" / "noch +4"). The full table stays under "Alle HCP-Bereiche" (open when no handicap is known). The picture isaria-hidden; the same information is textLevelStars(stars + number + color per level, accessible name "Level 2 von 3") replaces the ad-hoc chips in the drill card, drill head, history and completion sheet;LevelBadge(was unused) now shows the latest session's level. The drill card shows difficulty as dots (●●●○○) so a star always means levelsrc/hcp/scale.ts(pure, tested)Acceptance
tests/views/stats-mode.test.ts(Putting 33 % in "Aktuell" vs. 100 % in "Historisch")Numbers
Start chunk 145.2 KB, tests 284 -> 310, lint 0 errors.
Test plan
npm test,npm run lint,npm run typecheck,npm run build(local)🤖 Generated with Claude Code