Add projections to full standings; clean up change indicators #103
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/standings-projections"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Surfaces projected final points on the full standings page and restructures the rank/point change indicators so columns align cleanly on desktop and mobile.
Changes
StatHelpers— stackedlabel / value / deltacolumns with a per-row reservable delta line; merged the rank/point indicators into a singleDeltaBadge;StatDividerheight is now parameterizable.StandingsPreview— opt-inshowProjectedcolumn (projected points only), gated on participants remaining; the delta line is reserved only when a row actually moved (no stray "—" placeholders on unchanged rows). Projected is styled muted/regular-weight so Points stays the primary number.showProjected(hidden once the season is complete, since projected == actual then).getSevenDayStandingsChange, so the preview shows the same 7-day rank/point changes as the full standings page (previously point change never rendered there).LeagueRow— top-aligns stats and restoresh-8dividers so the shared-component changes don't alter the league-list rows.Testing
npm run typecheck— cleannpm run test:run(StandingsPreview suite) — 13/13 pass, incl. new projection casesWithProjectionsStorybook variantNote:
LeagueRow(league list / dashboard) isn't covered by unit tests — worth a visual check.🤖 Generated with Claude Code