Skip to content

armgit / TREK

Public Imported from GitHub
0

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.

fix(assistant): the journal card's band says how many entries it holds again

Mauricedeea669e2818
diff --git a/client/src/components/Assistant/cards/journey/JourneyEntriesBlock.tsx b/client/src/components/Assistant/cards/journey/JourneyEntriesBlock.tsx
index e30f101bf..6000490d8 100644
--- a/client/src/components/Assistant/cards/journey/JourneyEntriesBlock.tsx
+++ b/client/src/components/Assistant/cards/journey/JourneyEntriesBlock.tsx
@@ -66,7 +66,8 @@ function JournalHead({ journal }: { journal: JournalEntries }) {
const { t } = useTranslation();
const title = journal.journalTitle ?? t('assistant.card.journey.label');
const count = journal.entries.length + journal.more;
- return <CardHeader icon={BookOpen} tone="info" title={title} count={count > 2 ? count : undefined} />;
+ const meta = count > 2 ? t('assistant.card.journey.entries', { count }) : undefined;
+ return <CardHeader icon={BookOpen} tone="info" title={title} meta={meta} />;
}
/** One entry as a row: its photo, its title (the way to it), its facts and the start of its text. */