Skip to content

A links search with no matches says "No links yet" #52

Description

@DennisAlund

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions