-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Currency Search #8647
Comments
Hi, I would like to take on this issue, can you please assign it to me? Thank you! |
Sure @Bellahuang3715 thanks! |
Related to #7038 (it should be implemented then according to tasks list but for some reason it wasn't) |
Did you start working on it @Bellahuang3715 ? |
@guillim Yes! Aiming to wrap it up by tomorrow! |
Hi @guillim I see there is no update yet. So, I would like to work on this.
|
@harshrajeevsingh I agree, let's try to reuse the components from twenty-ui in order to achieve this issue. You can start working on this currency search issue if you want. I will be active on it as well, so don't hesitate to ping me and we can collaborate here to decide which component is best to re-use ! |
@guillim Sure! I will take a look at this tomorrow and will let you know which could be the best solution to tackle both the issues. |
@guillim I looked into this again and I still think that using
Here I made changes for the #8751 |
where are the changes #8751 points to an already closed pr |
@guillim I don't see it anymore. I'm on the main branch. Can you recheck from your side? |
Closes: #8647 Closes: #8649 **Changes & Why** 1. Added a Search Input to `SettingsDataModelFieldAddressForm` & `SettingsDataModelFieldCurrencyForm` as `Select` component already accepts it as a prop. 2. Gave a fixed width to the dropdown of both the above components to ensure it doesn't shrink on search for the menu items with low word count. 3. Added countries Flag to `SettingsDataModelFieldAddressForm`. 4. Replaced `MenuItem` with `MenuItemSelect` to get the desired highlighted background for the selected item with `IconCheck` to differentiate the current selected item. This is useful across all the select components throughout the app. 5. I realized that in some components we might not need IconCheck and only need a highlighted background for the selected item. For ex: `SettingsDataModelFieldBooleanForm` . Therefore, I created a prop `needIconCheck` with default as true so it doesn't break the existing `MenuItemSelect` and we can pass that prop as false wherever needed. [Screencast from 2024-12-21 12-08-08.webm](https://github.com/user-attachments/assets/4f8070a8-f339-4556-a137-bbbad58b171c)
Closes: #8647 Closes: #8649 **Changes & Why** 1. Added a Search Input to `SettingsDataModelFieldAddressForm` & `SettingsDataModelFieldCurrencyForm` as `Select` component already accepts it as a prop. 2. Gave a fixed width to the dropdown of both the above components to ensure it doesn't shrink on search for the menu items with low word count. 3. Added countries Flag to `SettingsDataModelFieldAddressForm`. 4. Replaced `MenuItem` with `MenuItemSelect` to get the desired highlighted background for the selected item with `IconCheck` to differentiate the current selected item. This is useful across all the select components throughout the app. 5. I realized that in some components we might not need IconCheck and only need a highlighted background for the selected item. For ex: `SettingsDataModelFieldBooleanForm` . Therefore, I created a prop `needIconCheck` with default as true so it doesn't break the existing `MenuItemSelect` and we can pass that prop as false wherever needed. [Screencast from 2024-12-21 12-08-08.webm](https://github.com/user-attachments/assets/4f8070a8-f339-4556-a137-bbbad58b171c)
We would like to have the Search feature in Currency field metadata
Current behavior
You need to scroll down, and it can be very long to select currencies at the bottom of the dropdown
Example:
Expected behavior
Search bar like on the Country selection dropdown
Technical inputs
We should try to see if the option exist on the current component, and then add it. Otherwise, we should have a look at the other existing components to find one that would match the requirements. Last case scneario, let's create a dedicated component
As view with @Bonapara
The text was updated successfully, but these errors were encountered: