Skip to content

feat: show the app's logo on the installer pages - #56

Merged
sgtoj merged 1 commit into
mainfrom
feat/installer-icon
Nov 30, 2026
Merged

sgtoj merged 1 commit into
mainfrom
feat/installer-icon

Conversation

@sgtoj

@sgtoj sgtoj commented Nov 30, 2026

Copy link
Copy Markdown
Member

GitHub can't set a GitHub App's logo from a manifest, and there's no API for it, so apps created with the installer always start without one. This adds an optional Icon to installer.Config so the installer can at least hand the logo over and point at where it goes.

  • Setup page: shows the logo, with a link to download it.
  • Success page: adds an "Add the Logo" step that links to the new app's settings page (under the organization when GitHubOrg is set), where it's uploaded under Display information.
  • Validation: New returns an error for an icon GitHub won't take, meaning over 1 MB or not a PNG, JPEG, or GIF.

The logo is embedded in the pages as a data URL, so it needs no extra route and works wherever the handler is mounted. Without Icon, the pages are unchanged.

github-ops-app will use this for its GitHub App icon (cruxstack/github-ops-app#33), so a release after this merges would unblock that PR.

Tested with go test -race (new tests cover the validation, both pages, the org and personal settings links, and escaping) and go vet. I also rendered both pages in Chrome. golangci-lint reports issues elsewhere in the repo, none in this change.

🤖 Generated with Claude Code

GitHub can't set an app's logo from a manifest and has no API for it, so
installer.Config takes an optional Icon. The setup page shows it with a
download link, and the success page links to the app's settings, where
it's uploaded under Display information. New rejects icons GitHub won't
take: over 1 MB, or not a PNG, JPEG, or GIF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sgtoj added a commit to cruxstack/github-ops-app that referenced this pull request Nov 30, 2026
The old icon was built from the Octocat and Slack logos, and blurred at the
sizes Slack and GitHub show it. The new one, two branches merging into a
green check, lives at assets/icon.png with its source in assets/icon.svg,
and is 42 KB, under the 1 MB GitHub takes for a logo.

The Slack setup page already set it on the Slack app. GitHub has no API
for app logos, so the installer now shows it with a download link and
links to the app's settings to upload it, through github-app-setup-go's
new installer.Config.Icon. That isn't released yet, so go.mod points at
cruxstack/github-app-setup-go#56 until it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sgtoj
sgtoj merged commit 3255371 into main Nov 30, 2026
5 checks passed
sgtoj added a commit to cruxstack/github-ops-app that referenced this pull request Nov 30, 2026
v0.8.0 releases installer.Config.Icon (cruxstack/github-app-setup-go#56),
which go.mod pointed at by commit until now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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