Skip to content

refactor(select-field): migrate SelectField from Flow to TypeScript - #4786

Open
bonchevskyi wants to merge 1 commit into
box:masterfrom
bonchevskyi:refactor/flow-to-ts-select-field
Open

refactor(select-field): migrate SelectField from Flow to TypeScript#4786
bonchevskyi wants to merge 1 commit into
box:masterfrom
bonchevskyi:refactor/flow-to-ts-select-field

Conversation

@bonchevskyi

Copy link
Copy Markdown
Contributor

Convert SelectField component to TypeScript

This PR converts src/components/select-field from JavaScript with Flow to TypeScript.

Changes

  • Converted BaseSelectField, MultiSelectField, SelectField, SelectFieldDropdown, and SingleSelectField to .tsx with exported *Props interfaces
  • Converted index.js to index.ts, re-exporting the public components and their types
  • Converted props.js to props.ts with exported SelectOptionProp / SelectOptionValueProp
  • Converted __tests__/*.test.js to *.test.tsx
  • Created .js.flow files for backward compatibility

Contract

  • Declared Flow props contract preserved (requiredness, accepted values, defaults, exports)

Testing

  • Ran tests for src/components/select-field; all 113 pass with existing snapshots matching previous output
  • yarn lint:ts and flow check pass

@bonchevskyi
bonchevskyi requested a review from a team as a code owner August 18, 2026 12:44
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@bonchevskyi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 4 minutes

Limit details: You’ve used all 4 included reviews currently available under your plan.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8b356b7c-69d6-4d8f-9342-d017cb2eb526

📥 Commits

Reviewing files that changed from the base of the PR and between d6a601b and cb6cbcf.

⛔ Files ignored due to path filters (2)
  • src/components/select-field/__tests__/__snapshots__/BaseSelectField.test.tsx.snap is excluded by !**/*.snap
  • src/components/select-field/__tests__/__snapshots__/SelectField.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (22)
  • src/components/select-field/BaseSelectField.js.flow
  • src/components/select-field/BaseSelectField.tsx
  • src/components/select-field/MultiSelectField.js.flow
  • src/components/select-field/MultiSelectField.tsx
  • src/components/select-field/SelectField.js.flow
  • src/components/select-field/SelectField.tsx
  • src/components/select-field/SelectFieldDropdown.js.flow
  • src/components/select-field/SelectFieldDropdown.tsx
  • src/components/select-field/SingleSelectField.js.flow
  • src/components/select-field/SingleSelectField.tsx
  • src/components/select-field/__tests__/BaseSelectField.test.tsx
  • src/components/select-field/__tests__/MultiSelectField.test.tsx
  • src/components/select-field/__tests__/SelectField.test.tsx
  • src/components/select-field/__tests__/SingleSelectField.test.tsx
  • src/components/select-field/constants.js.flow
  • src/components/select-field/constants.ts
  • src/components/select-field/index.js.flow
  • src/components/select-field/index.ts
  • src/components/select-field/messages.js.flow
  • src/components/select-field/messages.ts
  • src/components/select-field/props.js.flow
  • src/components/select-field/props.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant