Skip to content

Fix: Add radio field support#637

Open
bobbwal wants to merge 4 commits intoSonicJs-Org:mainfrom
bobbwal:fix/radio-field-render
Open

Fix: Add radio field support#637
bobbwal wants to merge 4 commits intoSonicJs-Org:mainfrom
bobbwal:fix/radio-field-render

Conversation

@bobbwal
Copy link
Contributor

@bobbwal bobbwal commented Feb 5, 2026

Description

Add full support for radio fields in both code-based and UI-built collections, and add E2E coverage.

Fixes #636

Changes

  • Add radio to the collection builder field type dropdown and options panel.
  • Map radio field types into collection schemas and render/save radio values.
  • Support the inline option property for horizontal radio layouts.
  • Add E2E test for creating content with a radio selection.

Testing

  • npx playwright test tests/e2e/52-radio-field.spec.ts --config tests/playwright.config.ts

Unit Tests

  • Added/updated unit tests
  • All unit tests passing

E2E Tests

  • Added/updated E2E tests
  • All E2E tests passing

Checklist

  • Code follows project conventions
  • Tests added/updated and passing
  • Type checking passes
  • No console errors or warnings
  • Documentation updated (if needed)

Generated with Claude Code in Conductor

@bobbwal bobbwal marked this pull request as draft February 5, 2026 12:00
@bobbwal bobbwal marked this pull request as ready for review February 5, 2026 12:00
@bobbwal bobbwal marked this pull request as draft February 9, 2026 17:37
@tomByrer
Copy link

I wonder if this could be more generic, to allow both multiple (AKA checkboxes) & single (AKA radio) choices?

@bobbwal bobbwal marked this pull request as ready for review February 10, 2026 16:37
@bobbwal
Copy link
Contributor Author

bobbwal commented Feb 12, 2026

I wonder if this could be more generic, to allow both multiple (AKA checkboxes) & single (AKA radio) choices?

Only single boolean checkboxes are supported I think? I only discovered this when looking at the radios. This should probably be looked at in a separate issue.

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.

Bug: type: 'radio' renders as text field and isn’t supported in collection builder

2 participants