Skip to content

fix(desktop): inline "Sign in" on private-repo / rate-limit errors#163

Merged
oratis merged 1 commit into
mainfrom
ux/github-dialog-auth-hints
Jun 14, 2026
Merged

fix(desktop): inline "Sign in" on private-repo / rate-limit errors#163
oratis merged 1 commit into
mainfrom
ux/github-dialog-auth-hints

Conversation

@oratis

@oratis oratis commented Jun 14, 2026

Copy link
Copy Markdown
Owner

From the GitHub-vault review backlog. A private repo (or a hit rate limit) while signed out showed a dead-end red error — the user had to know that signing in was the fix.

Now the error is signed-in-aware and, when signing in would help, an inline "Sign in" button sits next to it:

  • 404 signed out → "Not found — if it's a private repo, sign in first." + Sign in
  • 403 signed out → "GitHub rate limit reached — sign in to raise it." + Sign in
  • 401 → "Sign-in expired — please sign in again." + Sign in
  • signed-in 404/403 stay plain (no false nudge).

classifyHttp() replaces httpError(); failWith()/clearError() drive an authHint.

tsc ✓ · vitest (3) ✓ · biome ✓ · build ✓.

🤖 Generated with Claude Code

…errors

A private repo (or a hit rate limit) while signed out produced a dead-end red
error in the GitHub dialog — the user had to know that signing in was the fix.
Now the message is signed-in-aware and, when signing in would help, an inline
"Sign in" button sits right next to the error:

- 404 signed out → "Not found — if it's a private repo, sign in first." + Sign in
- 403 signed out → "GitHub rate limit reached — sign in to raise it." + Sign in
- 401 → "Sign-in expired — please sign in again." + Sign in
- signed-in 404/403 stay plain (no false sign-in nudge).

classifyHttp() replaces httpError(); failWith()/clearError() drive an authHint.

tsc ✓ · vitest (3) ✓ · biome ✓ · build ✓.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@oratis oratis merged commit 626b527 into main Jun 14, 2026
4 checks passed
@oratis oratis deleted the ux/github-dialog-auth-hints branch June 14, 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