Repository navigation
fix(platform): show archived work in search, labelled as archived - #3326
Conversation
|
Smoke test is red for a reason outside this branch. Docker Hub no longer serves In the job that surfaces as The tag is pinned at It is not specific to CI: a self-hosted install that pulls the image fresh hits the same 401. Worth its own issue and fix; deliberately not folded in here. Every other check is green: 44 success, 2 skipped (fork-PR variants), 1 neutral (Trivy). |
|
Resolved, and my earlier comment's call to action is stale. #3328 landed on main at 00:31 today and switches every reference to The cause I described holds. Docker Hub still refuses |
An archived task on the board or list was signalled by opacity alone, and an archived project said so only in the Projects list. Both now carry an Archived badge: the task row, and the project breadcrumb on every one of its tabs.
The ⌘K palette now returns archived tasks and projects, and rows belonging to an archived project, each labelled Archived or Archived project. Live rows still list first.
Why
#2999 decided that archived material stays searchable and that results say they are archived. #3007 shipped the two labels for it,
archivedandprojectArchived, and scoped the UI out: "Not included: any UI change." Nothing tracked the rest, so the palette kept the pre-decision predicate while the agent path implemented the decision. The same query answered differently depending on who asked.The wider effect was the project set.
searchTasksbuilt its readable projects fromlistProjects, which defaultsincludeArchivedto false, so a live task in an archived project was unfindable. That is the case #3007 named: "A live task in a retired project may still be work nobody closed."searchDocumentsViewresolved projects the same way, so those files went too.What changed
SearchResultgainsbadge, rendered as a chip beside the title. The contract had no field a hit could say this in.searchTasksreturns archived tasks, reads archived projects, and stamps both labels in one place so its two legs cannot disagree.searchProjectsreturns archived projects.PROJECT_COLUMNSalready carriedarchived_at_ms.searchDocumentsViewreads archived projects and stampsprojectArchived. Trash is untouched:lifecycle_statusstays a hard fence.updated_at_ms, so under a recency-only sort an archived row takes the freshest slot on a page capped at 25.Archived work also says so where it lives, not only in search:
opacity-70attask-card.tsx:121andtasks-list.tsx:326), which WCAG 2.1 AA 1.4.1 does not allow.TASK-F5already claimed the rows wore this badge; now they do.The tasks page is affected by the same defect through a different route. It renders
board ∩ search(tasks-workspace.tsx:166), so the board read is a ceiling the search read can only narrow. With Show archived on, the board returned archived tasks andsearchTasksdid not, so typing in Search tasks silently removed the rows the toggle had just revealed. WideningsearchTasksmakes the two agree; the toggle still governs.Risk
A search page is capped at 25 rows and archived rows now compete for it. The two sort keys keep that from costing live results. The lane
a capped page keeps live tasks and drops the archived onepins it at exactly the cap.Chats and contacts are unchanged.
searchChatsexcludes archived threads under its own vocabulary and #2999 never covered it; contact trash is a fence #3007 left alone.Tests
Real Postgres, 630/631 checks across 147/147 lanes. The one failure is
tasks: a burst of serializable commenters, which fails on cleanorigin/maintoo and varies run to run (attempts26 and 28 against a≤24bound; oncelanded=10/12).AND t.archived_at_ms IS NULLin the field leglistProjects(sql, auth)withoutincludeArchivedincludeArchivedThe third mutation showed the merge sort masks the SQL order in a two-row fixture, so the fourth assertion builds 25 live rows plus one archived to pin the SQL key on its own.
That lane asserts both reads parsed before reading them. Its first draft required an
_idthe board does not return, so both parses failed and thewant falsehalf passed while proving nothing.The card's negative case needed a second pass. Forcing the badge to always render did not fail it: the fixture had no project key, so
formatTaskIdentifierreturned null, the identifier row was skipped, and the badge could not appear either way. Both fixtures now render that row, and the permissive mutation fails.Manual boxes
NAV-F15,TASK-F18andPROJ-F22cover what a headless run cannot judge: the chip's weight beside the title, dark mode, and 400px.Scope
Closes #3325. Does not close #2999, which is already closed.
Gate:
bun run checkgreen (43/43) apart from two pre-existing failures reproduced on cleanorigin/main—@tale/docsdeploy-sim.test.tsunder concurrency (passes in isolation, 206/206) and two@tale/sandbox-runtime-daemonhost-dependent tests, in a workspace this branch does not touch.knip:checkgreen;lint:manual777 boxes;lint:sast0 findings in changed files.🤖 Generated with Claude Code