feat(overview): update setup guide expansion logic

This commit is contained in:
CaIon
2026-06-18 16:59:12 +08:00
parent fd557064d3
commit b8f5ba4a31
@@ -598,7 +598,9 @@ export function OverviewDashboard() {
const completedStepCount = startSteps.filter((step) => step.completed).length
const setupComplete = completedStepCount === startSteps.length
const setupGuideExpanded = manualSetupGuideExpanded ?? !setupComplete
const setupStatusReady = apiKeysQuery.isFetched && Boolean(user)
const setupGuideExpanded =
manualSetupGuideExpanded ?? (setupStatusReady && !setupComplete)
const showLeftContentPanels =
isAdmin || showApiInfoPanel || showAnnouncementsPanel || showFAQPanel
const showContentPanels = showLeftContentPanels || showUptimePanel