Repository navigation
Search in Settings → Archive (web), matching the mobile archive #38011
Replies: 2 comments 1 reply
|
+1 from a heavy user. I have about 5,300 archived threads across five connected environments, 5,100 of them on one server. The Archive page lists every one, grouped by project, so finding a thread to unarchive or delete means scrolling through thousands of rows. Before #41539, opening the page also froze the Windows desktop app for about 16 seconds (nightly 0.1.12-nightly.20261123.5151). Now that rows mount in chunks, the client-side filter proposed here, over the snapshots the page already loads, would make the page usable at this size. Matching on environment name matters to me too, since my archived threads are spread across five environments. |
|
+1. We stopped archiving threads because archived threads drop out of sidebar search and the command palette, and the web Archive page has no way to find one. The branch above covers what we need: title, project and environment matching, client side only, no server changes. @bompus, since you are vouched, would you be willing to open it as a PR, or could vidhatrashukla open it from the branch? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
The mobile app's archived-threads screen has a search bar. The web and desktop Settings → Archive page doesn't. It lists every archived thread, grouped by project, so finding one to unarchive or delete means scrolling and reading every title. The settings search (
/) reaches the Archive page but not the threads on it.Proposal
Add a search field at the top of the web Archive page that filters as you type, using the same matching rules as mobile (
apps/mobile/src/features/archive/archivedThreadList.ts):scoreThreadSearch, the same one the sidebar and mobile use) or by environment name. The list keeps its newest-first order.Before and after
I built this on a branch in my fork to try it out. The screenshots come from the repo's own scenario harness, using seeded demo projects and the dev replay agent.
main)Branch
vidhatrashukla/t3code@main...vidhatrashukla:t3code:feat/archived-threads-search
ArchivedThreadsPanel.tsx: the input, the filtered list and the no-match state. Grouping moves into a small hook so React Compiler caches it and a keystroke only re-runs the filter.ArchivedThreadsPanel.logic.ts: the filter, built from the shared search helpers, with unit testsscripts/scenarios/archived-threads-search-filters-by-title.e2e.ts: a scenario that seeds 4 archived threads in 2 projects, filters them, checks the no-match state, and checks that Esc clears the search without closing SettingsPer CONTRIBUTING, I haven't opened a PR. If a maintainer wants this, I'm happy to open one from the branch above, or you can take the branch as-is.
Thank you!
All reactions