Repository navigation
chore(web): drop move-to-top and dead palette helpers; share one archive query - #302
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsand its tests, the pending-move state, the README bullet and the user-guide paragraph. Drag reordering keeps the sharedreorderActiveThread/reorderPinnedThreadand the order-key helpers. The action had no i18n keys.T5: remove the archive palette builder. Deletes
buildArchivedThreadsActionItemsand 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 anit.eachonnextActiveWorkThreadKeys. The sharedisActiveWorkThreadbecomes 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 ofremovedAtcould 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.