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 groups of a packing or to-do card are sections with a band in their colour
Maurice5b6de2bb1686
diff --git a/client/src/components/Assistant/cards/packing/checklistParts.tsx b/client/src/components/Assistant/cards/packing/checklistParts.tsxindex e689437a7..4ccd77143 100644--- a/client/src/components/Assistant/cards/packing/checklistParts.tsx+++ b/client/src/components/Assistant/cards/packing/checklistParts.tsx@@ -20,7 +20,16 @@ import { ROW_GLYPH, type RowChange } from './checklistModel';* list, and the rows of a run of changes with their include choice.*/-/** A group's head: its colour, its name, a badge, and who looks after it (the ones a change drops faded). */+/** The band behind a group's head: its colour faint over the card's grey, the grey alone without one. */+function bandOf(color: string): string {+ return color ? `color-mix(in srgb, ${color} 12%, var(--bg-secondary))` : 'var(--bg-secondary)';+}++/**+ * A group's head as a section of the list: a full width band in its colour,+ * the colour dot, its name, and at the end its badge (how many it holds) and+ * who looks after it, the ones a change drops faded.+ */export function ChecklistHead({color,name,@@ -38,14 +47,17 @@ export function ChecklistHead({lead?: ReactNode;}) {return (- <div className="flex min-w-0 items-center gap-2 pt-1">+ <div+ className="mt-1.5 flex min-w-0 items-center gap-2 rounded-lg px-2.5 py-1.5"+ style={{ background: bandOf(color) }}+ >{lead ?? <CategoryDot color={color} />}- <bdi title={name} className="min-w-0 truncate text-caption font-semibold text-content">+ <bdi title={name} className="min-w-0 flex-1 truncate text-caption font-semibold text-content">{name}</bdi>- {badge}- {(people.length > 0 || removed.length > 0) && (- <span className="ms-auto flex flex-none items-center gap-1.5">+ {(badge || people.length > 0 || removed.length > 0) && (+ <span className="flex flex-none items-center gap-1.5">+ {badge}<PeopleStack people={people} />{/* The people a change takes off, faded; the card says "No longer" in words under the head. */}{removed.length > 0 && (diff --git a/client/src/components/Assistant/cards/packing/packingParts.tsx b/client/src/components/Assistant/cards/packing/packingParts.tsxindex e8240a58c..36f33b5f0 100644--- a/client/src/components/Assistant/cards/packing/packingParts.tsx+++ b/client/src/components/Assistant/cards/packing/packingParts.tsx@@ -58,13 +58,13 @@ function BagSwatch({ bag, size = 'row' }: { bag: PackingCardBag | undefined; siz/** A row's quantity and weight: quiet figures at its end, no frame each. */const QUIET = 'text-caption tabular-nums text-content-muted';-/** How many rows a group holds, quiet beside its name. */+/** How many rows a group holds, a white pill at the end of its band. */function GroupCount({ count }: { count: number }) {const { t } = useTranslation();return (<spanaria-label={t('tours.packing.items', { count })}- className="flex-none text-caption tabular-nums text-content-faint"+ className="inline-flex h-[18px] flex-none items-center rounded-full bg-surface-card px-1.5 text-caption font-semibold tabular-nums text-content-secondary shadow-sm">{count}</span>@@ -231,7 +231,7 @@ function BagHead({}) {const { t } = useTranslation();if (!bag) {- const badge = inChange ? undefined : <GroupCount count={group.count} />;+ const badge = <GroupCount count={group.count} />;const lead = <BagSwatch bag={undefined} size="head" />;return <ChecklistHead color="" name={t('packing.noBag')} lead={lead} badge={badge} />;}@@ -298,7 +298,7 @@ export function PackingGroup({<ChecklistHeadcolor={packingColorOf(key.slot, name)}name={name}- badge={inChange ? undefined : <GroupCount count={group.count} />}+ badge={<GroupCount count={group.count} />}people={group.assignees}removed={group.assigneesRemoved}/>