AddThisFeature

Search Suggestions

Finish the user's thought as they type.

moderate Search & Discovery

What it adds

Typeahead suggestions that appear as the user types, with keyboard navigation.

What your agent is told to do

4
  1. 1

    Suggest real records and real queries — not a generic autocomplete of dictionary words.

  2. 2

    Debounce requests and cancel superseded ones.

  3. 3

    Make the list fully keyboard navigable: arrows to move, Enter to select, Escape to dismiss.

  4. 4

    Highlight the matched substring so the user can see why something matched.

Edge cases it handles

5
  • Suggestions must respect permissions — never suggest a record the user can't open.
  • A slow response must not overwrite a newer one.
  • Selecting with the keyboard and clicking must do exactly the same thing.
  • The dropdown must not be clipped by an overflow:hidden ancestor.
  • No suggestions is a valid state — don't show an empty box.

Definition of done

7
  • Suggestions appear quickly and are debounced.
  • Arrow keys, Enter, and Escape all work.
  • Stale responses never overwrite newer ones.
  • Suggestions never leak records the user cannot access.
  • The combobox is marked up with correct ARIA roles.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.