Repository navigation
Rename SelectCheckbox's value prop to checked - #4259
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4259 +/- ##
==========================================
- Coverage 99.27% 99.27% -0.01%
==========================================
Files 44 44
Lines 2213 2204 -9
Branches 971 965 -6
==========================================
- Hits 2197 2188 -9
Misses 16 16
🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
SelectCheckboxnow takes acheckedprop instead ofvalue, so its props are the same asRenderCheckboxProps, withcheckedrequired. Every other checkbox API in the package (RenderCheckboxProps,renderCheckbox, and the native<input type="checkbox">) already sayschecked, and the README no longer has to explain the exception.Breaking change
Affects custom cell renderers that render
SelectCheckbox. Its props are nowRenderCheckboxPropswithcheckedrequired.Changes
SelectCheckboxPropsextendsRenderCheckboxPropsand narrowscheckedto a requiredboolean. It replaces thePick<RenderCheckboxProps, …>-basedSharedInputProps, and is now exported, so it's part of the public types.SelectCheckboxpasses its props object straight torenderCheckboxinstead of rebuilding it property by property; it isn't a hot path that needs a fixed shape.src/Columns.tsx, the "Available" column of the CommonFeatures demo, and the<SelectCheckbox />section of the README.Verification
vp run cipasses, except that Firefox timed out under load from other Playwright sessions on the machine (clicks insetupBrowser.ts'sbeforeEachfocus loop). I reran the 23 Firefox files that failed withvp test … --project "*firefox*", and they all passed. The Chromium, WebKit, and Node projects passed in separate runs.test/browser/renderers.test.tsxthat renders<SelectCheckbox checked={…} onChange={…} />in a column'srenderCell, and checks the checked states and that clicking toggles them.vp packand type-checked a consumer oflib/index.jswithtsc --strict, with and without--exactOptionalPropertyTypes:checkedis required, andvalueis rejected.🤖 Generated with Claude Code