#36
feat: add JSON schema widget support with checkbox and radio inputs
Summary
- Add
widget.tsto@visual-json/corewith logic to resolve widget types from JSON Schema (enum→ select/radio,boolean→ checkbox) - Add
CheckboxInputandRadioInputcomponents to@visual-json/reactwith full test coverage - Update
form-view.tsxto render the appropriate widget based on schema - Refactor
editor.tsxin the React example: extract static samples data tosamples.tsfor readability
Test plan
-
pnpm test— 203 tests pass -
pnpm type-check— 0 errors -
pnpm lint— 0 warnings -
pnpm build— all 11 packages build successfully - Manual: open React example, select "Schema widgets" sample — verify checkbox and radio/select widgets render correctly
Closes #25
Activity
8Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security | Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| npm/jsdom@29.0.2 | ||||||
| npm/@testing-library/react@16.3.2 |
vercel[bot]reviewed6mo ago
vercel[bot]reviewed6mo ago
@ctate Quick ping on this one, checkbox/radio widget support, all tests passing. Any thoughts or blockers?
@creativoma is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.