AddThisFeature

Recently Viewed Items

Get people back to what they were just working on.

simple User Experience

What it adds

A short list of the records each user opened most recently.

What your agent is told to do

4
  1. 1

    Record a view when a user opens a record's detail page — one row per user/record, updated on each visit, not one row per view.

  2. 2

    Show the most recent handful somewhere they'll be seen: the dashboard, an empty search state, or the command palette.

  3. 3

    Scope strictly to the current user. Recently-viewed is personal.

  4. 4

    Cap the list and prune old entries so the table doesn't grow forever.

Edge cases it handles

4
  • A record the user can no longer access must disappear from their list.
  • A deleted record must not 404 from the recents list — drop it.
  • Do not record a view when the page is opened by a bot or a prefetch.
  • Renamed records must show their current name, not the name at view time.

Definition of done

6
  • Opening a record updates its recency rather than adding a duplicate row.
  • The list is per-user and never leaks other users' records.
  • Deleted or newly-forbidden records vanish from the list.
  • The list is capped and old rows are pruned.
  • 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.