project-list: show plain 'Quarto' badge when quartoFlavor is unset
Build and Deploy Verso / deploy (push) Successful in 13m55s

Existing projects have no quartoFlavor value in the database (new field),
so defaulting to 'Quarto PDF' incorrectly labelled all of them. Show the
plain 'Quarto' label until the first compile sets the flavor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-10 08:30:34 +00:00
parent 7fecaf491a
commit 2c8dad08f6
@@ -16,7 +16,10 @@ function formatLabel(
if (quartoFlavor === 'revealjs') { if (quartoFlavor === 'revealjs') {
return { label: 'Quarto Slides', variant: 'quarto-slides' } return { label: 'Quarto Slides', variant: 'quarto-slides' }
} }
return { label: 'Quarto PDF', variant: 'quarto' } if (quartoFlavor === 'pdf') {
return { label: 'Quarto PDF', variant: 'quarto' }
}
return { label: 'Quarto', variant: 'quarto' }
case 'typst': case 'typst':
return { label: 'Typst', variant: 'typst' } return { label: 'Typst', variant: 'typst' }
default: default: