The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix: finish rename refactor
jubnl74e3f8586655
diff --git a/client/src/components/Layout/InAppNotificationBell.tsx b/client/src/components/Layout/InAppNotificationBell.tsxindex ecc409cf1..fcf14cb1e 100644--- a/client/src/components/Layout/InAppNotificationBell.tsx+++ b/client/src/components/Layout/InAppNotificationBell.tsx@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'import { useNavigate } from 'react-router-dom'import { Bell, Trash2, CheckCheck } from 'lucide-react'import { useTranslation } from '../../i18n'-import { useNotificationStore } from '../../store/notificationStore'+import { useInAppNotificationStore } from '../../store/inAppNotificationStore.ts'import { useSettingsStore } from '../../store/settingsStore'import { useAuthStore } from '../../store/authStore'import InAppNotificationItem from '../Notifications/InAppNotificationItem.tsx'@@ -16,7 +16,7 @@ export default function InAppNotificationBell(): React.ReactElement {const dark = darkMode === true || darkMode === 'dark' || (darkMode === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)const isAuthenticated = useAuthStore(s => s.isAuthenticated)- const { notifications, unreadCount, isLoading, fetchNotifications, fetchUnreadCount, markAllRead, deleteAll } = useNotificationStore()+ const { notifications, unreadCount, isLoading, fetchNotifications, fetchUnreadCount, markAllRead, deleteAll } = useInAppNotificationStore()const [open, setOpen] = useState(false)diff --git a/client/src/components/Notifications/InAppNotificationItem.tsx b/client/src/components/Notifications/InAppNotificationItem.tsxindex 8eb9b9d23..a791fe708 100644--- a/client/src/components/Notifications/InAppNotificationItem.tsx+++ b/client/src/components/Notifications/InAppNotificationItem.tsx@@ -2,7 +2,7 @@ import React, { useState } from 'react'import { useNavigate } from 'react-router-dom'import { User, Check, X, ArrowRight, Trash2, CheckCheck } from 'lucide-react'import { useTranslation } from '../../i18n'-import { useNotificationStore, InAppNotification } from '../../store/notificationStore'+import { useInAppNotificationStore, InAppNotification } from '../../store/inAppNotificationStore'import { useSettingsStore } from '../../store/settingsStore'function relativeTime(dateStr: string, locale: string): string {@@ -29,7 +29,7 @@ export default function InAppNotificationItem({ notification, onClose }: Notificconst dark = darkMode === true || darkMode === 'dark' || (darkMode === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)const [responding, setResponding] = useState(false)- const { markRead, markUnread, deleteNotification, respondToBoolean } = useNotificationStore()+ const { markRead, markUnread, deleteNotification, respondToBoolean } = useInAppNotificationStore()const handleNavigate = async () => {if (!notification.is_read) await markRead(notification.id)diff --git a/client/src/hooks/useInAppNotificationListener.ts b/client/src/hooks/useInAppNotificationListener.tsindex f9796b0e3..d5fced1d3 100644--- a/client/src/hooks/useInAppNotificationListener.ts+++ b/client/src/hooks/useInAppNotificationListener.ts@@ -1,10 +1,10 @@import { useEffect } from 'react'import { addListener, removeListener } from '../api/websocket'-import { useNotificationStore } from '../store/notificationStore'+import { useInAppNotificationStore } from '../store/inAppNotificationStore.ts'export function useInAppNotificationListener(): void {- const handleNew = useNotificationStore(s => s.handleNewNotification)- const handleUpdated = useNotificationStore(s => s.handleUpdatedNotification)+ const handleNew = useInAppNotificationStore(s => s.handleNewNotification)+ const handleUpdated = useInAppNotificationStore(s => s.handleUpdatedNotification)useEffect(() => {const listener = (event: Record<string, unknown>) => {diff --git a/client/src/pages/InAppNotificationsPage.tsx b/client/src/pages/InAppNotificationsPage.tsxindex aa183439b..c6a659f1f 100644--- a/client/src/pages/InAppNotificationsPage.tsx+++ b/client/src/pages/InAppNotificationsPage.tsx@@ -1,7 +1,7 @@import React, { useEffect, useRef, useState } from 'react'import { Bell, CheckCheck, Trash2 } from 'lucide-react'import { useTranslation } from '../i18n'-import { useNotificationStore } from '../store/notificationStore'+import { useInAppNotificationStore } from '../store/inAppNotificationStore.ts'import { useSettingsStore } from '../store/settingsStore'import Navbar from '../components/Layout/Navbar'import InAppNotificationItem from '../components/Notifications/InAppNotificationItem.tsx'@@ -12,7 +12,7 @@ export default function InAppNotificationsPage(): React.ReactElement {const darkMode = settings.dark_modeconst dark = darkMode === true || darkMode === 'dark' || (darkMode === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)- const { notifications, unreadCount, total, isLoading, hasMore, fetchNotifications, markAllRead, deleteAll } = useNotificationStore()+ const { notifications, unreadCount, total, isLoading, hasMore, fetchNotifications, markAllRead, deleteAll } = useInAppNotificationStore()const [unreadOnly, setUnreadOnly] = useState(false)const loaderRef = useRef<HTMLDivElement>(null)diff --git a/client/src/store/inAppNotificationStore.ts b/client/src/store/inAppNotificationStore.tsindex b4bbdfbe2..5f8fc9781 100644--- a/client/src/store/inAppNotificationStore.ts+++ b/client/src/store/inAppNotificationStore.ts@@ -60,7 +60,7 @@ interface NotificationState {const PAGE_SIZE = 20-export const useNotificationStore = create<NotificationState>((set, get) => ({+export const useInAppNotificationStore = create<NotificationState>((set, get) => ({notifications: [],unreadCount: 0,total: 0,