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

Add records selection context inside the command menu #8414

Open
bosiraphael opened this issue Nov 8, 2024 · 1 comment
Open

Add records selection context inside the command menu #8414

bosiraphael opened this issue Nov 8, 2024 · 1 comment
Assignees

Comments

@bosiraphael
Copy link
Contributor

bosiraphael commented Nov 8, 2024

Scope & Context

Add records selection context inside the command menu.

image
image

Current behavior

No context.

Expected behavior

A record chip is displayed next to the command menu search bar when a record is selected.
When multiple records are selected, the number of selected records is displayed.
When all records are selected, 'All objectName' is displayed with the number of records.
When the user hits the backspace key when the search bar is empty, we should go back to the general command menu (ie. with no records selected)

Technical inputs

Refactor CommandMenu by extracting the search bar into a component called CommandMenuSearchBar.
Create a component named CommandMenuSearchBarContext.
If the user hits backspace when the search bar is empty, we should reset the context of the command menu.

@Bonapara
Copy link
Member

Bonapara commented Nov 8, 2024

image

Design when several records are selected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Planned
Development

No branches or pull requests

2 participants