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:
@@ -4,11 +4,9 @@ import { useBackgroundRefresh } from '@/composables/useBackgroundRefresh'
|
|||||||
import { useChatStore } from '@/stores/chat'
|
import { useChatStore } from '@/stores/chat'
|
||||||
import ChatPanel from '@/components/ChatPanel.vue'
|
import ChatPanel from '@/components/ChatPanel.vue'
|
||||||
import WeatherCard from '@/components/WeatherCard.vue'
|
import WeatherCard from '@/components/WeatherCard.vue'
|
||||||
import JournalSetupWizard from '@/components/JournalSetupWizard.vue'
|
|
||||||
import {
|
import {
|
||||||
apiGet,
|
apiGet,
|
||||||
apiPost,
|
apiPost,
|
||||||
getJournalConfig,
|
|
||||||
getJournalToday,
|
getJournalToday,
|
||||||
getJournalDay,
|
getJournalDay,
|
||||||
getJournalDays,
|
getJournalDays,
|
||||||
@@ -50,23 +48,6 @@ interface CurrentConditions {
|
|||||||
|
|
||||||
const chatStore = useChatStore()
|
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 ──────────────────────────────────────────
|
// ── Day picker + conversation state ──────────────────────────────────────────
|
||||||
const days = ref<string[]>([])
|
const days = ref<string[]>([])
|
||||||
const todayDate = ref<string | null>(null)
|
const todayDate = ref<string | null>(null)
|
||||||
@@ -252,20 +233,14 @@ onUnmounted(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await checkSetup()
|
await loadAll()
|
||||||
if (!showWizard.value) {
|
currentWeatherTimer = setInterval(loadCurrentConditions, 30 * 60 * 1000)
|
||||||
await loadAll()
|
|
||||||
currentWeatherTimer = setInterval(loadCurrentConditions, 30 * 60 * 1000)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="journal-root">
|
<div class="journal-root">
|
||||||
<!-- Setup wizard overlay -->
|
<div class="journal-shell">
|
||||||
<JournalSetupWizard v-if="wizardChecked && showWizard" @done="onWizardDone" />
|
|
||||||
|
|
||||||
<div class="journal-shell" v-if="wizardChecked && !showWizard">
|
|
||||||
<header class="journal-header">
|
<header class="journal-header">
|
||||||
<div class="journal-header-left">
|
<div class="journal-header-left">
|
||||||
<h1 class="journal-title">Journal</h1>
|
<h1 class="journal-title">Journal</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user