Wire admin studio SSR and search infrastructure

This commit is contained in:
2026-05-01 11:46:06 +02:00
parent 257b0dbef6
commit 18cea8b0f0
329 changed files with 197465 additions and 2741 deletions

View File

@@ -66,6 +66,8 @@ export default function PublishPanel({
allRootCategoryOptions = [],
actionLabel = 'Publish now',
showScheduleControls = true,
publishActionEnabled = true,
publishActionTitle = 'Complete all requirements first',
}) {
const pill = STATUS_PILL[machineState] ?? null
const hasPreview = Boolean(primaryPreviewUrl && !isArchive)
@@ -103,6 +105,7 @@ export default function PublishPanel({
const canSchedulePublish =
publishMode === 'schedule' ? Boolean(scheduledAt) && canPublish : canPublish
const canTriggerPublish = publishActionEnabled && canSchedulePublish
const rightsError = uploadReady && !hasRights ? 'Rights confirmation is required.' : null
@@ -257,12 +260,12 @@ export default function PublishPanel({
{/* Primary action button */}
<button
type="button"
disabled={!canSchedulePublish || isPublishing}
disabled={!canTriggerPublish || isPublishing}
onClick={() => onPublish?.()}
title={!canPublish ? 'Complete all requirements first' : undefined}
title={!publishActionEnabled ? publishActionTitle : !canPublish ? 'Complete all requirements first' : undefined}
className={[
'w-full rounded-2xl py-3 text-sm font-semibold transition',
canSchedulePublish && !isPublishing
canTriggerPublish && !isPublishing
? publishMode === 'schedule'
? 'bg-violet-500/80 text-white hover:bg-violet-500 shadow-[0_4px_16px_rgba(139,92,246,0.25)]'
: 'btn-primary'