Skip to content

fix(web): remove stale GitHub rate-limit banner#1734

Closed
nikhilachale wants to merge 1 commit into
ComposioHQ:mainfrom
nikhilachale:feat/1686
Closed

fix(web): remove stale GitHub rate-limit banner#1734
nikhilachale wants to merge 1 commit into
ComposioHQ:mainfrom
nikhilachale:feat/1686

Conversation

@nikhilachale
Copy link
Copy Markdown
Collaborator

Summary

  • Remove the dead PR rate-limit blocker detector and dashboard banner.
  • Stop hiding PR metadata based on the legacy "API rate limited or unavailable" blocker string; keep enriched === false as the unavailable-data guard.
  • Remove stale rate-limit fixture coverage from web tests.

Closes #1686.

Validation

  • pnpm install
  • pnpm build (fails in this session because exported NODE_ENV=development makes Next prerender /404 with the known <Html> error)
  • NODE_ENV=production pnpm build (passes; existing warnings for optional @composio/core in tracker-linear and one non-null assertion in terminal code)
  • pnpm typecheck
  • pnpm lint (passes with existing warnings)
  • pnpm test
  • NODE_ENV=test pnpm --filter @aoagents/ao-web test (changed component tests pass; full web suite still has unrelated existing failures in api-routes.test.ts PR enrichment expectations and sessions/[id]/page.test.tsx missing TestErrorBoundary)

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 8, 2026

Greptile Summary

This PR removes the isPRRateLimited helper and all UI tied to the legacy "API rate limited or unavailable" blocker string — the dashboard banner, the per-card rate-limit chip, and the suppression of PR metadata fields — leaving isPRUnenriched (enriched === false) as the sole guard for unreliable PR data.

  • Deletes isPRRateLimited from types.ts and strips its 15+ call sites across Dashboard, SessionCard, PRStatus, BottomSheet, SessionDetailPRCard, and session-detail-utils.
  • Updates the merge-conflict-actions test to use enriched: false (the new contract) instead of the rate-limit blocker string, and removes the banner show/dismiss test.

Confidence Score: 5/5

Safe to merge; the removal is consistent across all call sites and the test updates correctly reflect the new enriched-flag contract.

Every reference to isPRRateLimited is gone, the new enriched-flag guard is wired identically to what was removed, and the test that previously relied on the rate-limit blocker string now uses enriched:false — which is exactly what hasMergeConflicts checks. No logic paths were left half-migrated.

No files require special attention. The migration is uniform across all components.

Important Files Changed

Filename Overview
packages/web/src/lib/types.ts Removes isPRRateLimited() and its usage in getDetailedAttentionLevel(); the unenriched guard is now the sole data-reliability gate.
packages/web/src/components/Dashboard.tsx Removes rateLimitDismissed state, anyRateLimited memo, and the yellow rate-limit dismissable banner from the dashboard body.
packages/web/src/components/PRStatus.tsx Removes all isPRRateLimited guards; size pill, CI badge, and review-decision chip now rely solely on isPRUnenriched to decide whether to shimmer or render.
packages/web/src/components/SessionCard.tsx Removes isPRRateLimited, per-card 'PR data rate limited' chip, and rate-limit guards around isReadyToMerge, visiblePassingChecks, and alerts.
packages/web/src/components/SessionDetailPRCard.tsx Removes isPRRateLimited from imports and from hasMergeConflicts; mergeability is now considered reliable whenever enriched !== false.
packages/web/src/components/tests/SessionDetail.mergeConflictActions.test.tsx Updates the 'hides conflict actions when mergeability data is not reliable' test to use enriched:false instead of a rate-limit blocker string; logic is correct.
packages/web/src/components/session-detail-utils.ts Removes isPRRateLimited from getCiShortLabel, getReviewShortLabel, and ciToneClass; unenriched check is now the only guard.
packages/web/src/components/BottomSheet.tsx Removes isPRRateLimited from showLivePrData; reformatting only otherwise.
packages/web/src/components/tests/Dashboard.mobile.test.tsx Removes the rate-limit banner show/dismiss test that exercised the now-deleted banner code.

Reviews (1): Last reviewed commit: "fix(web): remove stale GitHub rate-limit..." | Re-trigger Greptile

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.

False "GitHub API rate limited" banner from transient failures (60-min stale cache)

1 participant