Skip to content

Add "Manage GitHub access" link to the account dropdown#78

Merged
super3 merged 5 commits into
mainfrom
claude/manage-github-access
Jun 30, 2026
Merged

Add "Manage GitHub access" link to the account dropdown#78
super3 merged 5 commits into
mainfrom
claude/manage-github-access

Conversation

@super3

@super3 super3 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

What

Adds a Manage GitHub access item to the signed-in user (account) dropdown in the header, next to "Sign out". It opens GitHub's installed-apps settings (https://github.com/settings/installations) in a new tab.

Why

When you add a repo to dashban, the GitHub App still needs to be granted access to that repo before it can read/write its issues. This puts a one-click path to manage that access in the account menu.

Note

Supersedes #77 — same change, moved to its own dedicated branch (claude/manage-github-access) so Railway's per-PR preview deploy fires for it. Future changes will each get their own branch too.

The link lands on your Installed GitHub Apps list. If you want it to deep-link straight to the dashban app's repo-picker, send me the app slug (github.com/apps/<slug>).

Testing

  • npm test — 966 passing.
  • npm run test:coverage — 100% across all files.
  • npm run lint — 0 errors (7 pre-existing warnings unchanged).

🤖 Generated with Claude Code

https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB


Generated by Claude Code

Newly added repositories need the GitHub App granted access before the
app can read/write their issues. Add a "Manage GitHub access" item to the
signed-in user dropdown (next to "Sign out") that opens GitHub's
installed-apps settings (https://github.com/settings/installations),
where repository access for the app can be added or removed.

Tests + 100% coverage + lint all green (966 tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
Point the "Manage GitHub access" link at the dashban app's installation
target (github.com/apps/dashban/installations/select_target) so it lands
directly on the app's repo selection, instead of the generic installed-apps
list.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
@railway-app railway-app Bot temporarily deployed to dashban / dashban-pr-78 June 29, 2026 21:14 Destroyed
Widen the user dropdown (w-48 -> w-56) and add whitespace-nowrap so
"Manage GitHub access" no longer wraps to two lines.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
@railway-app railway-app Bot temporarily deployed to dashban / dashban-pr-78 June 29, 2026 21:30 Destroyed
select_target dumped the user on GitHub's account-picker. Link to the
app's page (github.com/apps/dashban) instead; one Configure click opens
the repo-access settings. (A static link can't reach the per-install
repo-access page directly without the installation id.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
@railway-app railway-app Bot temporarily deployed to dashban / dashban-pr-78 June 29, 2026 21:40 Destroyed
@railway-app

railway-app Bot commented Jun 29, 2026

Copy link
Copy Markdown

🚅 Deployed to the dashban-pr-78 environment in dashban

Service Status Web Updated (UTC)
dashban ✅ Success (View Logs) Web Jun 29, 2026 at 9:41 pm

Look up the user's dashban installation id (GET /user/installations via
the existing authenticated proxy) and point the link straight at
github.com/settings/installations/<id> — the page that lands directly on
the app's repository access. The result is cached after the first lookup;
until it resolves (or if the lookup fails / there's no install) the link
falls back to the app's page. No new backend endpoint — it reuses the
GitHub proxy.

Also switch the github-auth test's module reset to jest.resetModules();
the previous delete-require.cache was a no-op under Jest, which let
module-level state leak between tests.

Tests + 100% coverage + lint all green (973 tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
@railway-app railway-app Bot temporarily deployed to dashban / dashban-pr-78 June 30, 2026 14:27 Destroyed
@super3 super3 merged commit dddc75e into main Jun 30, 2026
2 checks passed
@super3 super3 deleted the claude/manage-github-access branch June 30, 2026 14:29
@super3 super3 added the archive label Jun 30, 2026 — with Dashban
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants