feat(launch): friendly GitHub-limit message on Generate; document the score formula

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shay
2026-11-30 06:12:22 -08:00
co-authored by Claude Opus 5.5
parent b737a0171e
commit d907815f19
7 changed files with 78 additions and 1 deletions
+7
View File
@@ -350,6 +350,13 @@ export default function App() {
setGenerateError(body.status === 'not_found' ? 'User not found' : 'Not enrolled')
return
}
if (r.status === 503) {
const body = await r.json().catch(() => ({} as { error?: string }))
if (body.error === 'github_rate_limited') {
setGenerateError("GitHub's API limit is reached for now. Your card builds automatically once it resets (within the hour), and you can paste the embed now.")
return
}
}
if (!r.ok) {
setGenerateError(`Generate failed (HTTP ${r.status})`)
return