Skip to content

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!

Signed-off-by: Om Jogani <om080jogani@gmail.com>
Signed-off-by: omjogani <om080jogani@gmail.com>
@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.

@haiodo
Copy link
Contributor

haiodo commented Feb 24, 2025

Closing as outdated.

@haiodo haiodo closed this Feb 24, 2025
@haiodo haiodo reopened this Apr 15, 2025
@kristina-fefelova
Copy link
Member

Closing as outdated.

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.

4 participants