Skip to content

fix(driver): map absolute percents as range positions and keep tiny-step precision - #239

Merged
pbroom merged 2 commits into
mainfrom
fix/driver-input-precision
Oct 10, 2026
Merged

pbroom merged 2 commits into
mainfrom
fix/driver-input-precision

Conversation

@pbroom

@pbroom pbroom commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

parseColorInputExpression evaluated each absolute % as a span fraction
and added range[0] once to the whole result, so on an offset range any
expression that multiplied or combined percents was wrong ('50% * 2' on
[100, 200] gave 200). Every absolute % is now a position in the range,
like a lone '50%'; relative input keeps span fractions.

getColorInputPrecisionFromStep used an absolute rounding tolerance, so
steps below 1e-7 looked like whole numbers and returned 0. The tolerance
is now relative to the step, and such steps return the 6-decimal cap.

Found while documenting the public API in #235. Each finding was reproduced against the built package before the fix, has a regression test, and its affected JSDoc examples were recomputed. lint, build, test, format:check, typecheck, size, check:artifacts, check:preprod and agents:check:strict pass.

Part of the color-kit assessment stack.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
color-kit Ready Ready Preview Oct 10, 2026 8:15pm UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T03:30:02.375186Z 828ff34 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This was referenced Oct 8, 2026

@pbroom pbroom left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full incremental PR and its corrections at 6fccaa4eeaac1264350f81d7ff05b4e66a681d39. Precision regression corrected and independently tested. No remaining actionable findings in the reviewed scope.

Independent correction re-reviews and stack preservation verification passed. At the integrated tip, lint, full build/DTS, 2,208 tests, formatting, strict agent checks and 14 built-site Chrome tests passed. All recorded actionable review threads are addressed. Hosted CI is being verified separately; this review does not authorize merge or release.

pbroom commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner Author

Merge activity

  • Oct 10, 6:47 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 10, 8:13 PM UTC: Graphite rebased this pull request as part of a merge.
  • Oct 10, 8:13 PM UTC: @pbroom merged this pull request with Graphite.

@pbroom
pbroom changed the base branch from fix/core-saturate-and-plane-hue to graphite-base/239 October 10, 2026 20:09
@pbroom
pbroom changed the base branch from graphite-base/239 to main October 10, 2026 20:11
pbroom and others added 2 commits October 10, 2026 20:12
…tep precision

parseColorInputExpression evaluated each absolute % as a span fraction
and added range[0] once to the whole result, so on an offset range any
expression that multiplied or combined percents was wrong ('50% * 2' on
[100, 200] gave 200). Every absolute % is now a position in the range,
like a lone '50%'; relative input keeps span fractions.

getColorInputPrecisionFromStep used an absolute rounding tolerance, so
steps below 1e-7 looked like whole numbers and returned 0. The tolerance
is now relative to the step, and such steps return the 6-decimal cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pbroom
pbroom force-pushed the fix/driver-input-precision branch from 3d503c0 to 1597d57 Compare October 10, 2026 20:12
@pbroom
pbroom merged commit 8d301d1 into main Oct 10, 2026
6 of 7 checks passed
@pbroom
pbroom deleted the fix/driver-input-precision branch October 10, 2026 20:13

This branch was successfully deployed

1 active deployment
Preview — 1597d57e Deployed Oct 10, 2026 by vercel[bot]
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