fix(dashboard): show pic_ prefix on API-key rows

The backend's ApiKeyDto.prefix is just the 8-char public head
(e.g. "PKXPCPH3"); the actual token the user pastes into their
CLI is "pic_PKXPCPH3…". Display the full visible identifier so
operators can match a row against the token in their notes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
MechaCat02
2026-05-27 19:27:55 +02:00
parent 0c9f11558a
commit fc35d59236

View File

@@ -375,7 +375,7 @@
{#each keys as key (key.id)} {#each keys as key (key.id)}
<div class="row"> <div class="row">
<div class="name-cell">{key.name}</div> <div class="name-cell">{key.name}</div>
<div class="mono prefix">{key.prefix}</div> <div class="mono prefix">pic_{key.prefix}</div>
<div class="scopes-cell"> <div class="scopes-cell">
{#each key.scopes as s (s)} {#each key.scopes as s (s)}
<span class="scope-pill">{s}</span> <span class="scope-pill">{s}</span>