Skip to content

Autocomplete projects & clients#247

Merged
HerbCaudill merged 18 commits intomainfrom
herb/x-39-autocomplete-component
Feb 21, 2025
Merged

Autocomplete projects & clients#247
HerbCaudill merged 18 commits intomainfrom
herb/x-39-autocomplete-component

Conversation

@HerbCaudill
Copy link
Contributor

Adds an autocomplete menu for projects and clients. Includes playwright tests and

As soon you type #, you'll see an autocomplete menu showing all projects:

image

As you type more characters, the available options will be narrowed accordingly:

image

The text you type doesn't have to be the beginning of the code, it can be anywhere in the code or subcode:

image

Same goes when you type @ for clients:

image

It won't stop you from typing an invalid code, but it will warn you:

image

The autocomplete menu will always be positioned below and to the right of the cursor. Even if there is lots of text:

image

and even if you're not at the end of the current content of the textarea:

image

After you select an item, it is inserted into the text and your cursor will be where you expect it to be:

image

You can select an item from the menu with the mouse, or with the arrow keys + Enter to select.

Testing

Confirm that this works as described, and that the new playwright tests pass.

@linear
Copy link

linear bot commented Jan 22, 2025

X-39 autocomplete component

for choosing clients and projects

@HerbCaudill HerbCaudill force-pushed the herb/x-39-autocomplete-component branch from a450773 to bbe3c70 Compare January 23, 2025 14:43
@HerbCaudill HerbCaudill merged commit bbe3c70 into main Feb 21, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants