Skip to content

Remove the archived-repos check/filter from /repos - #199

Merged
clickmatos merged 1 commit into
mainfrom
remove-archived-filter
Aug 26, 2026
Merged

Remove the archived-repos check/filter from /repos#199
clickmatos merged 1 commit into
mainfrom
remove-archived-filter

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

Summary

Decided not to keep the archived-check feature added in #196/#197: 945 of 948 RocketBus repos are private (99%), and the check only works for public repos since the session's GitHub OAuth scope has no repo grant. Expanding that scope (re-consent flow, larger security surface) wasn't worth it for a feature that would mostly show "unknown" for real data. See #198 (now superseded, will close) for the investigation that surfaced this.

Removes:

  • checkArchivedStatus() from lib/github.ts
  • POST /api/repos/check-archived
  • the "Check archived"/"Hide archived" buttons, the archived badge, and related state in repo-list.tsx
  • the now-unused archived*/*Archived* translation keys

Unaffected: the stale filter ("no push in 90d+") — it's a pure client-side filter over data the page already loads, doesn't depend on any of this.

Also un-extracts normalizeRepoSlug back into lib/integrations/datadog/sync.ts (deleting lib/repo-slug.ts) — it was only pulled into its own module because repo-list.tsx importing it dragged sync.ts's server-only dependency chain into the client bundle (the build failure fixed on this same feature earlier). With that import gone, sync.ts is the only consumer again, so the split no longer serves a purpose.

Test plan

  • npx tsc --noEmit — clean
  • npx eslint — clean
  • npx vitest run — 269 passed (unchanged; datadog-sync.test.ts's normalizeRepoSlug coverage still applies to the un-extracted version)
  • npm run build — compiles successfully, 48 routes (down from 49 — /api/repos/check-archived gone, as expected)

🤖 Generated with Claude Code

Decided not to keep this: 945 of 948 RocketBus repos are private
(99%), and the check only works for public repos (the session's
GitHub OAuth scope has no `repo` grant) — expanding that scope wasn't
worth the re-consent/security-surface cost for a feature that would
mostly show "unknown" anyway. Removes:

- checkArchivedStatus() from lib/github.ts
- POST /api/repos/check-archived
- the "Check archived"/"Hide archived" buttons, archived badge, and
  related state in repo-list.tsx
- the now-unused archived-* translation keys

The stale filter (no push in 90d+) is unaffected — it doesn't depend
on any of this, it's a pure client-side filter over data the page
already loads.

Also un-extracts normalizeRepoSlug back into
lib/integrations/datadog/sync.ts (deleting lib/repo-slug.ts) — it was
only pulled out because repo-list.tsx importing it dragged sync.ts's
server-only module graph into the client bundle; with that import
gone, sync.ts is the only remaining consumer again, so the separate
module no longer serves a purpose.

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 9:01pm

Request Review

@clickmatos
clickmatos merged commit a85f2ca 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