Skip to content

blog: pin sidebar profile avatar locally (stop hotlinking GitHub) - #233

Closed
Jesssullivan wants to merge 1 commit into
mainfrom
jess/pin-profile-avatar
Closed

blog: pin sidebar profile avatar locally (stop hotlinking GitHub)#233
Jesssullivan wants to merge 1 commit into
mainfrom
jess/pin-profile-avatar

Conversation

@Jesssullivan

Copy link
Copy Markdown
Owner

What

Vendors the current GitHub profile picture (460×460 JPEG, 38KB, as served by avatars.githubusercontent.com/u/37297218) into static/images/profile-avatar.jpg and points both ProfileSidebar imgs (compact 64px + desktop 250px) at it. Two-line component diff + one asset.

Why

ProfileSidebar has hotlinked https://github.com/Jesssullivan.png since #20 (February), so any change to the GitHub account picture instantly restyles prod — operator noticed the sidebar switch to the new yellowthroat avatar and ruled: deliberate change, pin it locally. This also removes a third-party request from every page bearing the sidebar and makes the flagship immune to future avatar drift, GitHub rate-limiting, and incidents (today's gxycch3076xk-style).

Verification

  • svelte-check --threshold error: 0 errors (after svelte-kit sync + prebuild in a fresh worktree)
  • Only two hotlink sites exist in the repo (verified by grep); both updated

Notes

  • Draft on purpose: a non-draft PR fires shadow-preview.yml, whose infra-dispatch step is currently failing (TIN-2902 lane breakage + a 401 observed during the GitHub incident) — that red would be pre-existing lane state, not this change. Flip to ready + merge whenever you're at the helm; merging deploys prod.
  • The bird is a Common Yellowthroat; if a footer/alt credit line is ever wanted for it, that's the credits.ts-style provenance flow, out of scope here.

ProfileSidebar hotlinked https://github.com/Jesssullivan.png since #20,
so any change to the GitHub account picture instantly restyles prod.
Vendor the current avatar (460x460 JPEG as served by GitHub) into
static/images/profile-avatar.jpg and point both the compact and desktop
sidebar imgs at it. Third-party request removed; future GitHub avatar
changes no longer propagate silently.
@Jesssullivan

Copy link
Copy Markdown
Owner Author

Parking this visual/profile asset change under the weekly two-lane freeze. Avatar and broader visual work resume with the later TIN-2413 design lane; the branch remains recoverable. No code or asset is deleted.

Jesssullivan added a commit that referenced this pull request Aug 13, 2026
…recut of #257) (#260)

* fix(ui): pin sidebar profile avatar locally, stop hotlinking GitHub (recut of #257)

ProfileSidebar hotlinked https://github.com/Jesssullivan.png since #20,
so any change to the GitHub account picture instantly restyles prod.
Vendor the current avatar (460x460 JPEG as served by GitHub) into
static/images/profile-avatar.jpg and point both the compact and desktop
sidebar imgs at it. Third-party request removed; future GitHub avatar
changes no longer propagate silently.

Recut of closed PR #257 (itself a recut of #233); donor branch
recut/pin-profile-avatar, donor commit c284e6c.

(cherry picked from commit c284e6c)

* test(ui): assert pinned sidebar avatar
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