Skip to content

Fix: "archived" badge never actually visible on /repos - #197

Merged
clickmatos merged 1 commit into
mainfrom
fix-archived-badge-visibility
Aug 26, 2026
Merged

Fix: "archived" badge never actually visible on /repos#197
clickmatos merged 1 commit into
mainfrom
fix-archived-badge-visibility

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

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 set hideArchived=true in the same click that kicked off the archived-status check. The moment the check resolved and archivedBySlug populated, the hideArchived filter 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:

  • "Check archived" — runs the on-demand GitHub check (same /api/repos/check-archived route, 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.
  • "Hide archived" — a second toggle that only appears once a check has completed (new hasCheckedArchived state), for anyone who additionally wants to filter them out of view.

Test plan

  • npx tsc --noEmit — clean
  • npx eslint — clean
  • npx vitest run — 269 passed
  • npm run build (with the same placeholder env vars CI uses) — compiles successfully
  • Not verified in a live browser — same limitation as Add stale + archived filters to the /repos dashboard page #196, needs a live Supabase + GitHub-OAuth session; recommend a preview-deploy check.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview Aug 26, 2026 8:18pm

Request Review

@clickmatos
clickmatos merged commit 7ac9486 into main Aug 26, 2026
5 checks passed
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