Demo popup: show on every dashboard visit, add upload notice (v2.2.4)

- Popup now shows every time user visits dashboard (not session-cached)
- Only shows on dashboard, not other pages
- Added upload disabled notice with amber highlight
- Upload listed as first full-version feature
This commit is contained in:
Maurice
2026-03-19 15:17:31 +01:00
parent c582a7b6c8
commit 9b0755debc
4 changed files with 23 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import { tripsApi } from '../api/client'
import { useAuthStore } from '../store/authStore'
import { useTranslation } from '../i18n'
import Navbar from '../components/Layout/Navbar'
import DemoBanner from '../components/Layout/DemoBanner'
import TravelStats from '../components/Dashboard/TravelStats'
import TripFormModal from '../components/Trips/TripFormModal'
import { useToast } from '../components/shared/Toast'
@@ -348,6 +349,7 @@ export default function DashboardPage() {
const navigate = useNavigate()
const toast = useToast()
const { t, locale } = useTranslation()
const { demoMode } = useAuthStore()
useEffect(() => { loadTrips() }, [])
@@ -437,6 +439,7 @@ export default function DashboardPage() {
return (
<div style={{ minHeight: '100vh', background: 'var(--bg-secondary)', ...font }}>
<Navbar />
{demoMode && <DemoBanner />}
<div style={{ paddingTop: 56 }}>
<div style={{ maxWidth: 1300, margin: '0 auto', padding: '32px 20px 60px' }}>