Repository navigation
ref(select): Preserve value and option inference - #129017
Merged
Merged
Conversation
…pi-cleanup # Conflicts: # static/app/components/core/form/field/selectField.tsx # static/app/components/core/select/types.tsx
Convert legacy choices at form boundaries and update standalone callers. Add coverage for the options contract, choice conversion, and creatable defaults.
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-5b1bjcbix.sentry.dev |
Contributor
📊 Type Coverage Diff
🔍 3 new type safety issues introducedType assertions (
This is informational only and does not block the PR. |
…alue-option-generics # Conflicts: # static/app/components/core/select/types.tsx
Keep the merged components API and preserve value and option inference.
Collaborator
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9f222d9. Configure here.
TkDodo
commented
Oct 29, 2026
| const StyledSelectControl = styled(Select)` | ||
| width: 100%; | ||
| `; | ||
| ` as typeof Select; |
Collaborator
Author
There was a problem hiding this comment.
we should probably do this with a <Container> wrapping the Select instead but I want this PR to be type-level changes only (mostly)
TkDodo
marked this pull request as ready for review
October 29, 2026 09:41
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
better types for Select, we now use:
everywhere and this doesn’t exist anymore:
as it was silently making
value: anyin a bunch of places