From 96ea0c0a2694ca865d0aa372cf2ca5930e551d4a Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 31 May 2026 21:46:23 -0400 Subject: [PATCH] =?UTF-8?q?Linked=20Designs:=20Credits=20=E2=80=94=20displ?= =?UTF-8?q?ay=20names=20+=20working=20profile=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two fixes to the Credits panel + preview surface: 1. Anchor click routed through openProfilePage(pk) instead of navigating to /u/ — the latter 404s because the SPA only handles those routes via JS, there's no static file behind them. Mirrors the pattern used by the existing author link in the preview header (preventDefault + openProfilePage). 2. Display name pulled from _feedCache.profiles / state.community .profiles with shortPubkey() as fallback. For contributors who aren't in the cache yet, _hydrateCreditProfiles fetches kind-0 metadata via populateCommunityProfiles in the background and re-renders the list when names arrive. Per-pubkey inflight tracking dedupes concurrent fetches across re-renders. Editor panel re-renders the full panel on hydration. Preview section rebuilds just its