Fix: "archived" badge never actually visible on /repos - #197
Merged
Conversation
The single combined button set hideArchived=true in the same click that kicked off the archived check — so the moment archived status arrived, those rows were immediately filtered out of the list, and the "(archived)" badge could never actually be seen. Now "Check archived" only runs the check and tags matched repos with the badge; a separate "Hide archived" toggle appears once a check has completed, for anyone who wants to additionally filter them out. Co-Authored-By: claude-code_2-1-238_agent <claude-code_2-1-238_agent@iris.invalid>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 26, 2026
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.
Summary
Follow-up to #196 (merged before this fix landed on that branch — opening fresh).
The merged version of
RepoList's archived-check combined "check" and "hide" into a single button: clicking it sethideArchived=truein the same click that kicked off the archived-status check. The moment the check resolved andarchivedBySlugpopulated, thehideArchivedfilter immediately removed those rows from the list — so the(archived)badge, while correctly implemented, could never actually be seen; matched repos disappeared the instant they were identified.Splits it into two controls:
/api/repos/check-archivedroute, same ephemeral/no-DB behavior as Add stale + archived filters to the /repos dashboard page #196), tags matched repos with the(archived)badge. Does not filter anything.hasCheckedArchivedstate), for anyone who additionally wants to filter them out of view.Test plan
npx tsc --noEmit— cleannpx eslint— cleannpx vitest run— 269 passednpm run build(with the same placeholder env vars CI uses) — compiles successfully🤖 Generated with Claude Code