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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user