fix(badges): improve empty-state search hint to reflect actual search fields

Was: "Enter your name above to find your badge."
Now: "Search by name, email, or organization above to find your badge."

Mirrors the actual fast-path fields (given/family name, email, default_qry_str)
and the search input placeholder text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-06-02 16:52:35 -04:00
parent e735d0c213
commit 9e361eae9b

View File

@@ -416,7 +416,7 @@ let visible_badge_obj_li = $derived(
<p class="text-xl">Searching...</p> <p class="text-xl">Searching...</p>
{:else if !is_trusted && !(badges_loc.current.fulltext_search_qry_str ?? '').trim()} {:else if !is_trusted && !(badges_loc.current.fulltext_search_qry_str ?? '').trim()}
<UserSearch size="3em" class="mx-auto mb-2 opacity-20" /> <UserSearch size="3em" class="mx-auto mb-2 opacity-20" />
<p class="text-xl">Enter your name above to find your badge.</p> <p class="text-xl">Search by name, email, or organization above to find your badge.</p>
{:else} {:else}
<UserSearch size="3em" class="mx-auto mb-2 opacity-20" /> <UserSearch size="3em" class="mx-auto mb-2 opacity-20" />
<p class="text-xl">No badges found matching your criteria.</p> <p class="text-xl">No badges found matching your criteria.</p>