fix(backups): show 'Skipped' label for skipped scheduled archives#3033
fix(backups): show 'Skipped' label for skipped scheduled archives#3033
Conversation
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>
Greptile SummaryThis PR maps the new backend
Confidence Score: 5/5Safe to merge — the change is a minimal, additive status mapping with no risk to existing table rows, actions, or data. The two new code paths are narrow and well-isolated: an extra switch case that falls through to the pre-existing 'waiting' return, and a label helper that only deviates from the old behaviour for the single new 'skipped' value. All other statuses go through the same capitalize-over-getBackupStatus path that was there before, so no existing label or action is affected. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "docs(backups): comment why 'skipped' map..." | Re-trigger Greptile |
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Companion to appwrite-labs/cloud#3972. Cloud now records a terminal
archivesrow withstatus='skipped'whenever a scheduled cron tick is dropped because the previous run hadn't finished. Without a console mapping the row would render as a generic "Waiting" badge with no clue why.This maps
skipped→ the neutralwaitingStatus visual but overrides the label so the user sees "Skipped".status === 'completed', so skipped rows correctly show only Copy ID / Delete in the actions menu.-for any non-completedstatus, so skipped rows render-automatically.Test plan
bun x prettier --checkclean on the touched file.bun run checkshows no new errors in the touched file (the existing 768 errors are pre-existing across the codebase).Notes
pink-svelte'sStatuscomponent union type is"waiting" | "ready" | "processing" | "pending" | "failed" | "complete"— noskipped. Mapping towaitingis the cleanest no-redesign choice; the visual is gray/neutral, which reads as "didn't run". A dedicatedskippedstyle in pink-svelte would be a follow-up if we want stronger visual differentiation.🤖 Generated with Claude Code