Skip to content

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

Merged
bmingles merged 13 commits intodeephaven:mainfrom
bmingles:2020-radio-group
May 22, 2024
Merged

feat: Replaced RadioGroup with Spectrum's (#2020)#2021
bmingles merged 13 commits intodeephaven:mainfrom
bmingles:2020-radio-group

Conversation

@bmingles
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread packages/code-studio/src/styleguide/Inputs.tsx Outdated
@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
Copy Markdown
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
@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