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

Feat: Filter Inline Command List With User Input #6940

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

omjogani
Copy link

@omjogani omjogani commented Oct 15, 2024

Summary

In the current version of the product, typing / within a document brings up an inline command list, but the list does not filter as you continue typing.

What Does This PR Address?

This PR introduces functionality that allows the inline command list to filter items dynamically as you type text following the / symbol.

For more details, please refer to the video below, which demonstrates the issue that this PR resolves.

Video Demonstration (Before)

Before.Changes.mp4

Video Demonstration (After)

After.Changes.mp4

Thanks!

Huly®: UBERF-8489

@omjogani omjogani force-pushed the feat/filter-inline-command-list branch from 0ff1e89 to 3bf06bd Compare October 15, 2024 11:34
@lexiv0re
Copy link
Collaborator

Hello @omjogani, thanks for your interest in contributing to Huly. To pass the automatic checks all the commits must be marked with DCO as described here https://github.com/apps/dco.

// to handle case of `todo-list` and `action-item` being the same
const searchableItems = items.map(item =>
item.id === 'todo-list'
? { ...item, searchLabels: ['action-item', textEditor.string.TodoList] }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using internal text keys as a search condition won't work well. Users will expect the search to work for what they see in the menu so for the interface in english it may poorly work in some cases (where the text doesn't match the key) and for the interface in other languages it won't work at all. Please consider searching by translated texts.

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

Successfully merging this pull request may close these issues.

2 participants