Skip to content

Recent Items: show last opened tasks/projects #25

@TheSethRose

Description

@TheSethRose

Summary

Show recently viewed tasks and projects (last 3–5) in the sidebar for quick access.

Current behavior

  • Sidebar is static with links in src/components/dashboard/Sidebar.tsx.
  • Task modal opens on selection in the kanban board (src/components/ui/kanban-board/task-card.tsx -> tasks-client.tsx).

Target behavior

  • Track recently opened tasks and projects.
  • Display a compact list in the sidebar (collapsed state should show icons only).
  • Persist the list in localStorage, with dedupe and recency updates.

Scope

  • Add a recents store and update hooks on task/project open.
  • Sidebar UI block for recents.
  • Limits, dedupe, and clear action.

Acceptance criteria

  • Last 3–5 items persist across reloads.
  • Clicking a recent item opens the task modal or project page.
  • Recents update on every open and do not include duplicates.

References

  • src/components/dashboard/Sidebar.tsx
  • src/app/(dashboard)/tasks/tasks-client.tsx
  • src/components/ui/kanban-board/task-card.tsx
  • src/app/(dashboard)/projects/projects-client.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions