Skip to content

chore(web): drop move-to-top and dead palette helpers; share one archive query - #302

Merged
pandec merged 5 commits into
devfrom
chore/audit2-web-nav-trims
Nov 25, 2026
Merged

pandec merged 5 commits into
devfrom
chore/audit2-web-nav-trims

Conversation

@pandec

@pandec pandec commented Nov 25, 2026

Copy link
Copy Markdown
Owner

The audit found fork web code with no users: a palette action nobody uses, two builders that only tests called, and two separate queries fetching the full archive.

F5: remove Move to top. Deletes the command palette's "Move current thread to top" action, lib/threadMoveToTop.ts and its tests, the pending-move state, the README bullet and the user-guide paragraph. Drag reordering keeps the shared reorderActiveThread/reorderPinnedThread and the order-key helpers. The action had no i18n keys.

T5: remove the archive palette builder. Deletes buildArchivedThreadsActionItems and its tests (only tests called it), plus the README claim that the palette opens archived threads. Upstream's Settings search result "Archived threads" stays the palette entry.

T4: remove isSidebarActiveWorkThread. Its distinct status cases (running, pending approval or input admitted; failed not admitted) move into an it.each on nextActiveWorkThreadKeys. The shared isActiveWorkThread becomes module-private (knip).

T19: one full-archive query. Settings, SP Labs owner lookups, desktop thread links and the recent-shelf fallback now share one archivedSnapshotAtom. It refetches when the fork's archive sequence moves (this includes unarchives) or the shell snapshot generation changes. Labs no longer keeps its own query family. This also fixes two cases review found: Settings stayed stale after an unarchive from another client, and a reset of removedAt could hide an archive. Fork diff for the touched files is unchanged (280 lines).

T20 skipped. The sidebar draft-count selector is upstream code that the fork only extends. Deriving the count from the rendered IDs would grow the fork diff from 3500 to 3515 lines in Sidebar.tsx.

Fork diff: 46 insertions, 579 deletions across 13 files.

Made by Claude Opus 5.5 in Claude Code (T3 Code), reviewed by GPT 6.2 Astra and Claude Opus.

…apper; share archive query

Remove the palette's Move to top action and threadMoveToTop, the unused
buildArchivedThreadsActionItems builder, and isSidebarActiveWorkThread.
SP Labs owner lookups now read the Settings full-archive query.
@pandec
pandec merged commit f266bf2 into dev Nov 25, 2026
3 checks passed
@pandec
pandec deleted the chore/audit2-web-nav-trims branch November 25, 2026 08:53
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