Skip to content

Commit 6d4a5bf

Browse files
author
Sean Roberts
committed
fix: show scenario key on report
1 parent b15377c commit 6d4a5bf

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/report-ui/src/scripts/render.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ function renderModals(results: ResultEntry[]): string {
10121012

10131013
function renderModal(entry: ResultEntry, index: number): string {
10141014
const variant = getVariantName(entry.scenarioKey);
1015+
const baseKey = getBaseKey(entry.scenarioKey);
10151016
const baseName = getBaseScenarioName(entry.scenarioName);
10161017
const resolved = entry.resolvedConfig;
10171018
return `
@@ -1020,6 +1021,7 @@ function renderModal(entry: ResultEntry, index: number): string {
10201021
<div class="modal-header">
10211022
<div>
10221023
<h3>${escapeHtml(baseName)}</h3>
1024+
<span class="modal-subtitle">${escapeHtml(baseKey)}</span>
10231025
${variant ? `<span class="modal-subtitle">Variant: ${escapeHtml(variant)}</span>` : ""}
10241026
</div>
10251027
<button class="modal-close">&times;</button>

src/report-ui/src/styles/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,7 @@ a.wf-id.interaction-link {
16421642
}
16431643

16441644
.modal-subtitle {
1645+
display: block;
16451646
font-size: 0.75rem;
16461647
font-family: var(--font-mono);
16471648
color: var(--text-muted);

0 commit comments

Comments
 (0)