Skip to content

feat: show global error banner on GitHub API rate limit / access denied#74

Merged
yeoldegrove merged 1 commit into
gh-pagesfrom
feat/error_banner
Jul 16, 2026
Merged

feat: show global error banner on GitHub API rate limit / access denied#74
yeoldegrove merged 1 commit into
gh-pagesfrom
feat/error_banner

Conversation

@yeoldegrove

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Add a sticky top-of-page banner that surfaces when any GitHub API call returns 401, 403 (rate limit or auth), or 429. The banner shows a live countdown to the rate-limit reset and prompts unauthenticated users to add a PAT. It auto-clears on the next successful request (with a 1.5 s grace window to avoid parallel-request races) and can be dismissed manually.

Route all GitHub fetches through a new githubFetch() wrapper in utils.js (replacing 8 raw fetch call sites) that injects auth headers and drives the banner. Artifact downloads that expect a 403 for anonymous users opt out via { reportErrors: false } to avoid false-positive banners.

Add a sticky top-of-page banner that surfaces when any GitHub API call
returns 401, 403 (rate limit or auth), or 429. The banner shows a live
countdown to the rate-limit reset and prompts unauthenticated users to
add a PAT. It auto-clears on the next successful request (with a 1.5 s
grace window to avoid parallel-request races) and can be dismissed
manually.

Route all GitHub fetches through a new githubFetch() wrapper in utils.js
(replacing 8 raw fetch call sites) that injects auth headers and drives
the banner. Artifact downloads that expect a 403 for anonymous users opt
out via { reportErrors: false } to avoid false-positive banners.

Signed-off-by: Eike Waldt <waldt@b1-systems.de>
On-behalf-of: SAP <eike.waldt@sap.com>
Assisted-by: Kilo:claude-opus-4-7
Assisted-by: Kilo:claude-sonnet-4-6
@yeoldegrove yeoldegrove added this to the 2026-07 milestone Jul 16, 2026
@yeoldegrove yeoldegrove self-assigned this Jul 16, 2026
@yeoldegrove
yeoldegrove merged commit accb3d4 into gh-pages Jul 16, 2026
4 checks passed
@yeoldegrove
yeoldegrove deleted the feat/error_banner branch July 16, 2026 06:42
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