fix(journal): drop dangling JournalSetupWizard import

The setup-wizard component was deleted in the RSS hard-cut (it was
briefing-config-shaped), but JournalView still imported it — breaking
the Vite build.

Removed the import + showWizard / wizardChecked / checkSetup /
onWizardDone plumbing. JournalView now mounts straight into the day view.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 12:53:06 -04:00
parent 297f2252a3
commit dda62265c9
+3 -28
View File
@@ -4,11 +4,9 @@ import { useBackgroundRefresh } from '@/composables/useBackgroundRefresh'
import { useChatStore } from '@/stores/chat'
import ChatPanel from '@/components/ChatPanel.vue'
import WeatherCard from '@/components/WeatherCard.vue'
import JournalSetupWizard from '@/components/JournalSetupWizard.vue'
import {
apiGet,
apiPost,
getJournalConfig,
getJournalToday,
getJournalDay,
getJournalDays,
@@ -50,23 +48,6 @@ interface CurrentConditions {
const chatStore = useChatStore()
// ── Setup wizard ─────────────────────────────────────────────────────────────
const showWizard = ref(false)
const wizardChecked = ref(false)
async function checkSetup() {
const config = await getJournalConfig()
// Wizard offers location/feed setup. Skip if already configured.
const hasLocations = !!(config.locations?.home || config.locations?.work)
if (!hasLocations) showWizard.value = true
wizardChecked.value = true
}
async function onWizardDone() {
showWizard.value = false
await loadAll()
}
// ── Day picker + conversation state ──────────────────────────────────────────
const days = ref<string[]>([])
const todayDate = ref<string | null>(null)
@@ -252,20 +233,14 @@ onUnmounted(() => {
})
onMounted(async () => {
await checkSetup()
if (!showWizard.value) {
await loadAll()
currentWeatherTimer = setInterval(loadCurrentConditions, 30 * 60 * 1000)
}
await loadAll()
currentWeatherTimer = setInterval(loadCurrentConditions, 30 * 60 * 1000)
})
</script>
<template>
<div class="journal-root">
<!-- Setup wizard overlay -->
<JournalSetupWizard v-if="wizardChecked && showWizard" @done="onWizardDone" />
<div class="journal-shell" v-if="wizardChecked && !showWizard">
<div class="journal-shell">
<header class="journal-header">
<div class="journal-header-left">
<h1 class="journal-title">Journal</h1>