Skip to content

Feature add character search ability#10

Open
tsalopek wants to merge 29 commits intocoleestrin:mainfrom
tsalopek:feature-add-character-search-ability
Open

Feature add character search ability#10
tsalopek wants to merge 29 commits intocoleestrin:mainfrom
tsalopek:feature-add-character-search-ability

Conversation

@tsalopek
Copy link
Copy Markdown
Contributor

@tsalopek tsalopek commented Feb 1, 2026

This PR includes the ability to perform character name searches in and out of context of other searches from the left-hand search tools.

Search occurs after 3 characters have been input. This one may be a bit heavier on the backend, cache hits appear to be occurring as expected, however, a double check on this would certainly be appreciated as I'm new to the repo.

image image image

@tsalopek
Copy link
Copy Markdown
Contributor Author

tsalopek commented Feb 1, 2026

This PR addresses:
Add Character Seach Feature #8

@tsalopek tsalopek marked this pull request as ready for review February 1, 2026 16:45
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Could you remove this from the PR?

characters
</Text>
)}
<Flex align="center" gap="md">
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think it would look nicer if the search bar was floated to the far right, so that its directly to the left of the settings button

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We'd also want to debounce this to avoid api requests as they're actively typing characters

//if (isLoading.current) return;

isLoading.current = true;
const requestId = ++requestIdRef.current;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Whats the purpose of adding the requestId tracking?

filter.requiredMercItems = (mercItems as string).split(",");
}
if (query && (query as string).trim().length >= 3) {
filter.searchQuery = (query as string).trim();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Were there database changes you forgot to commit? I don't see any mention of searchQuery in api/src/database/postgres/index.ts

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