Found while reviewing #48. Pre-existing, not caused by that PR.
The links route sets links to the search results (src/index.tsx:230), so the empty-state branch at src/pages/links.tsx:221 cannot tell an empty catalog from an empty result set.
Reproduction
Catalog holds 200 links. Search for zzz.
links.length === 0, so the branch falls to t("links.empty"): No links yet. Use the + New Link button above to get started.
- The user reads that their catalog is empty when it holds 200 links.
Fix
Add a third empty-state branch keyed on searchQuery, with copy naming the query that matched nothing. Keys go in src/i18n/en.ts, id.ts, and sv.ts.
Found while reviewing #48. Pre-existing, not caused by that PR.
The links route sets
linksto the search results (src/index.tsx:230), so the empty-state branch atsrc/pages/links.tsx:221cannot tell an empty catalog from an empty result set.Reproduction
Catalog holds 200 links. Search for
zzz.links.length === 0, so the branch falls tot("links.empty"):No links yet. Use the + New Link button above to get started.Fix
Add a third empty-state branch keyed on
searchQuery, with copy naming the query that matched nothing. Keys go insrc/i18n/en.ts,id.ts, andsv.ts.