Repository navigation
Conversation
…#13677) Adds `badge_label_stays_inside_narrow_fill` test to specs/t27f/vf_card.t27. Renders a badge whose layout box is forced narrower than its label (l.w[2]=10) in TH_PAPER theme, then scans the raster pixel-level to assert: (a) no ink pixel lies outside the fill boundaries (il >= fl, ir <= fr) (b) left and right gaps between ink and fill differ by at most one pixel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Bugbot couldn't run - usage limit reachedBugbot 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: 083983c2-aacd-4aa3-bab7-a5d01666a8b7) |
Contributor
This branch has not been deployed
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
badge_label_stays_inside_narrow_filltest tospecs/t27f/vf_card.t27(FR-004, t27f: keep label inside fill with equal side gaps - UI Kit badge #13677)Closes #13677
🤖 Generated with Claude Code
Note
Low Risk
Adds specification coverage only; no production or renderer logic changes in this diff.
Overview
Adds FR-004 integration test
badge_label_stays_inside_narrow_fillinvf_card.t27(#13677), extending the existingvc_badge_wunit checks with an end-to-end raster proof.The test forces the SUCCESS "Open" badge layout width to 10 px (below label width), renders the standard 375 px card in TH_PAPER, then scans pixels via
vc_ink_left/vc_ink_rightto ensure the painted fill grows past the forced box, label ink stays inside the accent fill, and left/right padding gaps differ by at most one pixel.Reviewed by Cursor Bugbot for commit 00cf6fe. Bugbot is set up for automated code reviews on this repo. Configure here.