Commit workspace changes

This commit is contained in:
2026-04-05 19:42:33 +02:00
parent 148a3bbe43
commit 08ad757bcb
312 changed files with 35149 additions and 399 deletions

View File

@@ -64,6 +64,8 @@ export default function PublishPanel({
// Navigation helpers (for checklist quick-links)
onGoToStep,
allRootCategoryOptions = [],
actionLabel = 'Publish now',
showScheduleControls = true,
}) {
const pill = STATUS_PILL[machineState] ?? null
const hasPreview = Boolean(primaryPreviewUrl && !isArchive)
@@ -93,10 +95,11 @@ export default function PublishPanel({
]
const publishLabel = useCallback(() => {
if (isPublishing) return 'Publishing…'
if (isPublishing) return `${actionLabel}`
if (!showScheduleControls) return actionLabel
if (publishMode === 'schedule') return 'Schedule publish'
return 'Publish now'
}, [isPublishing, publishMode])
return actionLabel
}, [isPublishing, publishMode, actionLabel, showScheduleControls])
const canSchedulePublish =
publishMode === 'schedule' ? Boolean(scheduledAt) && canPublish : canPublish
@@ -224,7 +227,7 @@ export default function PublishPanel({
)}
{/* Schedule picker only shows when enabled for this panel */}
{showVisibility && uploadReady && machineState !== 'complete' && (
{showVisibility && showScheduleControls && uploadReady && machineState !== 'complete' && (
<SchedulePublishPicker
mode={publishMode}
scheduledAt={scheduledAt}