Skip to content

Search projects and sessions from the Tangent sidebar - #3016

Draft
Mbeaulne wants to merge 1 commit into
MB/tangent-ui-declutterfrom
MB/tangent-sidebar-search
Draft

Mbeaulne wants to merge 1 commit into
MB/tangent-ui-declutterfrom
MB/tangent-sidebar-search

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Help people find a project or an old session quickly once the Projects sidebar gets long.

Current behavior

  • The Projects sidebar lists every project you created or pinned, but there's no way to search it.
  • Finding an old session means scrolling, opening projects one at a time, and clicking "Show more" in each.

What changes

  • A quiet search box sits under "New chat": a magnifier icon and a grey "Search" placeholder, with the same light hover as the rows around it.
  • Typing filters the list by project name and session title, ignoring case. Untitled sessions are found by the name the sidebar shows them with, such as "Session 2".
  • A project with matching sessions opens and shows only those sessions, all of them. A project that matches only by name keeps its usual open or closed state.
  • When nothing matches, the sidebar says "No matching projects or sessions".
  • Escape, or the "×" in the box, clears the search and brings the full list back. Opening or closing projects while searching doesn't change the layout the sidebar remembers.
  • Other projects' sessions are only loaded once you start typing. On the first search, matching sessions can appear a moment after the projects do.

How to test

  1. Open a project in Tangent, with at least three projects that each have a session, one of them renamed (for example "Publish Hello World").
  2. Click "Search" under "New chat" and type part of a project's name. Only projects whose names match stay in the list.
  3. Clear the box with the "×" and type part of the renamed session's title, such as "publish". Its project opens and shows only that session.
  4. Click the session. It opens in place, as it does without a search.
  5. Type "session 1". Each project's first untitled session is listed under its project.
  6. Type something nothing matches. The sidebar says "No matching projects or sessions".
  7. Press Escape. The box empties and every project comes back, open or closed as it was before you searched.
  8. With a search typed, open or close a project, then clear the search and reload the page. The projects are open or closed as they were before you searched.

Checks run on this branch: typecheck, lint, Prettier on the changed files, and knip are clean, and the 706 tests in the Tangent and project-service folders pass, including new ones for the search. Not yet tried in the browser.

Related Issue and Pull requests

Type of Change

  • New feature

Line Breakdown

Category Added Removed
Production code 220 24
Comments 21 7
Tests 196 4
Total 437 35

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

None yet.

Additional Comments

  • Shared code: useProjectResources now builds its query from an exported projectResourcesQueryOptions, so the sidebar can read many projects' sessions from the same cache. The hook behaves as before.

🤖 Generated with Claude Code

A long Projects list had no way to find a project or an old session other
than scrolling and opening each project. A quiet search box under New chat
now filters the list by project name and session title, opening each
project with a matching session to show just those sessions. Escape or the
clear button brings the full list back, and nothing opened while searching
changes the remembered layout. Other projects' sessions are only fetched
while a search is typed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: MB/tangent-sidebar-search/0fc7f66

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant