Skip to content
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

Dropdown Tick box #8649

Closed
2 tasks
guillim opened this issue Nov 21, 2024 · 6 comments · Fixed by #9179
Closed
2 tasks

Dropdown Tick box #8649

guillim opened this issue Nov 21, 2024 · 6 comments · Fixed by #9179

Comments

@guillim
Copy link
Contributor

guillim commented Nov 21, 2024

We would like to have a Dropdown Tick box for selected option in field metadata select

Current behavior

When Selecting Currencies or Countries, you click on the dropdown. If you click again, there is no visual element showing that the row was clicked.

Example:

Image

Image

Expected behavior

Let's add a tickbox to show the selected item(s)

Image

Technical inputs

Only frontend work here. Backend should remain untouched.

  • CodeBase review : check if this component has the option ready.
  • Check other components that might fulfill the requirements. If they exist, can we re-use them ?

Related to #8647 (search ability)

As view with @Bonapara

@Bellahuang3715
Copy link

Hi, I would like to take on this issue, can you please assign it to me? Thank you!

@AbdulQadeer-55
Copy link

Hi I would like to contribute on this feature can you please provide me instructions to get started contributing in this repo.

@Rohitk131
Copy link

Hii, I would like to contribute on this issue, please assign me!

@guillim
Copy link
Contributor Author

guillim commented Nov 25, 2024

Did you start working on this @Rohitk131 ?

@guillim guillim self-assigned this Nov 25, 2024
@Rohitk131
Copy link

Not yet

@guillim
Copy link
Contributor Author

guillim commented Dec 9, 2024

Technical input :

  • find an already existing component that would match the criteria: does SingleRecordSelect work out ?

@github-project-automation github-project-automation bot moved this from 🔖 Planned to ✅ Done in Product development ✅ Dec 24, 2024
@guillim guillim moved this from ✅ Done to 🔦 In QA in Product development ✅ Dec 24, 2024
lucasbordeau pushed a commit that referenced this issue Dec 24, 2024
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)
@Weiko Weiko moved this from 🔦 In QA to ✅ Done in Product development ✅ Dec 26, 2024
samyakpiya pushed a commit to samyakpiya/twenty that referenced this issue Dec 28, 2024
Closes: twentyhq#8647 
Closes: twentyhq#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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants