Skip to content

Commit 4e074c6

Browse files
committed
show series date in GPU tooltip with actual date when they differ
1 parent 4da3e7d commit 4e074c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app/src/components/inference/utils/tooltipUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export const generateGPUGraphTooltipContent = (config: TooltipConfig): string =>
235235
<div style="background: var(--popover); border: 1px solid var(--border); border-radius: 8px; padding: 12px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); user-select: ${isPinned ? 'text' : 'none'};">
236236
${isPinned ? '<div style="color: var(--muted-foreground); font-size: 10px; margin-bottom: 6px; font-style: italic;">Click elsewhere to dismiss</div>' : ''}
237237
<div style="color: var(--muted-foreground); font-size: 11px; margin-bottom: 4px;">
238-
<strong>Date:</strong> ${d.date}
238+
<strong>Date:</strong> ${d.date}${d.actualDate && d.actualDate !== d.date ? ` <span style="opacity: 0.7">(data from ${d.actualDate})</span>` : ''}
239239
</div>
240240
<div style="color: var(--muted-foreground); font-size: 11px; margin-bottom: 4px;">
241241
<strong>GPU Config:</strong> ${hardwareConfig[d.hwKey] ? getDisplayLabel(hardwareConfig[d.hwKey]) : d.hwKey}

0 commit comments

Comments
 (0)