AddThisFeature

Favorites

Let people pin the things they keep coming back to.

simple User Experience

What it adds

A star/save action on your records, plus a place to see everything saved.

What your agent is told to do

4
  1. 1

    Add a favorite toggle to the app's primary record type(s), on both the list and detail views.

  2. 2

    Store favorites as a join between user and record with a uniqueness constraint — favoriting twice must not create two rows.

  3. 3

    Give favorites a home: a filter on the list, and a section on the dashboard.

  4. 4

    Update the toggle optimistically so it feels instant, but reconcile with the server response.

Edge cases it handles

4
  • Double-clicking the star must not create a duplicate or leave the UI out of sync.
  • Favoriting requires sign-in — prompt rather than silently doing nothing.
  • A favorited record that gets deleted must be removed from favorites.
  • A favorited record the user loses access to must not appear in their list.

Definition of done

7
  • Favoriting is one click from both the list and the detail view.
  • The database prevents duplicate favorites.
  • There is a single place to see everything favorited.
  • The toggle feels instant and stays correct if the request fails.
  • Signed-out users are prompted to sign in.
  • 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.