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
feat(assistant): the journey page opens the journal's chat on desktop and phone
Maurice4b3340546f73
diff --git a/client/src/components/Assistant/AssistantWelcome.test.tsx b/client/src/components/Assistant/AssistantWelcome.test.tsxnew file mode 100644index 000000000..e0bf65041--- /dev/null+++ b/client/src/components/Assistant/AssistantWelcome.test.tsx@@ -0,0 +1,45 @@+/**+ * FE-AI-WELCOME-001 to FE-AI-WELCOME-002+ *+ * The empty chat asks what fits the chat it is: a journey's conversation on+ * the journal page asks about the journal, the same conversation in TREK+ * Studio about the book, and each tells a reader what they may not change.+ */+import { afterEach, describe, expect, it } from 'vitest';++import { render, screen } from '../../../tests/helpers/render';+import { useAssistantStore } from '../../store/assistantStore';+import AssistantWelcome from './AssistantWelcome';+import { AssistantViewContext } from './assistantViewContext';++const INITIAL = useAssistantStore.getState();+const JOURNAL_KEY = -12;++afterEach(() => {+ useAssistantStore.setState(INITIAL, true);+});++function welcome(canEdit: boolean) {+ return render(+ <AssistantViewContext.Provider value={{ tripId: JOURNAL_KEY, variant: 'window' }}>+ <AssistantWelcome suggestions={[]} canEdit={canEdit} withSuggestions={false} />+ </AssistantViewContext.Provider>+ );+}++describe('AssistantWelcome', () => {+ it("FE-AI-WELCOME-001: a journey's chat on its page asks about the journal", () => {+ welcome(false);+ expect(screen.getByText('What should go into the journal?')).toBeInTheDocument();+ expect(screen.getByText(/You can only read this journal/)).toBeInTheDocument();+ });++ it('FE-AI-WELCOME-002: the same chat hosted by the Studio asks about the book', () => {+ useAssistantStore.setState({+ studioHosts: { [JOURNAL_KEY]: { render: () => undefined, flush: async () => true } },+ });+ welcome(true);+ expect(screen.getByText('What should the book look like?')).toBeInTheDocument();+ expect(screen.queryByText(/You can only/)).not.toBeInTheDocument();+ });+});diff --git a/client/src/components/Assistant/AssistantWelcome.tsx b/client/src/components/Assistant/AssistantWelcome.tsxindex 084742434..eb3bd834d 100644--- a/client/src/components/Assistant/AssistantWelcome.tsx+++ b/client/src/components/Assistant/AssistantWelcome.tsx@@ -1,6 +1,7 @@import { ThreadPrimitive } from '@assistant-ui/react';import { useTranslation } from '../../i18n';+import { useAssistantStore } from '../../store/assistantStore';import EmptyState from '../shared/EmptyState';import AssistantHints, { MAX_VISIBLE_HINTS } from './AssistantHints';import { useAssistantScope, useAssistantView } from './assistantViewContext';@@ -28,32 +29,40 @@ export default function AssistantWelcome({}) {const { t } = useTranslation();const { tripId, variant } = useAssistantView();- // The Studio's chat is about a book, not a plan; the home chat about all of the user's travels.- const scope = useAssistantScope().kind;- const book = scope === 'journey';+ // The Studio's chat is about a book, not a plan; the journey's chat on its own page about the journal,+ // the home chat about all of the user's travels. A journey's chat the Studio does not host is the journal's.+ const hosted = useAssistantStore((s) => !!s.studioHosts[tripId]);+ const about = useAssistantScope().kind;+ const scope: WelcomeScope = about === 'journey' && !hosted ? 'journal' : about;const hints = useAssistantHints(tripId, { withStays: true });const crowded = Math.min(hints.hints.length, MAX_VISIBLE_HINTS) > SUGGESTIONS_UNDER_HINTS;const offered = crowded ? suggestions.slice(0, SUGGESTIONS_UNDER_HINTS) : suggestions;return (<div className="flex flex-1 flex-col items-center justify-center gap-4 py-6"><EmptyState scene="chat" size={72} compact surface="var(--bg-elevated)" title={welcomeTitle(scope, t)} />- {!canEdit && (- <p className="m-0 max-w-xs text-center text-caption text-content-muted">- {book ? t('journey.studio.assistant.readOnly') : t('assistant.empty.readOnly')}- </p>- )}+ {!canEdit && <p className="m-0 max-w-xs text-center text-caption text-content-muted">{readOnlyNote(scope, t)}</p>}<AssistantHints view={hints} phone={variant === 'fullscreen'} />{withSuggestions && offered.length > 0 && <AssistantSuggestions suggestions={offered} layout="stack" />}</div>);}+/** What an empty chat is about: a trip, a journey's book in the Studio, a journal on its page, or all of them. */+type WelcomeScope = 'trip' | 'journey' | 'journal' | 'home';+/** The question over the empty chat, by what the chat is about. */-function welcomeTitle(scope: 'trip' | 'journey' | 'home', t: (key: string) => string): string {+function welcomeTitle(scope: WelcomeScope, t: (key: string) => string): string {if (scope === 'journey') return t('journey.studio.assistant.welcome');+ if (scope === 'journal') return t('assistant.journal.welcome');return scope === 'home' ? t('assistant.home.welcome') : t('assistant.empty.title');}+/** What the empty chat tells someone who may only read. */+function readOnlyNote(scope: WelcomeScope, t: (key: string) => string): string {+ if (scope === 'journey') return t('journey.studio.assistant.readOnly');+ return scope === 'journal' ? t('assistant.journal.readOnly') : t('assistant.empty.readOnly');+}+export function AssistantSuggestions({suggestions,layout,diff --git a/client/src/components/Assistant/AssistantWindow.tsx b/client/src/components/Assistant/AssistantWindow.tsxindex 1ee1add70..af4bfe461 100644--- a/client/src/components/Assistant/AssistantWindow.tsx+++ b/client/src/components/Assistant/AssistantWindow.tsx@@ -15,7 +15,7 @@ import { FRAME_CLASS, useAssistantFrame } from './assistantFrame';import { plannerSearchOf } from './assistantShowOnMap';import type { AssistantChatTrip } from './assistantViewContext';import type { EntityTarget } from './cards/cardTypes';-import { useAssistantHome } from './useAssistantHome';+import { chatPagePath, useAssistantHome, useRouteJournalChat } from './useAssistantHome';import { useAssistantHotkey } from './useAssistantHotkey';import { useAssistantThread } from './useAssistantThread';@@ -33,7 +33,9 @@ import { useAssistantThread } from './useAssistantThread';** Outside a trip it opens on the home chat, which knows all of the user's* trips; its head lists them to go on in one trip's own chat, and a trip's- * chat opened that way has the way back home in its head.+ * chat opened that way has the way back home in its head. On a journey's+ * page it opens on that journal's chat, the journey's conversation it shares+ * with TREK Studio.** Mounted once for the whole app; it shows nothing until the assistant has a* connection this user can use.@@ -198,13 +200,16 @@ export default function AssistantWindow({ trip, onOpen, onFocusDay, onRevealMapif (!open) setPicked(null);}- const current = trip ?? picked ?? home.chat;+ const journal = useRouteJournalChat();+ // The page's own chat first: the trip in the planner, else the journal on screen.+ const routeChat = trip ?? journal;+ const current = routeChat ?? picked ?? home.chat;const atHome = current.id === HOME_CHAT_KEY;- // A change in a trip the planner does not show is shown by opening that trip; a tab opens on it.+ // A change in a trip the planner does not show is shown by opening that trip (a journal, its page); a tab opens on it.const openPicked = useCallback((target: EntityTarget) => {if (target.kind === 'page') void navigate(target.path);- else if (picked) void navigate(`/trips/${picked.id}${target.kind === 'tab' ? plannerSearchOf(target) : ''}`);+ else if (picked) void navigate(`${chatPagePath(picked)}${target.kind === 'tab' ? plannerSearchOf(target) : ''}`);},[navigate, picked]);@@ -216,19 +221,21 @@ export default function AssistantWindow({ trip, onOpen, onFocusDay, onRevealMap[navigate]);const goHome = useCallback(() => setPicked(null), []);- // Another page leaves the trip: the chat stays on it, as if it had been picked.+ // Another page leaves the trip or the journal: the chat stays on it, as if it had been picked.const openOnScreen = useCallback((target: EntityTarget) => {- if (target.kind === 'page' && trip) setPicked(trip);+ if (target.kind === 'page' && routeChat) setPicked(routeChat);onOpen?.(target);},- [onOpen, trip]+ [onOpen, routeChat]);+ // The round button's hint dot reads a trip's plan; a journal has none.+ const launcherTrip = trip?.id ?? null;if (!available) return null;- if (!open) return trip ? <AssistantLauncher variant="floating" tripId={trip.id} /> : null;+ if (!open) return routeChat ? <AssistantLauncher variant="floating" tripId={launcherTrip} /> : null;- const onScreen = !!trip && current.id === trip.id;+ const onScreen = !!routeChat && current.id === routeChat.id;let openTarget = onScreen ? onOpen && openOnScreen : openPicked;if (atHome) openTarget = openFromHome;let tripSwitch: { onPick?: (trip: WindowTrip) => void; onHome?: () => void } | undefined;@@ -241,13 +248,13 @@ export default function AssistantWindow({ trip, onOpen, onFocusDay, onRevealMaphidden={minimized}onOpen={openTarget}// Only the planner on screen has days to select and a map to bring back.- onFocusDay={onScreen ? onFocusDay : undefined}- onRevealMap={onScreen ? onRevealMap : undefined}+ onFocusDay={onScreen && trip ? onFocusDay : undefined}+ onRevealMap={onScreen && trip ? onRevealMap : undefined}onOpenTripChat={atHome ? home.openTripChat : undefined}tripSwitch={tripSwitch}/>{/* Hidden while an answer may still come in: the round button brings it back, on any page. */}- {minimized && <AssistantLauncher variant="floating" tripId={trip?.id ?? null} focusOnMount />}+ {minimized && <AssistantLauncher variant="floating" tripId={launcherTrip} focusOnMount />}</>);}diff --git a/client/src/components/Assistant/useAssistantHome.test.tsx b/client/src/components/Assistant/useAssistantHome.test.tsxindex dd559c9de..344546353 100644--- a/client/src/components/Assistant/useAssistantHome.test.tsx+++ b/client/src/components/Assistant/useAssistantHome.test.tsx@@ -1,18 +1,19 @@/**- * FE-AI-HOME-001 to FE-AI-HOME-004+ * FE-AI-HOME-001 to FE-AI-HOME-006** The home chat's shared hooks: its key and name, the way into one trip's own* chat with the question waiting there (a question already typed there* stays), the way in from the pages outside a trip, and the questions the- * empty home chat offers.+ * empty home chat offers, and the journal on screen as a chat.*/import type { AiStatusResponse } from '@trek/shared';import { afterEach, describe, expect, it, vi } from 'vitest';import { fireEvent, render, screen } from '../../../tests/helpers/render';import { chatOf, useAssistantStore } from '../../store/assistantStore';+import { useJourneyStore } from '../../store/journeyStore';import { HOME_SUGGESTIONS } from './assistantModel';-import { useAssistantHome, useAssistantHomeLauncher } from './useAssistantHome';+import { chatPagePath, useAssistantHome, useAssistantHomeLauncher, useRouteJournalChat } from './useAssistantHome';import { useAssistantSuggestions } from './useAssistantSuggestions';const INITIAL = useAssistantStore.getState();@@ -100,3 +101,29 @@ describe('the empty home chat', () => {expect(screen.getByRole('list')).toHaveAttribute('data-can-edit', 'true');});});++function RouteJournal() {+ const chat = useRouteJournalChat();+ return <p>{chat ? `journal ${chat.id} ${chat.title}` : 'no journal'}</p>;+}++describe('the journal on screen', () => {+ it("FE-AI-HOME-005: a journey's page is its journal's chat, under the journey's key, but not in its Studio", () => {+ useJourneyStore.setState({ current: { id: 12, title: 'Japan 2026' } as never });+ render(<RouteJournal />, { initialEntries: ['/journey/12'] });+ expect(screen.getByText('journal -12 Japan 2026')).toBeInTheDocument();+ render(<RouteJournal />, { initialEntries: ['/journey/12/studio'] });+ expect(screen.getAllByText('no journal')).toHaveLength(1);+ render(<RouteJournal />, { initialEntries: ['/journey'] });+ expect(screen.getAllByText('no journal')).toHaveLength(2);+ // Another journey loaded: the key is the route's, the title waits for its own.+ render(<RouteJournal />, { initialEntries: ['/journey/13'] });+ expect(screen.getByText(/^journal -13\s*$/)).toBeInTheDocument();+ useJourneyStore.setState({ current: null });+ });++ it('FE-AI-HOME-006: a chat switched to from home opens on its own page', () => {+ expect(chatPagePath({ id: 5, title: 'Kyoto' })).toBe('/trips/5');+ expect(chatPagePath({ id: -12, title: 'Japan 2026' })).toBe('/journey/12');+ });+});diff --git a/client/src/components/Assistant/useAssistantHome.ts b/client/src/components/Assistant/useAssistantHome.tsindex 1d4774989..a7ea0d88d 100644--- a/client/src/components/Assistant/useAssistantHome.ts+++ b/client/src/components/Assistant/useAssistantHome.ts@@ -1,8 +1,10 @@import { useCallback, useMemo } from 'react';+import { useMatch } from 'react-router';import { useTranslation } from '../../i18n';-import { HOME_CHAT_KEY } from '../../store/assistantChatKey';+import { assistantChatKey, assistantScopeOf, HOME_CHAT_KEY } from '../../store/assistantChatKey';import { useAssistantStore } from '../../store/assistantStore';+import { useJourneyStore } from '../../store/journeyStore';import type { AssistantChatTrip } from './assistantViewContext';/**@@ -42,3 +44,27 @@ export function useAssistantHomeLauncher() {const open = useAssistantStore((s) => s.open);return { available, open };}++/**+ * The journal on screen as a chat: on a journey's own page the journey's+ * conversation (the one TREK Studio holds too), under its key and with the+ * journey's title once the page has loaded it; null elsewhere and in the+ * Studio, whose column holds that chat itself.+ */+export function useRouteJournalChat(): AssistantChatTrip | null {+ const match = useMatch('/journey/:id/*');+ const inStudio = useMatch('/journey/:id/studio/*') !== null;+ const id = Number(match?.params.id);+ const journeyId = !inStudio && Number.isInteger(id) && id > 0 ? id : null;+ const title = useJourneyStore((s) => (s.current && s.current.id === journeyId ? s.current.title : ''));+ return useMemo(+ () => (journeyId === null ? null : { id: assistantChatKey({ kind: 'journey', journeyId }), title }),+ [journeyId, title]+ );+}++/** The page a chat switched to from the home chat lives on: a journey's for its key, a trip's otherwise. */+export function chatPagePath(chat: AssistantChatTrip): string {+ const scope = assistantScopeOf(chat.id);+ return scope.kind === 'journey' ? `/journey/${scope.journeyId}` : `/trips/${chat.id}`;+}diff --git a/client/src/mobile/screens/assistant/MAssistantHomeScreen.tsx b/client/src/mobile/screens/assistant/MAssistantHomeScreen.tsxindex 705fb6443..86bef6d86 100644--- a/client/src/mobile/screens/assistant/MAssistantHomeScreen.tsx+++ b/client/src/mobile/screens/assistant/MAssistantHomeScreen.tsx@@ -3,7 +3,7 @@ import { useMatch, useNavigate } from 'react-router';import type { AssistantChatTrip } from '../../../components/Assistant/assistantViewContext';import type { EntityTarget } from '../../../components/Assistant/cards/cardTypes';-import { useAssistantHome } from '../../../components/Assistant/useAssistantHome';+import { chatPagePath, useAssistantHome, useRouteJournalChat } from '../../../components/Assistant/useAssistantHome';import { useAssistantStore } from '../../../store/assistantStore';import { AssistantScreen, type MapHops } from '../trip/assistant/MAssistantScreen';@@ -15,8 +15,9 @@ import { AssistantScreen, type MapHops } from '../trip/assistant/MAssistantScree* screen and the question waiting in its composer. Another page a card points* at closes the chat and opens there.*- * Inside a trip the trip's own screen (MAssistantScreen) shows its chat, so- * this one stays away there. Nothing shows until the assistant has a+ * On a journal's page it shows that journal's chat instead. Inside a trip+ * the trip's own screen (MAssistantScreen) shows its chat, so this one stays+ * away there. Nothing shows until the assistant has a* connection this user can use.*/export default function MAssistantHomeScreen() {@@ -28,9 +29,12 @@ export default function MAssistantHomeScreen() {const loadStatus = useAssistantStore((s) => s.loadStatus);const close = useAssistantStore((s) => s.close);- // The trip's screen takes over with the window still open, so its chat comes up there.- const switchTo = useCallback((trip: AssistantChatTrip) => void navigate(`/trips/${trip.id}`), [navigate]);+ // The trip's screen (or the journal's) takes over with the window still open, so its chat comes up there.+ const switchTo = useCallback((chat: AssistantChatTrip) => void navigate(chatPagePath(chat)), [navigate]);const home = useAssistantHome(switchTo);+ // On a journal's page the chat is that journal's, the journey's conversation it shares with TREK Studio.+ const journal = useRouteJournalChat();+ const chat = journal ?? home.chat;const hops = useMemo((): MapHops => ({open: (target: EntityTarget) => {@@ -50,11 +54,11 @@ export default function MAssistantHomeScreen() {if (inTrip || !available || !open || minimized) return null;return (<AssistantScreen- tripId={home.chat.id}- tripTitle={home.chat.title}+ tripId={chat.id}+ tripTitle={chat.title}hidden={false}hops={hops}- onOpenTripChat={home.openTripChat}+ onOpenTripChat={journal ? undefined : home.openTripChat}/>);}diff --git a/client/src/store/assistantStore.studio.test.ts b/client/src/store/assistantStore.studio.test.tsindex 1bbf1d2de..dfac4037a 100644--- a/client/src/store/assistantStore.studio.test.ts+++ b/client/src/store/assistantStore.studio.test.ts@@ -96,6 +96,20 @@ describe('assistantStore: a chat hosted by the Studio', () => {expect(send.mock.calls[1]?.[1]).not.toHaveProperty('renders');});+ it("FE-AI-STORE-STUDIO-008: a journey's turn names its page, the Studio's while hosted, else the journal's", async () => {+ const release = store().hostStudio(KEY, fakeHost([]));+ const send = vi.spyOn(assistantRepo, 'send').mockImplementation(async () => streamOf([{ type: 'finish' }]));++ await store().send(KEY, 'Lay out the cover');+ release();+ await store().send(KEY, 'A new entry for Berlin Hauptbahnhof');+ await store().send(5, 'A trip question');++ expect(send.mock.calls[0]?.[1]).toMatchObject({ surface: 'studio' });+ expect(send.mock.calls[1]?.[1]).toMatchObject({ surface: 'journal' });+ expect(send.mock.calls[2]?.[1]).not.toHaveProperty('surface');+ });+it('FE-AI-STORE-STUDIO-003: hands the page a turn asks for to the host, with a signal that ends with the turn', async () => {const host = fakeHost([]);store().hostStudio(KEY, host);diff --git a/client/src/store/assistantStore.ts b/client/src/store/assistantStore.tsindex 2d5abcc8e..ffe349e8d 100644--- a/client/src/store/assistantStore.ts+++ b/client/src/store/assistantStore.ts@@ -7,6 +7,7 @@ import {type AssistantErrorCode,type AssistantFocus,type AssistantFoundPlace,+ type AssistantJourneySurface,type AssistantMapView,type AssistantMention,type AssistantMessage,@@ -270,16 +271,21 @@ async function settleHolds(ctx: Ctx, key: AssistantChatKey): Promise<void> {/** The Studio hosting the chat under `key`, if one does. */const studioHostOf = (ctx: Ctx, key: AssistantChatKey): AssistantStudioHost | undefined => ctx.get().studioHosts[key];-/** A turn of a hosted chat writes the book first and says the Studio draws pages; any other turn opens as it is. */-async function hostedOpen<T>(ctx: Ctx, key: AssistantChatKey, open: (renders: { renders?: true }) => Promise<T>) {+type HostedFields = { renders?: true; surface?: AssistantJourneySurface };++/**+ * A turn of a hosted chat writes the book first and says the Studio draws pages; any other turn opens as it is.+ * A journey's turn names its page: the Studio's while the Studio hosts the chat, else the journal's.+ */+async function hostedOpen<T>(ctx: Ctx, key: AssistantChatKey, open: (fields: HostedFields) => Promise<T>) {const host = studioHostOf(ctx, key);- if (!host) return open({});+ if (!host) return open(assistantScopeOf(key).kind === 'journey' ? { surface: 'journal' } : {});try {await host.flush();} catch {// The Studio's save indicator shows its own failure; the turn goes on against the book the server holds.}- return open({ renders: true });+ return open({ renders: true, surface: 'studio' });}const NO_LIVE: AssistantTripChat['live'] = { activity: null };diff --git a/shared/src/i18n/ar/assistantJourney.ts b/shared/src/i18n/ar/assistantJourney.tsindex a85d43555..18ccad72f 100644--- a/shared/src/i18n/ar/assistantJourney.ts+++ b/shared/src/i18n/ar/assistantJourney.ts@@ -39,5 +39,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'إعادة ترتيب اليوميات','assistant.followUp.journalToday': 'اكتب مدخلًا لليوم','assistant.followUp.journalSummary': 'لخّص هذه الأيام',+ 'assistant.journal.welcome': 'ماذا نكتب في اليوميات؟',+ 'assistant.journal.readOnly': 'يمكنك قراءة هذه اليوميات فقط، لذا أستطيع الإجابة عن الأسئلة دون تغيير أي شيء.',};export default assistantJourney;diff --git a/shared/src/i18n/az/assistantJourney.ts b/shared/src/i18n/az/assistantJourney.tsindex 9b05ec093..4153bc48c 100644--- a/shared/src/i18n/az/assistantJourney.ts+++ b/shared/src/i18n/az/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Gündəliyi yenidən sırala','assistant.followUp.journalToday': 'Bu gün üçün qeyd yaz','assistant.followUp.journalSummary': 'Bu günləri yekunlaşdır',+ 'assistant.journal.welcome': 'Gündəliyə nə yazaq?',+ 'assistant.journal.readOnly':+ 'Bu gündəliyi yalnız oxuya bilərsən, ona görə suallara cavab verə bilərəm, amma heç nəyi dəyişə bilmərəm.',};export default assistantJourney;diff --git a/shared/src/i18n/br/assistantJourney.ts b/shared/src/i18n/br/assistantJourney.tsindex 2adfd875c..b5856675f 100644--- a/shared/src/i18n/br/assistantJourney.ts+++ b/shared/src/i18n/br/assistantJourney.ts@@ -27,5 +27,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Reordenar o diário','assistant.followUp.journalToday': 'Escrever uma entrada para hoje','assistant.followUp.journalSummary': 'Resumir estes dias',+ 'assistant.journal.welcome': 'O que vamos colocar no diário?',+ 'assistant.journal.readOnly': 'Você só pode ler este diário, então posso responder perguntas, mas não mudar nada.',};export default assistantJourney;diff --git a/shared/src/i18n/ca/assistantJourney.ts b/shared/src/i18n/ca/assistantJourney.tsindex c111a8094..711cef2d8 100644--- a/shared/src/i18n/ca/assistantJourney.ts+++ b/shared/src/i18n/ca/assistantJourney.ts@@ -27,5 +27,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Reordena el diari','assistant.followUp.journalToday': 'Escriu una entrada per a avui','assistant.followUp.journalSummary': 'Resumeix aquests dies',+ 'assistant.journal.welcome': 'Què hi posem, al diari?',+ 'assistant.journal.readOnly': 'Només pots llegir aquest diari, així que puc respondre preguntes però no canviar res.',};export default assistantJourney;diff --git a/shared/src/i18n/cs/assistantJourney.ts b/shared/src/i18n/cs/assistantJourney.tsindex d43a5223b..f03440ba3 100644--- a/shared/src/i18n/cs/assistantJourney.ts+++ b/shared/src/i18n/cs/assistantJourney.ts@@ -30,5 +30,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Přeuspořádat deník','assistant.followUp.journalToday': 'Napsat záznam za dnešek','assistant.followUp.journalSummary': 'Shrnout tyto dny',+ 'assistant.journal.welcome': 'Co zapíšeme do deníku?',+ 'assistant.journal.readOnly': 'Tento deník můžeš jen číst, takže můžu odpovídat na otázky, ale nic měnit.',};export default assistantJourney;diff --git a/shared/src/i18n/de/assistantJourney.ts b/shared/src/i18n/de/assistantJourney.tsindex 6fb76563d..30f591f4c 100644--- a/shared/src/i18n/de/assistantJourney.ts+++ b/shared/src/i18n/de/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Journal neu ordnen','assistant.followUp.journalToday': 'Eintrag für heute schreiben','assistant.followUp.journalSummary': 'Diese Tage zusammenfassen',+ 'assistant.journal.welcome': 'Was soll ins Journal?',+ 'assistant.journal.readOnly':+ 'Du kannst dieses Journal nur lesen, darum kann ich Fragen beantworten, aber nichts ändern.',};export default assistantJourney;diff --git a/shared/src/i18n/en/assistantJourney.ts b/shared/src/i18n/en/assistantJourney.tsindex 229a2593e..086f510e4 100644--- a/shared/src/i18n/en/assistantJourney.ts+++ b/shared/src/i18n/en/assistantJourney.ts@@ -27,5 +27,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Reorder the journal','assistant.followUp.journalToday': 'Write an entry for today','assistant.followUp.journalSummary': 'Sum up these days',+ 'assistant.journal.welcome': 'What should go into the journal?',+ 'assistant.journal.readOnly': 'You can only read this journal, so I can answer questions but not change anything.',};export default assistantJourney;diff --git a/shared/src/i18n/es/assistantJourney.ts b/shared/src/i18n/es/assistantJourney.tsindex f99e25ea5..459b7b556 100644--- a/shared/src/i18n/es/assistantJourney.ts+++ b/shared/src/i18n/es/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Reordenar el diario','assistant.followUp.journalToday': 'Escribir una entrada para hoy','assistant.followUp.journalSummary': 'Resumir estos días',+ 'assistant.journal.welcome': '¿Qué ponemos en el diario?',+ 'assistant.journal.readOnly':+ 'Solo puedes leer este diario, así que puedo responder preguntas, pero no cambiar nada.',};export default assistantJourney;diff --git a/shared/src/i18n/et/assistantJourney.ts b/shared/src/i18n/et/assistantJourney.tsindex 102207cf0..981f92541 100644--- a/shared/src/i18n/et/assistantJourney.ts+++ b/shared/src/i18n/et/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Järjesta päevik ümber','assistant.followUp.journalToday': 'Kirjuta tänane sissekanne','assistant.followUp.journalSummary': 'Võta need päevad kokku',+ 'assistant.journal.welcome': 'Mida päevikusse kirjutame?',+ 'assistant.journal.readOnly':+ 'Sa saad seda päevikut ainult lugeda, nii et vastan küsimustele, aga midagi muuta ei saa.',};export default assistantJourney;diff --git a/shared/src/i18n/fr/assistantJourney.ts b/shared/src/i18n/fr/assistantJourney.tsindex 881a65735..306c41b1e 100644--- a/shared/src/i18n/fr/assistantJourney.ts+++ b/shared/src/i18n/fr/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Réordonner le journal','assistant.followUp.journalToday': 'Écrire une entrée pour aujourd’hui','assistant.followUp.journalSummary': 'Résumer ces jours',+ 'assistant.journal.welcome': "Qu'écrivons-nous dans le journal ?",+ 'assistant.journal.readOnly':+ 'Vous pouvez seulement lire ce journal : je peux répondre aux questions, sans rien modifier.',};export default assistantJourney;diff --git a/shared/src/i18n/gr/assistantJourney.ts b/shared/src/i18n/gr/assistantJourney.tsindex fed7110f7..d88c74668 100644--- a/shared/src/i18n/gr/assistantJourney.ts+++ b/shared/src/i18n/gr/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Αναδιάταξη του ημερολογίου','assistant.followUp.journalToday': 'Γράψε μια καταχώριση για σήμερα','assistant.followUp.journalSummary': 'Σύνοψη αυτών των ημερών',+ 'assistant.journal.welcome': 'Τι να γράψουμε στο ημερολόγιο;',+ 'assistant.journal.readOnly':+ 'Μπορείς μόνο να διαβάσεις αυτό το ημερολόγιο, οπότε απαντώ σε ερωτήσεις αλλά δεν αλλάζω τίποτα.',};export default assistantJourney;diff --git a/shared/src/i18n/hu/assistantJourney.ts b/shared/src/i18n/hu/assistantJourney.tsindex 06e10f62e..0079e7d9f 100644--- a/shared/src/i18n/hu/assistantJourney.ts+++ b/shared/src/i18n/hu/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'A napló átrendezése','assistant.followUp.journalToday': 'Bejegyzés írása mára','assistant.followUp.journalSummary': 'Ezeknek a napoknak az összefoglalása',+ 'assistant.journal.welcome': 'Mi kerüljön a naplóba?',+ 'assistant.journal.readOnly':+ 'Ezt a naplót csak olvasni tudod, így kérdésekre válaszolhatok, de semmit sem módosíthatok.',};export default assistantJourney;diff --git a/shared/src/i18n/id/assistantJourney.ts b/shared/src/i18n/id/assistantJourney.tsindex d9218f7e4..55f021fb5 100644--- a/shared/src/i18n/id/assistantJourney.ts+++ b/shared/src/i18n/id/assistantJourney.ts@@ -24,5 +24,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Urutkan ulang jurnal','assistant.followUp.journalToday': 'Tulis entri untuk hari ini','assistant.followUp.journalSummary': 'Rangkum hari-hari ini',+ 'assistant.journal.welcome': 'Apa yang mau ditulis di jurnal?',+ 'assistant.journal.readOnly':+ 'Kamu hanya bisa membaca jurnal ini, jadi aku bisa menjawab pertanyaan tetapi tidak bisa mengubah apa pun.',};export default assistantJourney;diff --git a/shared/src/i18n/it/assistantJourney.ts b/shared/src/i18n/it/assistantJourney.tsindex b85daac1d..84ef1b75f 100644--- a/shared/src/i18n/it/assistantJourney.ts+++ b/shared/src/i18n/it/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Riordina il diario','assistant.followUp.journalToday': 'Scrivi una voce per oggi','assistant.followUp.journalSummary': 'Riassumi questi giorni',+ 'assistant.journal.welcome': 'Cosa scriviamo nel diario?',+ 'assistant.journal.readOnly':+ 'Puoi solo leggere questo diario, quindi posso rispondere alle domande ma non cambiare nulla.',};export default assistantJourney;diff --git a/shared/src/i18n/ja/assistantJourney.ts b/shared/src/i18n/ja/assistantJourney.tsindex eb1237e80..066792eca 100644--- a/shared/src/i18n/ja/assistantJourney.ts+++ b/shared/src/i18n/ja/assistantJourney.ts@@ -24,5 +24,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'ジャーナルを並べ替え','assistant.followUp.journalToday': '今日のエントリーを書く','assistant.followUp.journalSummary': 'この数日をまとめる',+ 'assistant.journal.welcome': 'ジャーナルに何を書きましょうか?',+ 'assistant.journal.readOnly': 'このジャーナルは閲覧のみなので、質問には答えられますが変更はできません。',};export default assistantJourney;diff --git a/shared/src/i18n/ko/assistantJourney.ts b/shared/src/i18n/ko/assistantJourney.tsindex 5ac513777..69548d02a 100644--- a/shared/src/i18n/ko/assistantJourney.ts+++ b/shared/src/i18n/ko/assistantJourney.ts@@ -24,5 +24,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': '저널 순서 변경','assistant.followUp.journalToday': '오늘 항목 쓰기','assistant.followUp.journalSummary': '이 며칠 요약하기',+ 'assistant.journal.welcome': '저널에 무엇을 적을까요?',+ 'assistant.journal.readOnly': '이 저널은 읽기만 할 수 있어서 질문에는 답할 수 있지만 아무것도 바꿀 수 없어요.',};export default assistantJourney;diff --git a/shared/src/i18n/nl/assistantJourney.ts b/shared/src/i18n/nl/assistantJourney.tsindex 4b7207a68..814342a5f 100644--- a/shared/src/i18n/nl/assistantJourney.ts+++ b/shared/src/i18n/nl/assistantJourney.ts@@ -27,5 +27,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Dagboek herschikken','assistant.followUp.journalToday': 'Schrijf een bericht voor vandaag','assistant.followUp.journalSummary': 'Vat deze dagen samen',+ 'assistant.journal.welcome': 'Wat komt er in het dagboek?',+ 'assistant.journal.readOnly': 'Je kunt dit dagboek alleen lezen, dus ik kan vragen beantwoorden maar niets wijzigen.',};export default assistantJourney;diff --git a/shared/src/i18n/pl/assistantJourney.ts b/shared/src/i18n/pl/assistantJourney.tsindex c0782f7af..ed0d92b96 100644--- a/shared/src/i18n/pl/assistantJourney.ts+++ b/shared/src/i18n/pl/assistantJourney.ts@@ -33,5 +33,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Zmień kolejność dziennika','assistant.followUp.journalToday': 'Napisz wpis na dziś','assistant.followUp.journalSummary': 'Podsumuj te dni',+ 'assistant.journal.welcome': 'Co wpiszemy do dziennika?',+ 'assistant.journal.readOnly':+ 'Możesz tylko czytać ten dziennik, więc mogę odpowiadać na pytania, ale niczego nie zmienię.',};export default assistantJourney;diff --git a/shared/src/i18n/ru/assistantJourney.ts b/shared/src/i18n/ru/assistantJourney.tsindex c9abd4d25..cbf20ca7f 100644--- a/shared/src/i18n/ru/assistantJourney.ts+++ b/shared/src/i18n/ru/assistantJourney.ts@@ -33,5 +33,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Изменить порядок дневника','assistant.followUp.journalToday': 'Написать запись за сегодня','assistant.followUp.journalSummary': 'Подвести итог этих дней',+ 'assistant.journal.welcome': 'Что запишем в дневник?',+ 'assistant.journal.readOnly':+ 'Этот дневник тебе доступен только для чтения, поэтому я могу отвечать на вопросы, но ничего не изменю.',};export default assistantJourney;diff --git a/shared/src/i18n/sk/assistantJourney.ts b/shared/src/i18n/sk/assistantJourney.tsindex cf18b5301..93b4c5390 100644--- a/shared/src/i18n/sk/assistantJourney.ts+++ b/shared/src/i18n/sk/assistantJourney.ts@@ -30,5 +30,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Preusporiadať denník','assistant.followUp.journalToday': 'Napísať záznam za dnešok','assistant.followUp.journalSummary': 'Zhrnúť tieto dni',+ 'assistant.journal.welcome': 'Čo zapíšeme do denníka?',+ 'assistant.journal.readOnly': 'Tento denník môžeš iba čítať, takže môžem odpovedať na otázky, ale nič meniť.',};export default assistantJourney;diff --git a/shared/src/i18n/sv/assistantJourney.ts b/shared/src/i18n/sv/assistantJourney.tsindex 6b0734c60..5b35f9351 100644--- a/shared/src/i18n/sv/assistantJourney.ts+++ b/shared/src/i18n/sv/assistantJourney.ts@@ -27,5 +27,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Ordna om dagboken','assistant.followUp.journalToday': 'Skriv ett inlägg för i dag','assistant.followUp.journalSummary': 'Sammanfatta de här dagarna',+ 'assistant.journal.welcome': 'Vad ska stå i dagboken?',+ 'assistant.journal.readOnly': 'Du kan bara läsa den här dagboken, så jag kan svara på frågor men inte ändra något.',};export default assistantJourney;diff --git a/shared/src/i18n/th/assistantJourney.ts b/shared/src/i18n/th/assistantJourney.tsindex 4feb92b84..bb5b5c4c2 100644--- a/shared/src/i18n/th/assistantJourney.ts+++ b/shared/src/i18n/th/assistantJourney.ts@@ -24,5 +24,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'จัดลำดับบันทึกใหม่','assistant.followUp.journalToday': 'เขียนรายการสำหรับวันนี้','assistant.followUp.journalSummary': 'สรุปวันเหล่านี้',+ 'assistant.journal.welcome': 'จะเขียนอะไรลงในบันทึกดี?',+ 'assistant.journal.readOnly': 'คุณอ่านบันทึกนี้ได้อย่างเดียว ฉันจึงตอบคำถามได้แต่เปลี่ยนแปลงอะไรไม่ได้',};export default assistantJourney;diff --git a/shared/src/i18n/tr/assistantJourney.ts b/shared/src/i18n/tr/assistantJourney.tsindex 04520250c..59ccd57d0 100644--- a/shared/src/i18n/tr/assistantJourney.ts+++ b/shared/src/i18n/tr/assistantJourney.ts@@ -27,5 +27,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Günlüğü yeniden sırala','assistant.followUp.journalToday': 'Bugün için bir kayıt yaz','assistant.followUp.journalSummary': 'Bu günleri özetle',+ 'assistant.journal.welcome': 'Günlüğe ne yazalım?',+ 'assistant.journal.readOnly':+ 'Bu günlüğü yalnızca okuyabilirsin, bu yüzden soruları yanıtlayabilirim ama hiçbir şeyi değiştiremem.',};export default assistantJourney;diff --git a/shared/src/i18n/uk/assistantJourney.ts b/shared/src/i18n/uk/assistantJourney.tsindex 2d672dfaf..9641ee95f 100644--- a/shared/src/i18n/uk/assistantJourney.ts+++ b/shared/src/i18n/uk/assistantJourney.ts@@ -33,5 +33,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Змінити порядок щоденника','assistant.followUp.journalToday': 'Написати запис за сьогодні','assistant.followUp.journalSummary': 'Підсумувати ці дні',+ 'assistant.journal.welcome': 'Що запишемо до щоденника?',+ 'assistant.journal.readOnly':+ 'Цей щоденник ти можеш лише читати, тож я можу відповідати на запитання, але нічого не зміню.',};export default assistantJourney;diff --git a/shared/src/i18n/vi/assistantJourney.ts b/shared/src/i18n/vi/assistantJourney.tsindex 4ab426856..e0b78c1e8 100644--- a/shared/src/i18n/vi/assistantJourney.ts+++ b/shared/src/i18n/vi/assistantJourney.ts@@ -24,5 +24,8 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': 'Sắp xếp lại nhật ký','assistant.followUp.journalToday': 'Viết mục cho hôm nay','assistant.followUp.journalSummary': 'Tóm tắt những ngày này',+ 'assistant.journal.welcome': 'Mình viết gì vào nhật ký nhé?',+ 'assistant.journal.readOnly':+ 'Bạn chỉ có thể đọc nhật ký này, nên mình có thể trả lời câu hỏi nhưng không thay đổi được gì.',};export default assistantJourney;diff --git a/shared/src/i18n/zh-TW/assistantJourney.ts b/shared/src/i18n/zh-TW/assistantJourney.tsindex bad6e5729..03505846b 100644--- a/shared/src/i18n/zh-TW/assistantJourney.ts+++ b/shared/src/i18n/zh-TW/assistantJourney.ts@@ -24,5 +24,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': '重新排列日誌','assistant.followUp.journalToday': '寫一則今天的條目','assistant.followUp.journalSummary': '總結這幾天',+ 'assistant.journal.welcome': '日誌裡要寫些什麼?',+ 'assistant.journal.readOnly': '你只能查看這本日誌,所以我可以回答問題,但不能做任何更改。',};export default assistantJourney;diff --git a/shared/src/i18n/zh/assistantJourney.ts b/shared/src/i18n/zh/assistantJourney.tsindex a2acd2f22..17eefe4e1 100644--- a/shared/src/i18n/zh/assistantJourney.ts+++ b/shared/src/i18n/zh/assistantJourney.ts@@ -24,5 +24,7 @@ const assistantJourney: TranslationStrings = {'assistant.tool.reorder_journey_entries': '重新排序日志','assistant.followUp.journalToday': '写一条今天的条目','assistant.followUp.journalSummary': '总结这几天',+ 'assistant.journal.welcome': '日志里要写些什么?',+ 'assistant.journal.readOnly': '你只能查看这本日志,所以我可以回答问题,但不能做任何更改。',};export default assistantJourney;