Skip to content

panel: render custom (data-URI) pack logos in the store gallery - #18

Merged
pipozzz merged 1 commit into
mainfrom
feat/custom-pack-logo-panel
Oct 5, 2026
Merged

pipozzz merged 1 commit into
mainfrom
feat/custom-pack-logo-panel

Conversation

@pipozzz

@pipozzz pipozzz commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the registry change (Nomploy/nomad-packs#142): the registry now publishes a kind: "custom" icon — a self-contained logo as a data:image/svg+xml src — for packs with no Simple Icons glyph (e.g. goliash).

  • PackLogo (add-pack.tsx) gains a kind === "custom" branch that renders <img src={icon.src}>.
  • PackIcon type updated in both add-pack.tsx and packages/server/src/setup/pack-registry.ts (the mapper already forwards icon untouched, so src was surviving at runtime — this just types it).
  • Unknown kinds still fall back to the existing name-guess → monogram path.

Type-clean: the two changed files have no tsc errors (the 8 pre-existing tsc errors on main are unrelated — logs/show, schedules, autoscaler, nomad.ts 1303/1393).

Needs a panel redeploy to take effect.

🤖 Generated with Claude Code

The registry now publishes a kind="custom" icon (a self-contained logo as a
data-URI src) for packs with no Simple Icons glyph, e.g. goliash. Teach
PackLogo to render it as an <img src>, and add the variant to the PackIcon
type (add-pack.tsx + pack-registry.ts). Unknown kinds still fall back to the
name-guess → monogram path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pipozzz
pipozzz merged commit 4f246f3 into main Oct 5, 2026
2 checks passed
@pipozzz
pipozzz deleted the feat/custom-pack-logo-panel branch October 5, 2026 07:25
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