Skip to content

Terminal-styled share preview + JANK everywhere#18

Merged
DocNR merged 5 commits into
mainfrom
claude/jank-terminal-preview-and-naming
Jun 17, 2026
Merged

Terminal-styled share preview + JANK everywhere#18
DocNR merged 5 commits into
mainfrom
claude/jank-terminal-preview-and-naming

Conversation

@DocNR

@DocNR DocNR commented Jun 17, 2026

Copy link
Copy Markdown
Owner

What

Two things, per the ask:

1. Share preview now matches the terminal default. The link-preview card (public/og-image.png) was the modern teal look, but the app defaults to the terminal preset, so newcomers got a bait-and-switch. Regenerated it from scripts/og-image/og-image.svg in the terminal aesthetic: near-black background, phosphor-green creature mark, monospace JANK wordmark (Geist Mono → Menlo via fontconfig). og:image cache-buster bumped v2v3 so X / Discord / Telegram re-scrape instead of serving the old teal card. Rendered output: public/og-image.png.

2. JANK as the visible name, everywhere it shows to a person:

  • BRAND.name / shortNameJANK (browser tab title, og/twitter title, PWA name, notification strings)
  • sidebar wordmark (Logo.tsx) → JANK (dropped the lowercase text-transform so the caps actually render)
  • NIP-46 bunker connect client nameJANK (+ test) — the one you flagged; Clave / Amber now show JANK on the pairing approval
  • current UI prose interpolates {{brand}} from BRAND.name instead of hardcoding the name, so it tracks the single source (WhatsNew, UpdatePrompt, MobileWarningBanner, AgentPairingWizard, AgentsSettingsPage); MultiAccountConfirmModals + the TopBar aria-label are plain (non-i18n) literals

Deliberately left lowercase (wire / machine identifiers)

nostrClientTag (NIP-89 client tag stamped on every event you publish), package.json name (npm requires lowercase), the deck-sync d-tag / alt, the agent-pairing config key, and the MCP serverInfo.name. Flipping any of these is a wire/identity change, not a display change.

Notes for merge

  • Branch is merged up to main @ 26.15.1. The bunker-metadata commit had independently landed on main, so the merge had one trivial conflict (Jank vs JANK), resolved to JANK. Net bunker.signer.ts diff is just the name.
  • Version set to 26.15.2. If main advances before you merge, rebump (per your version-vs-main-at-merge habit).
  • Historical release-notes entries left verbatim — only the brand identity and current UI prose changed.
  • Kept the diff minimal: did not run repo-wide prettier. The pinned prettier reformats a lot of main's existing code (quote-style / wrap differences), which would bury this change in unrelated churn. ESLint is clean.

Verified locally

npm run build ✓ · bunker signer tests ✓ (3/3, incl. the JANK metadata assertion) · eslint ✓

Manual smoke for you:

  • Unfurl a jank.army link (or just load /og-image.png?v=3) → terminal card, JANK wordmark
  • Browser tab title + PWA install name read JANK
  • Sidebar wordmark reads JANK
  • Pair a NIP-46 bunker (Clave / Amber) → approval prompt shows JANK

🤖 Generated with Claude Code

claude and others added 5 commits June 14, 2026 20:07
When pairing via a bunker:// URI, the initial NIP-46 connect handshake
now carries jank's app metadata so the remote signer shows "Jank" /
"jank.army" instead of a generic app name. This mirrors the name/url/image
already advertised in the nostrconnect:// URI.

nostr-tools' BunkerSigner.connect() only sends [pubkey, secret] and exposes
no metadata arg, so we issue the connect request via sendRequest() ourselves
with a 4th param. The metadata is a JSON *string* (not a nested object) since
signers decode params as string[] and drop the whole array if any element is
an object; the empty permissions slot is kept so metadata lands in slot 3.

Reconnects (account switch) and the nostrconnect multi-account flow are
unchanged — they intentionally skip the connect handshake.

https://claude.ai/code/session_01BJDLuo6tBk2VwduekkPDnU
Match the share-link preview to the app's default terminal theme, and standardize the visible brand name as JANK.

Preview (public/og-image.png via scripts/og-image/og-image.svg): near-black bg + phosphor-green creature + monospace JANK wordmark, mirroring the terminal-preset dark theme. og:image cache-buster bumped v2->v3 in index.html so scrapers re-fetch.

JANK as the visible name: BRAND.name/shortName (tab title, og/twitter title, PWA name); sidebar wordmark in Logo.tsx (dropped the lowercase text-transform); NIP-46 bunker connect client name (+ test); current UI prose now interpolates the brand from BRAND.name instead of hardcoding (WhatsNew, UpdatePrompt, MobileWarningBanner, AgentPairingWizard, AgentsSettingsPage); MultiAccountConfirmModals + the TopBar aria-label are plain literals.

Wire/machine identifiers stay lowercase on purpose: nostrClientTag, package.json name, deck-sync d-tag/alt, agent-pairing config key, MCP serverInfo.name.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…preview-and-naming

# Conflicts:
#	src/providers/NostrProvider/__tests__/bunker.signer.spec.ts
#	src/providers/NostrProvider/bunker.signer.ts
The UI prose changed in the branding commit interpolates the brand from BRAND.name; add the matching en.ts entries (WhatsNew, UpdatePrompt, MobileWarningBanner, AgentPairingWizard, AgentsSettingsPage). Appended at the end per the i18n convention; other locales fall back to English for these until translated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Prepend the 26.15.2 entry to release-notes.ts and bump package.json to match, arming the in-app What's-new dialog. Version set against main (26.15.1); rebump if main advances before merge.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying jank with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2e29f68
Status: ✅  Deploy successful!
Preview URL: https://e7072ce1.jank-4ii.pages.dev
Branch Preview URL: https://claude-jank-terminal-preview.jank-4ii.pages.dev

View logs

@DocNR DocNR merged commit a7cdd82 into main Jun 17, 2026
2 checks passed
@DocNR DocNR deleted the claude/jank-terminal-preview-and-naming branch June 17, 2026 08:38
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.

2 participants