Skip to content

Fix attempt screen scroll regression + align Practice tab metric cards - #424

Merged
sg2499 merged 1 commit into
mainfrom
feature/dps-attempt-screen-fixes-2026-08-04
Aug 4, 2026
Merged

Fix attempt screen scroll regression + align Practice tab metric cards#424
sg2499 merged 1 commit into
mainfrom
feature/dps-attempt-screen-fixes-2026-08-04

Conversation

@sg2499

@sg2499 sg2499 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Fixes the internal scrollbar on the question/answer row (fixed pane height replaces the fragile 100svh calc, sized against the actual worst-case content), removes the redundant hero title (merged into one bigger info bar showing the current section instead), and aligns the Practice tab's 6 metric cards to the shared gamified card styling used elsewhere in the student login.

Live preview from PR #423 showed two real problems that slipped through:

- The question/answer row still triggered an internal scrollbar on real
  content (a 5-row decimal add/subtract problem needs ~300-310px once
  rendered; the previous 100svh-driven flex-fill layout could squeeze
  that row well below that on real viewport heights). Replaced the
  fragile lg:h-[calc(100svh-11rem)] whole-page-fill approach with fixed,
  content-tested block heights instead: the question/answer row is now a
  flat lg:h-[380px] (verified against the actual DecimalAlignedVertical
  renderer's row height, divider, and padding math, with real margin to
  spare), so it never needs to shrink-to-fit and never scrolls.
- Hero banner repeated the sheet's concept/title text that the student
  already saw on the instructions page one click earlier. Merged the
  hero and the 4-stat row into a single bigger info bar that shows the
  *current question's section* (not the redundant sheet title) plus
  answered/remaining/current/timer, and stripped QuestionCard's own
  header down to just the question number + save-status chip (removing
  the second copy of the section label that lived there too).
- Also caught and fixed one more stale MCQ-era string in
  MathQuestionDisplay's financial-table renderer ('Select the correct
  calculated result from the options.' -> typed-answer copy) while
  auditing every display type against the new fixed pane height.

- Practice tab: MetricCard was hand-rolling its own card/shine styling
  instead of using the shared math-student-metric-card class + the
  canonical diagonal sweep-shine markup used everywhere else (see Info()
  in assessment-readiness/page.tsx). Rewritten to match exactly so the
  6 top cards are visually consistent with the rest of the student
  login instead of a slightly-off lookalike.

Verified: syntax-checked all 4 files via the TS compiler API; measured
DecimalAlignedVerticalQuestion's actual row/divider/padding CSS values
by hand to confirm the new 380px pane has real margin above the ~306px
this exact question type needs, instead of guessing a number again.
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
math-path-platform Ready Ready Preview Aug 4, 2026 8:28am

@sg2499
sg2499 merged commit c370671 into main Aug 4, 2026
11 checks passed
@sg2499
sg2499 deleted the feature/dps-attempt-screen-fixes-2026-08-04 branch August 4, 2026 08:41
sg2499 added a commit that referenced this pull request Aug 4, 2026
Per feedback on the PR #424 preview: the 4 stat tiles (Answered/
Remaining/Current/Timer) and the Lesson/DPS badge were too small to read
comfortably; the section-name heading was fine as-is or could come down
slightly. Left the question-progress pill and overall bar structure
untouched.

- CompactStat/CompactTimerStat: bigger icon chip (8->10), bigger padding
  and value text (text-sm -> text-lg), timer pill no longer force-shrunk
  (reverted to TestTimer's natural px-3.5/py-2/text-sm size).
- Lesson/DPS badge: px-2.5/py-1/text-[10px] -> px-3.5/py-1.5/text-xs.
- Section name h1: text-lg/xl -> text-base/lg (slight downsize, per
  explicit ask).

To keep the whole screen still fitting in one view with zero scrolling,
trimmed QuestionCard's fixed content-row height from 380px to 360px --
still comfortably above the ~306px the worst-case (5-row decimal) question
needs, so this doesn't reopen the scrollbar regression fixed in #424.
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