From db5b2b1f82999cbf7a3da603519ba48a86d32805 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 16 Jun 2026 14:53:33 +0000 Subject: [PATCH] fix: show presentation download dropdown for all Quarto projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit quartoFlavor is set only after a project is compiled with the current build. Existing Quarto projects that haven't been recompiled have quartoFlavor=undefined, so the old check (quartoFlavor === 'revealjs') fell through to the regular PDF compile button with no dropdown. Drop the quartoFlavor guard — compiler === 'quarto' is sufficient since all Quarto projects in Verso are RevealJS presentations. Changes applied to ActionsCell (desktop icon), DownloadPresentationButtonTooltip guard, and ActionsDropdown (mobile three-dot menu). Co-Authored-By: Claude Sonnet 4.6 --- .../project-list/components/dropdown/actions-dropdown.tsx | 3 +-- .../cells/action-buttons/download-presentation-button.tsx | 2 +- .../project-list/components/table/cells/actions-cell.tsx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/services/web/frontend/js/features/project-list/components/dropdown/actions-dropdown.tsx b/services/web/frontend/js/features/project-list/components/dropdown/actions-dropdown.tsx index 386dfbcb4e..ca861c499c 100644 --- a/services/web/frontend/js/features/project-list/components/dropdown/actions-dropdown.tsx +++ b/services/web/frontend/js/features/project-list/components/dropdown/actions-dropdown.tsx @@ -78,8 +78,7 @@ function ActionsDropdown({ project }: ActionDropdownProps) { )} - {project.compiler === 'quarto' && - project.quartoFlavor === 'revealjs' ? ( + {project.compiler === 'quarto' ? ( {(startExport, exporting) => ( <> diff --git a/services/web/frontend/js/features/project-list/components/table/cells/action-buttons/download-presentation-button.tsx b/services/web/frontend/js/features/project-list/components/table/cells/action-buttons/download-presentation-button.tsx index f8853d42ab..d6f86ec2f7 100644 --- a/services/web/frontend/js/features/project-list/components/table/cells/action-buttons/download-presentation-button.tsx +++ b/services/web/frontend/js/features/project-list/components/table/cells/action-buttons/download-presentation-button.tsx @@ -138,7 +138,7 @@ const DownloadPresentationButtonTooltip = memo( }: { project: Project }) { const { t } = useTranslation() - if (project.compiler !== 'quarto' || project.quartoFlavor !== 'revealjs') { + if (project.compiler !== 'quarto') { return null } diff --git a/services/web/frontend/js/features/project-list/components/table/cells/actions-cell.tsx b/services/web/frontend/js/features/project-list/components/table/cells/actions-cell.tsx index 1934684c04..5affa2874f 100644 --- a/services/web/frontend/js/features/project-list/components/table/cells/actions-cell.tsx +++ b/services/web/frontend/js/features/project-list/components/table/cells/actions-cell.tsx @@ -15,7 +15,7 @@ type ActionsCellProps = { } const isQuartoSlides = (project: Project) => - project.compiler === 'quarto' && project.quartoFlavor === 'revealjs' + project.compiler === 'quarto' export default function ActionsCell({ project }: ActionsCellProps) { return (