-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor region select into a general select component #128
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
Refactor region select into a general select component #128
Conversation
…and Canada province helpers
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🔍 Check Suite Status for PR #128
|
|
✅ Fixed the failing check by removing a reference to a non-existent |
- Updated imports in data files to use SelectOption from select.tsx instead of RegionOption from region-select.tsx - Removed non-existent tooltip export from UI index file
|
📝 Storybook Preview: View Storybook This preview will be updated automatically when you push new changes to this PR.
|
|
@codegen-sh now let's get rid of our dropdown menu select component since we have our new better Select component
|
- Removed dropdown-menu-select-field.tsx from UI components - Removed dropdown-menu-select.tsx from remix-hook-form components - Removed dropdown-menu-select.stories.tsx from docs - Updated index files to remove exports for these components This completes the migration to the new Select component.
|
✅ I've removed the old dropdown menu select component as requested! Here's what I did:
The changes have been pushed to the same PR branch. You can see the commit here. This completes the migration to the new Select component, which is now the recommended way to create dropdown selects in the codebase. 💻 View my work • 🛑 Stop • React 👍 or 👎 |
…workspaces configuration. Refactor select component imports and improve accessibility features in select.tsx and phone-input-field.tsx. Enhance Storybook stories for region selection components with better querying methods.
…ambda-curry/forms into codegen-bot/refactor-select-components
…er decorators and enhancing play functionality for form submission tests. This improves the structure and readability of the stories while ensuring comprehensive testing of user interactions.
… `components` prop to allow users to override FormControl, FormLabel, FormDescription, and FormMessage. Updated Select UI to utilize default icons and support custom Trigger, Item, and SearchInput components.
…e version to 0.19.4 in package.json.
6630cfc
into
codegen/lc-319-create-a-new-dropdown-selector-component-for-us-states-and
Overview
This PR refactors the region select component into a more general select component that can be used for all select components, as requested. It maintains the specialized components for US states and Canadian provinces as helpers.
Changes
Selectcomponent that can be used for any dropdown selectionUSStateSelectandCanadaProvinceSelectcomponents as helpersImplementation Details
Selectcomponent inpackages/components/src/ui/select.tsxpackages/components/src/remix-hook-form/select.tsxThis implementation allows for a consistent select component across the application while still providing the convenience of pre-configured selects for common use cases like US states and Canadian provinces.
Testing
The existing tests have been updated to work with the new component structure. The functionality remains the same, but the component names have been updated to reflect the more general purpose.
💻 View my work • About Codegen
⛔ Remove Codegen from PR • 🚫 Ban action checks