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

Enhancement Request - Dropdown values with description - Areteans #91

Open
s-thutupalli opened this issue Nov 27, 2024 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@s-thutupalli
Copy link

Enhancement of existing dropdown component

Title: Dropdown values with description.

Description

A search field has been introduced to facilitate easy access to the options. As users type in the search field, the options are filtered in real-time based on the entered characters. Upon selecting an option, the input field will display the chosen value.

Current behaviour

The existing dropdown lacks descriptions for each option.

There is no search functionality to filter the options in the dropdown list.

Expected behaviour

When a user selects the dropdown, they will be able to see options along with their descriptions. Additionally, users can search for options to quickly find the desired selection.

Uses of this Enhancement

The search functionality allows users to filter values easily, eliminating the need to scroll through the entire list. Additionally, descriptions have been added for every option to enhance clarity and usability.

Dependency packages

Material UI - @mui/material @emotion/react @emotion/styled

Configurations

DataPage

Attached the component code and detailed description with images below.

Dropdown_Values_With_Description_Component.docx
DropdownValueWithDescription.zip

@ricmars
Copy link
Collaborator

ricmars commented Dec 1, 2024

Such component makes sense but it should not be using material UI - I will review the code and see if this requirement can be integrated as a new component in the ui gallery using the OOB Constellation presentational component.

Note that when more meta data is required, you can use the show details that will let you configure a read only view to show more meta about the selected object - this is the recommended pattern since it scale better and is more flexible that adding a description field.

@ricmars ricmars self-assigned this Dec 1, 2024
@ricmars ricmars added the enhancement New feature or request label Dec 1, 2024
@s-thutupalli
Copy link
Author

Thanks Richard. We will make the corresponding code changes as per the feedback and will provide updated code in couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants