Skip to content

t27f: badge fill holds its label with equal side gaps (Refs #13677) - #13678

Merged
gHashTag merged 1 commit into
masterfrom
lane/uikit-badge-pad
Nov 14, 2026
Merged

gHashTag merged 1 commit into
masterfrom
lane/uikit-badge-pad

Conversation

@gHashTag

@gHashTag gHashTag commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

What

A badge is painted at least as wide as its label plus the style pad on each side, and the label is centred in it, so the text no longer runs past the fill.

  • specs/t27f/vf_card.t27: vc_node sizes a badge with vc_badge_w before the fill and centres its label the way a button's is; one test of the width arithmetic.
  • runs/m0/kit/: 12 re-rendered frames (stories 20..24 and 30, both themes), gallery/overview.png rebuilt, gallery/before_after_badges.png, index, README, T27L record.

Stacked on #13676; the diff shrinks to this change once that one is merged.

Measured

Measure Value Evidence
gen of the story host rc=0 runs/m0/kit/rc.txt
Frames rendered, repeat render byte-equal 68 of 70, 68 of 68 runs/m0/kit/rc.txt
Frames changed against #13676 12 (stories 20..24, 30) byte compare on the VPS
Frames byte-equal to #13676 56 byte compare on the VPS

Not done, said plainly

  • Spec tests were not run before this PR; CI is the first run.
  • The pixel test of FR-004 (no ink outside the fill, side gaps within one pixel) is not written, so t27f: keep label inside fill with equal side gaps - UI Kit badge #13677 stays open.
  • Story 30 changed too, because the task card holds a badge; SC-003 of the issue named only 20..24.
  • No visual-correctness claim: the owner's verdict is not recorded and the agent cannot view images.

Refs #13677
Refs #13667
Refs #13426

🤖 Generated with Claude Code


Note

Low Risk
Scoped UI renderer change to badge sizing and label centering, with golden-frame updates and arithmetic tests; no auth or data paths touched.

Overview
Badges no longer paint with a layout-only width that can be narrower than the label: vc_node now expands the badge fill with vc_badge_w (label width plus horizontal pad on each side) before drawing, and centers badge labels the same way as buttons.

A unit test a_badge_is_never_narrower_than_its_label_plus_both_pads covers the width math only; there is still no pixel test for ink staying inside the fill.

runs/m0/kit was re-rendered for iteration 3: twelve frames changed (stories 20–24 and 30), gallery/before_after_badges.png and an updated overview/README/t27l_kit.json document the run.

Reviewed by Cursor Bugbot for commit f919c89. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: eda09435-a29d-49a2-b545-e8614c429d90)

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-14 06:57:00 UTC

Summary

Status Count
Total Open PRs 41
PRs with Failing Checks 36
PRs with All Checks Green 5
READY 0
FAILING 36
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 36 + 0 + 0 = 36, and there are 41 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=c850fb7383ef != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

…t (Refs #13677)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@gHashTag
gHashTag force-pushed the lane/uikit-badge-pad branch from 5d518af to f919c89 Compare November 14, 2026 07:04
@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 4465ff10-7c8e-409c-831b-4bebf12d1f07)

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-11-14 07:06:40 UTC

Summary

Status Count
Total Open PRs 40
PRs with Failing Checks 36
PRs with All Checks Green 4
READY 0
FAILING 36
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 36 + 0 + 0 = 36, and there are 40 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=c850fb7383ef != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 9a53e06 into master Nov 14, 2026
36 of 42 checks passed
@gHashTag
gHashTag deleted the lane/uikit-badge-pad branch November 14, 2026 07:30
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