AuditTimeline: a record's history and comments
AuditTimeline is the history at the end of every record and side panel in an app built on Meadowstack: each change is an entry with a label, the person and the time. Decisions carry their status glyph, routine changes a dot, and anything someone wrote shows as a filled bubble.
By Bohuslav PoláčekChecked
What it is for
Every record in an app built on Meadowstack ends with its history, and every change of state writes an entry there. A side panel follows one order: what the record is, the next step, its properties, its actions, then this timeline. Comments live in the same list, so a question sits beside the change it is about.
The preview shows the two kinds of history the demo has. The change order "Relocation of the 11 kV cable" from the Stonebridge example went through decisions, so its entries carry status glyphs, and the supervisor's note and the reason for the rejection are bubbles. The Brightpath task shows routine changes: created, an assignee set, its status moved, each a label with a dot or a glyph.
It is not for a team conversation, which is ChatMessage's job (the manifest's not). How the history fits a whole record is the audit trail pattern and the record side panel.
The rules and where they live
- Every state change writes an audit entry, shown with AuditTimeline. The root
AGENTS.md, Permissions and audit. - Entries are labels without a grammatical subject: "Approved" and the person beside it, never "John approved".
AGENTS.md(Lightness) anddocs/patterns.md;docs/principles.mdgives the reason: in languages whose verbs carry gender, "approved by him or her" is never right. - Written text is a filled bubble.
AGENTS.md, under writing next to a record, and the manifest's summary. - Routine events get a dot, decisions their status glyph. The comment over the starter's
eventMeta(templates/starter/src/modules/requests/domain/status.tsx); the demo's modules keep the same split in their own maps, such ashistoryMetain the budget module. - A rejection stores its reason as the entry's detail, with the person and the time (the skill
kit-approval), which is why the reason in the preview is a bubble under "Rejected". - The history comes last in a side panel:
docs/principles.md, Side panels (Linear's peek). - Checked.
kit-approvalasks for a test that the history shows the label with the approver's name beside it, and the labels never need a verb that agrees with a person.
What AI coding tools write instead
The manifest names two things: a hand-built activity list and comments rendered by hand. Asked for an audit log, a tool writes sentences such as "Anna approved the order on 3 Oct" into a list, computes "2 days ago" from the clock in the render, and puts comments in a second list under a separate heading. The sentences break as soon as the app speaks a language with gendered verbs, the relative times drift between the server and the browser, and a reader has to match comments to changes by their dates.
The other common gap is where the entries come from. A page that writes history only when its own button is clicked misses every change made elsewhere: in bulk, by the assistant, through the api. In Meadowstack the api writes the entry on every transition, the component only shows it, and now comes in as a prop, so a screen and a test render the same times.
How to use it
AuditTimeline takes events, an optional now and a className. Each AuditEvent has:
| Field | What it holds |
|---|---|
id, title | The entry and its label without a subject: "Rejected", "Status: In progress". |
actor, actorKind | The person, or "system" for an import or a scheduled check; actorIcon and actorHue adjust its mark. |
at | ISO time, shown relative to now. |
detail | Written text, drawn as a filled bubble: a comment, a reason, a note. |
icon, tone | A 16px status glyph in place of the dot, and its tone. |
subject | What the entry is about, when one history covers several things. |
Keep the labels in one map per module (historyMeta, eventMeta), so the list, the side panel and the full page always agree, and put the comment box, a Composer in a Field, right under the timeline.
Its entry in the manifest
| Manifest field | AuditTimeline |
|---|---|
| What it is | A record's history and comments; written text is a filled bubble. |
| Use it for | At the end of every record and side panel; every state change writes an entry. |
| Not for | For a team conversation (ChatMessage) |
| It replaces | A hand-built activity list; Comments rendered by hand |
| Screen types | Record; Index; Worklist; Workspace |
| Import | import { AuditTimeline } from "@meadowstack-studio/kit"; |
Where the example apps use it
| Example app | Modules that render it |
|---|---|
| An app for a packaging and print company | Jobs, Print file editor, Quotes, Cutting dies, Colour |
| An app for a studio or agency | Capacity, Tasks, Finance |
| An app for a haulage company | Freight, Drivers, Costs |
| An app for a roastery with an online shop | Roasting, Green coffee, Shop, Wholesale, Scenarios |
| An app for a sports club | Front desk, Courts, Club, Coaching, Rentals |
| An app for a construction company | Sites, Schedule, Crews, Machines, Site diary, Drawings, Foreman's phone, Budget |
| An app for an accounting office | Documents, Bookkeeping, Official mail, Invoicing |
| An app for restaurants and venues | Shifts, Kitchen, Food safety, People, Handbook |
| An app for one person | Brand deals, Content, Money, Training |
How the demo turns events into entries
function eventToAudit(event: IssueEvent, name: (id: string) => string): AuditEvent {
const base = { id: event.id, at: event.at, actor: name(event.actorId) };
switch (event.type) {
case "created":
return { ...base, title: tx("Založeno", "Created") };
case "status": {
const status = Object.values(statusMeta).find((meta) => meta.label === event.detail);
return { ...base, title: `${tx("Stav", "Status")}: ${event.detail}`, icon: status?.icon };
}
case "priority":
return { ...base, title: `${tx("Priorita", "Priority")}: ${event.detail}` };
case "assignee":
return { ...base, title: `${tx("Řešitel", "Assignee")}: ${event.detail}` };
case "label":
return { ...base, title: tx("Štítky upraveny", "Labels changed") };
case "comment":
return { ...base, title: tx("Komentář", "Comment"), detail: event.detail };Questions
Why are history entries labels without a subject?
Because a sentence such as approved by him or her is never right in a language whose verbs carry gender. A label such as Approved, with the person beside it, reads the same in every language and for everyone.
Where do comments go?
Into the same timeline, as Comment entries whose text is a filled bubble, so a question sits beside the change it is about. The box to write one is a Composer in a Field right under the history.
Who writes the entries?
The api, on every change of state, with the person and the time; a rejection stores its reason as the entry's detail. The component only shows them, so a screen that forgets cannot leave a gap in the history.
Can the system be the actor of an entry?
Yes. An entry can name a person or the system, for an import or a scheduled check, and the system gets its own mark instead of a person's avatar.
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app