Skip to content

Restore the CAT progress counter (clipped by the facelift's thin bar) - #656

Open
mcfrank wants to merge 1 commit into
phase11-cifrom
cat-progress-counter-fix
Open

Restore the CAT progress counter (clipped by the facelift's thin bar)#656
mcfrank wants to merge 1 commit into
phase11-cifrom
cat-progress-counter-fix

Conversation

@mcfrank

@mcfrank mcfrank commented Aug 18, 2026

Copy link
Copy Markdown
Member

Stacked on top of the stack (base phase11-ci) since the jsCat PR isn't merged yet — it needs both the facelift (which introduced the thin progress bar) and the jsCat CAT templates.

The bug

Henry noticed the CAT progress-bar counter (the "N of MAX (maximum)" text the French CAT group asked for) had disappeared. It wasn't removed — it was clipped invisible. The facelift restyled .progress to a thin 10px bar with overflow:hidden, but the counter (.progress-bar-title) was absolutely positioned inside that bar, assuming the old ~20px height. The restyled bar clips it away. The number was still being computed correctly the whole time ("1 of 50 (maximum)"), just invisible.

The fix

Move the counter onto its own centered line just below the bar, in both CAT templates:

  • cat_form.html (remote engine)
  • cat_form_browser.html (in-browser jsCat engine)

Dropped the absolute positioning / overflow:hidden / bar-height assumptions; it's now a normal centered line under the thin bar.

Verification

Rendered the browser-engine CAT locally: the counter shows "1 of 50 (maximum)" below the bar and increments correctly (answering advanced it to "2 of 50", bar → 4%). Both engines share the identical fix.

Merge note

The two files here also live in the jsCat PR (#622). Whichever way the stack lands, keep this version (counter below the bar).

🤖 Generated with Claude Code

The facelift restyled .progress to a thin 10px bar with overflow:hidden. The
CAT progress counter was absolutely positioned *inside* that bar (it assumed
the old ~20px bar height), so the restyled bar clipped the text away entirely
— the number was still computed, just invisible. Reported by the French CAT
group originally and noticed missing in testing.

Move the counter onto its own centered line just below the bar (both the
remote cat_form.html and the in-browser cat_form_browser.html). Verified in
browser mode: shows "1 of 50 (maximum)" and increments as items are answered.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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