Skip to content

Commit 212618f

Browse files
committed
fix(ui): show a short sqb run id on Maintenance
1 parent 6d432a9 commit 212618f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎ui/src/routes/maintenance/+page.svelte‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import type { OldNameView } from '$lib/api';
1111
import { formatAgo, formatIn, formatStamp } from '$lib/format/time';
1212
import { formatRelation } from '$lib/platform/labels';
13+
import { shortRunId } from '$lib/build-area/labels';
1314
import {
1415
decisionLabel,
1516
migrationKind,
@@ -112,7 +113,7 @@
112113
<div class="cell-desc"><code>{formatRelation(m.destination)}</code></div>
113114
</td>
114115
<td class="muted" title="decision = {m.decision}">{decisionLabel[m.decision]}</td>
115-
<td class="nowrap"><code class="muted" title="The run that did it: {m.runId}">{m.runId.replace(/^run-/, '')}</code></td>
116+
<td class="nowrap"><code class="muted" title="The sqb run that did it: {m.runId}">{shortRunId(m.runId.replace(/^run-/, ''))}</code></td>
116117
</tr>
117118
{:else}
118119
<LoadRow colspan={6} resource={history} empty={migrations.length ? 'Nothing matches the search.' : 'No models have been renamed or moved in this location.'} />
@@ -191,7 +192,7 @@
191192
<td>{#if j.originalQualifiedName}<code>{j.originalQualifiedName}</code>{:else}<span class="muted" title="A temporary table SQLBuild used while building">Temporary build table</span>{/if}</td>
192193
<td><code class="muted">{j.archiveQualifiedName}</code></td>
193194
<td><RelativeTime value={formatAgo(j.archivedAt, app.now)} exact={formatStamp(j.archivedAt)} /></td>
194-
<td class="nowrap"><code class="muted" title={j.runId}>{j.runId.replace(/^run-/, '')}</code></td>
195+
<td class="nowrap"><code class="muted" title="The sqb run that did it: {j.runId}">{shortRunId(j.runId.replace(/^run-/, ''))}</code></td>
195196
</tr>
196197
{:else}
197198
<LoadRow colspan={6} resource={history} empty={janitor.length ? 'Nothing matches the search.' : 'Nothing has been archived or deleted by clean-up in this location.'} />

0 commit comments

Comments
 (0)