This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
[Spec #26] Shipped fade & auto-archive - #67
Merged
Merged
Conversation
Add a pure shipped-fade check, shippedAt entry capture (merged-PR and manual), auto-archive on read + periodic pass, and an Archived sink column with restore. Persist shippedAt end-to-end (Worktree/WorktreeMeta, IPC, RPC schema+forward, sync allowlist) and add the autoArchiveDelayDays setting. refs #51
Folder workspaces carry no persisted shippedAt and the batch meta applier is git-worktree-only; exclude them so a shipped folder never persists a stray meta entry. refs #51
Every board card gets an Archive menu item (stage untouched) so manual archive stays available any time, separate from worktree delete. refs #51
Dedupe the card actions dropdown + branch row into a shared component, drop the always-true onArchiveCard guard, and stamp shippedAt at the moment a manual stage write ships a card. Add a merged-PR entry-capture test. Refs: #26
- extract restoredShippedCardMeta pure fn + vitest coverage (restore re-arm) - remove dead onArchiveCard ternary guard in FeatureBoardCard - build test prCache key via getGitHubPRCacheKey instead of hand-built string Refs #51
64ix
marked this pull request as ready for review
August 25, 2026 09:21
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Implements the shipped fade & auto-archive: a configurable delay (default 14 days, in settings) counted from the moment a feature-board card enters
shipped(any path). At the deadline the card auto-archives into a collapsed Archived sink on the feature board (count in the header, expandable, 1-click restore). The stage staysshipped— archive is a display/storage rule, never a stage change. Restore returns the card toshippedand re-arms the delay. Manual archive stays available any time; worktree deletion remains the separate existing action.Built on the merged foundation: the feature board (#24 / #44) supplies the shipped column; the existing
isArchivedworktree flag (spec 1) and spec-29 sync allowlist carry the archive state.Spec & Tickets
Closes #26
Closes #51
Acceptance criteria
shipped-fade.tsisShippedFaded(pure); boundary cases inshipped-fade.test.ts(exact-deadline archives, day-before doesn't)mergedPrObservedAtFor; tests inuse-shipped-fade-archive.test.tsuse-shipped-fade-archive.ts: pass on mount/every worktree/settings change + 60s interval (SHIPPED_FADE_CHECK_INTERVAL_MS)FeatureBoardArchiveSink.tsx— collapsed by default, header shows "Archived (n)", expandable;FeatureBoardArchiveCard.tsxrenders rowsshippedand re-arms the delayrestoredShippedCardMetare-stampsshippedAtand clearsisArchived; stage untouched; tested inshipped-fade.test.tsisArchived/shippedAt; test asserts noworkflowStagein updatesautoArchiveDelayDayssetting (default 14) in General settings section (GeneralWorkspaceSettingsSection.tsx,settings.ts)FeatureBoardCard.tsx); no delete path touchedChanges
shipped-fade.ts): pureisShippedFadeddeadline check,resolveShippedEntryTimeentry-time fallback,restoredShippedCardMetarestore patch.use-shipped-fade-archive.ts): app-wide pass on read + 60s idle interval; captures shipped entry times, auto-archives overdue cards, skips folder workspaces and already-archived cards.FeatureBoardArchiveSink.tsx); manual Archive action on every board card (FeatureBoardCard.tsx).autoArchiveDelayDays(days, default 14) wired through global settings types, store slice, and the General settings section.QA plan
shippedAtand stays visible before the delay elapses.autoArchiveDelayDays = 1, wait past the deadline (or backdate) → card moves into the collapsed Archived sink; header reads "Archived (1)".Decisions (Problem → Resolution)
PRInfo.updatedAt(frozen after merge), falling back to fetch time for pre-migration rows.now, granting a fresh delay window (documented degradation).restoredShippedCardMetawith tests; dead ternary guard removed; test cache key built viagetGitHubPRCacheKey.FeatureBoardCardActions/branch-row components dedupe the card dropdown;buildStageDeclarationMetastampsshippedAtat the moment a manual stage write ships a card (entry time from the ship action, not first observation).