Skip to content

Show app and template logos in My connections and the catalogs - #257

Merged
tnkuehne merged 2 commits into
feat/template-assetsfrom
feat/connector-logos
Nov 21, 2026
Merged

tnkuehne merged 2 commits into
feat/template-assetsfrom
feat/connector-logos

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

My connections, the app catalog and the template catalog show names only. The app list already shows an app's favicon from its deployed assets, but:

  • The icon endpoint required app management access. My connections and the catalog list apps for members who cannot manage them.
  • Templates have no deployment, so there was no icon to show.
  • Icon responses were sent with cache-control: no-store, so every page view requested every icon again.

Change

One icon component everywhere. IconImage is shared by AppIcon and the new TemplateIcon. It shows a neutral icon until the image loads or when there is none. My connections, the app catalog, the template list and the template page use it.

Icon access for members. /apps/{appId}/icon also serves apps of the member's organization that the catalog lists or that export UserConnection. These are exactly the apps the catalog and My connections show them. The catalog and My connections entries carry activeDeploymentId to build the icon URL.

Template icons. /catalog/templates/{templateId}/icon reads the static asset directory from the template's wrangler.jsonc on main. It returns the first favicon path the app list also recognizes, with the same size limit and security headers. The browser gets it from the control plane, never from GitHub directly.

Caching.

  • An app icon requested with its active deployment ID (?deployment=, as the UI does) is private, max-age=31536000, immutable; a new deployment changes the URL. Other app icon requests revalidate.
  • Template icons are cached for an hour, since templates change on main without a version in the URL.
  • The API's no-store default now applies only where a route sets no policy.

The OpenAPI description covers both icon endpoints.

Screenshots

Synthetic fixtures: three connectors with the template favicons from the previous PR and one app without a favicon. Rendered from main and this branch with the same data. Unchecked: the template icon while GitHub is unavailable; it falls back to the neutral icon like a missing one.

My connections

Before After
1280 px, light
1280 px, dark
390 px, light
390 px, dark

App catalog

Before After
1280 px, light
1280 px, dark
390 px, light
390 px, dark

Template catalog

Before After
1280 px, light
1280 px, dark
390 px, light
390 px, dark

Template page

Before After
1280 px, light
1280 px, dark
390 px, light
390 px, dark

Tests

  • The icon integration test covers the immutable and revalidating responses and member access through a catalog listing and through UserConnection. A member without either still gets 404.
  • The template install integration test serves the GitHub template icon with its headers. An unknown template gets 404 and an invalid ID 400.
  • Catalog and My connections tests include activeDeploymentId; the CLI test covers the new field in my-connections list.
  • Ran pnpm check, all unit and integration tests, and the CLI connection test (RUN_CLI_TESTS=1).

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; all previous findings are addressed and no new blocking issues were found.

Summary

Adds shared app and template icons to My connections and the catalogs.

  • App catalogs and My connections show deployment icons.
  • Template catalogs and detail pages show each template's logo.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[My connections and app catalog] --> B[AppIcon]
  C[Template list and page] --> D[TemplateIcon]
  B --> E[IconImage]
  D --> E
  E --> F[Authenticated icon endpoint]
  F --> G[Active app assets]
  F --> H[Template assets on GitHub]
  E --> I[Neutral icon while loading or after failure]
Loading

Reviews (2) · Last reviewed commit: "Read JSON-configured template icons and ..." · Reviewed by Greptile

@tnkuehne
tnkuehne added this pull request to stack #258 November 20, 2026 23:04
Comment thread packages/contracts/src/index.ts Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 56772a8 Nov 21 2026, 10:24 AM

My connections, the app catalog and the template catalog show the same
favicon the app list shows. Members may read the icon of an app the
catalog or My connections lists for them, so the endpoint also admits
apps of their organization that are listed in the catalog or export a
UserConnection entrypoint.

Templates have no deployment yet, so a new endpoint serves a template's
favicon from the static assets its wrangler.jsonc declares on the main
branch. Browsers cache it for an hour.

App icon URLs name the active deployment, so a response for that
deployment is cached as immutable. Other icon requests revalidate.
@tnkuehne
tnkuehne force-pushed the feat/connector-logos branch from 8508d37 to 56772a8 Compare November 21, 2026 10:23
@tnkuehne
tnkuehne merged commit c4add92 into main Nov 21, 2026
16 checks passed
@tnkuehne
tnkuehne deleted the feat/connector-logos branch November 21, 2026 10:30
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