Loading component…
Loading component…
One client's whole context in one place – KPIs with drawn sparklines, a composer with @mentions and attachments, and an activity timeline that answers what happened and when.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import ClientContext from ./client-context.
import { ClientContext } from "@/components/ui/client-context";
export function ClientPage() {
return (
<ClientContext
me={{ name: "Lena Hart", avatar: "/avatars/lena.jpg" }}
onAddContext={(clientId, text, files) => api.addContext(clientId, { text, files })}
onCreateClient={(name) => api.createClient(name)}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| clients | ContextClient[] | Each { id, name, meta, mark, kpis, reports, context } – the switcher lists them all | |
| context entries | ContextEntry[] | note ("@Report name" becomes a mention), report, files (type pdf · xlsx · csv · doc) or integration { app, connected } | |
| me | { name, avatar? } | Author of new context | |
| onAddContext | (clientId, text, files) => void | Called when context is added | |
| onCreateClient | (name) => void | Called when a client is created from the switcher | |
| className | string | Extra class on the root |
Follows its own width: below 680px the KPIs wrap into two rows, the tabs stretch and search moves below them
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"