Skip to content

feat: add checkbox and radio button types to list view item#82

Merged
scriptcoded merged 4 commits intomainfrom
list-view-checkbox
Dec 17, 2025
Merged

feat: add checkbox and radio button types to list view item#82
scriptcoded merged 4 commits intomainfrom
list-view-checkbox

Conversation

@scriptcoded
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 19:42
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Dec 16, 2025

🦋 Changeset detected

Latest commit: e66df85

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@scouterna/ui-webc Minor
@scouterna/ui-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 16, 2025

Deploy Preview for scouterna-ui ready!

Name Link
🔨 Latest commit e66df85
🔍 Latest deploy log https://app.netlify.com/projects/scouterna-ui/deploys/6941d46fc0b20b000840c324
😎 Deploy Preview https://deploy-preview-82--scouterna-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds checkbox and radio button capabilities to list view items, enabling them to function as selectable list elements. The implementation extends the scout-list-view-item component to support radio and checkbox types, and adds logic to the scout-list-view component to manage radio button groups.

Key changes:

  • Extended scout-list-view-item to support "radio" and "checkbox" types
  • Added radio button group management in scout-list-view to ensure mutual exclusivity
  • Created new Storybook examples demonstrating the new functionality

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/ui-webc/src/components/list-view-item/list-view-item.tsx Added "radio" and "checkbox" to ItemType, added name/value props, updated render logic to use label tags and embed radio/checkbox components
packages/ui-webc/src/components/list-view/list-view.tsx Added scoutChecked event listener to manage radio button mutual exclusivity across list items
packages/storybook/src/stories/list-view.stories.tsx Added two new stories showcasing radio button and checkbox list view variants
packages/ui-webc/src/components/list-view-item/readme.md Auto-generated documentation reflecting new props and component dependencies
packages/ui-webc/src/components/checkbox/readme.md Auto-generated documentation showing usage by list-view-item
packages/ui-webc/src/components/radio-button/readme.md Auto-generated documentation showing usage by list-view-item

@scriptcoded scriptcoded merged commit ddbbbb0 into main Dec 17, 2025
6 checks passed
@scriptcoded scriptcoded deleted the list-view-checkbox branch December 17, 2025 17:48
@github-actions github-actions bot mentioned this pull request Dec 16, 2025
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.

2 participants