feat(assistant): trip assistant chat with your own AI connection

Adds an in-app assistant that reads and plans the open trip. Users connect
their own provider (Sign in with ChatGPT, or an Anthropic, OpenAI, Gemini or
OpenRouter key) or use the one the admin set up, including a custom
OpenAI-compatible server. It is an addon and only shows while a connection
is usable.

The chat runs on the existing MCP tools, pinned to the trip. Every change is
held as a change card the user applies or discards, and applied changes can
be undone. On the desktop it is a floating window that can be moved and
resized; on the phone it is fullscreen. Search results show as place cards
that can go onto a day, weather lookups as a strip, proposed places as
ghost markers on the map with a before/after switch, and an answer can be
shared into the trip chat. Booking files can be dropped in and are read
into change cards.
This commit is contained in:
Maurice
2026-10-21 18:52:44 +02:00
parent 31859651d7
commit b64da26651
505 changed files with 51841 additions and 227 deletions
+4 -2
View File
@@ -270,9 +270,11 @@ export const PILL = 'inline-flex flex-none items-center gap-1.5 rounded-full bg-
export function DialogSection({ label, action, className, children }: { label: ReactNode; action?: ReactNode; className?: string; children: ReactNode }) {
return (
<section className={className}>
<div className="mb-2 flex items-center gap-2">
{/* A fixed height, so a section with an action (an upload pill) starts its content on the
same line as its neighbour without one; the action is centred and may overhang. */}
<div className="mb-2 flex h-4 items-center gap-2">
<div className={EYEBROW} style={fs(9.5)}>{label}</div>
{action && <span className="ms-auto">{action}</span>}
{action && <span className="ms-auto flex items-center">{action}</span>}
</div>
{children}
</section>