Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Replaced RadioGroup with Spectrum's (#2020) #2021

Merged
merged 13 commits into from
May 22, 2024

Conversation

bmingles
Copy link
Contributor

@bmingles bmingles commented May 15, 2024

  • Removed DH RadioGroup and RadioItem components
  • Re-exported Spectrum RadioGroup and Radio components
  • Updated references to use new version

Here's diffs of what the components look like after migrating to Spectrum RadioGroup:

FilterSetManager
image

ChartBuilder
image

TableCsvExporter
image

Aggregations
image

BREAKING CHANGE: RadioGroup has been replaced by Spectrum RadioGroup. RadioItem has been replaced by Spectrum Radio

@bmingles bmingles marked this pull request as ready for review May 16, 2024 15:24
@bmingles bmingles requested a review from mofojed May 16, 2024 15:24
@bmingles bmingles linked an issue May 16, 2024 that may be closed by this pull request
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Just want to clean up the example in the styleguide

packages/code-studio/src/styleguide/Inputs.tsx Outdated Show resolved Hide resolved
@bmingles bmingles requested a review from mofojed May 22, 2024 19:05
Comment on lines +193 to +195
errorMessage={
radioValue === '4' ? 'Invalid radio selected' : undefined
}
Copy link
Member

Choose a reason for hiding this comment

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

Actually I don't think you necessarily need a ternary here, as the error message is only shown when it's invalid anyway. But no matter.

Suggested change
errorMessage={
radioValue === '4' ? 'Invalid radio selected' : undefined
}
errorMessage="Invalid radio selected"

@bmingles bmingles merged commit c9ac72d into deephaven:main May 22, 2024
9 checks passed
@bmingles bmingles deleted the 2020-radio-group branch May 22, 2024 20:06
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace DH RadioGroup with Spectrum version
2 participants