Skip to content

Commit 8b4028d

Browse files
abnegateclaude
andauthored
fix(backups): show 'Skipped' label for skipped scheduled archives (#3033)
* fix(backups): surface skipped scheduled backups with a Skipped label Cloud now writes a terminal archive doc with status='skipped' for cron ticks that were dropped because the previous run hadn't finished yet. Map that to the neutral 'waiting' Status visual and override the label so the user sees "Skipped" instead of the auto-capitalized "Waiting". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs(backups): comment why 'skipped' maps to the 'waiting' visual Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6eb14b6 commit 8b4028d

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups

src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/table.svelte

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,22 @@
9999
return 'processing';
100100
case 'failed':
101101
return 'failed';
102+
// pink-svelte's Status union has no 'skipped' — fall back to the
103+
// neutral 'waiting' visual and override the label below.
104+
case 'skipped':
105+
return 'waiting';
102106
default:
103107
return 'waiting';
104108
}
105109
}
106110
111+
function getBackupStatusLabel(backup: Models.BackupArchive): string {
112+
if (backup.status === 'skipped') {
113+
return 'Skipped';
114+
}
115+
return capitalize(getBackupStatus(backup));
116+
}
117+
107118
async function deleteSingleBackup(archiveId: string) {
108119
try {
109120
await sdk
@@ -231,7 +242,7 @@
231242
</Table.Cell>
232243
<Table.Cell column="status" {root}>
233244
{@const backupStatus = getBackupStatus(backup)}
234-
<Status status={backupStatus} label={capitalize(backupStatus)} />
245+
<Status status={backupStatus} label={getBackupStatusLabel(backup)} />
235246
<!--{#if backup.status === 'Failed'}-->
236247
<!-- <span class="u-underline">Get support</span>-->
237248
<!--{/if}-->

0 commit comments

Comments
 (0)