Change review split — Table block
Protable-change-review-split · for app, settings pages
Change review split
An event index beside one expanded before-and-after comparison of the merchant’s own recorded values.
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/table-change-review-splitUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import TableChangeReviewSplit from '@/components/trame/blocks/table/table-change-review-split.vue'
const props = {
title: "Audit log",
description: "Actions recorded on the store’s orders and access.",
entries: [
{
id: "evt-20261008-003",
actor: {
id: "support",
name: "Customer care team"
},
action: "order.updated",
target: {
id: "CMD-2048",
label: "Store order",
type: "Order"
},
at: "October 8, 2026 · 16:24 UTC-07:00",
ip: "192.0.2.18",
device: "Desktop browser",
outcome: "Completed",
changes: [
{
field: "Status",
before: "To prepare",
after: "Ready to ship"
},
{
field: "Comment",
before: null,
after: "Checked by the team."
}
]
},
{
id: "evt-20261008-002",
actor: {
id: "stock",
name: "Logistics team"
},
action: "access.updated",
target: {
id: "CMD-2049",
label: "Fulfillment access",
type: "Permission"
},
at: "October 8, 2026 · 15:24 UTC-07:00",
ip: "198.51.100.24",
device: "Desktop browser",
outcome: "Completed",
changes: [
{
field: "Role",
before: "View only",
after: "Fulfillment"
},
{
field: "Comment",
before: null,
after: "Checked by the team."
}
]
}
],
export: "audit.export",
more: "audit.next",
options: {
footnote: "Filters apply to the entries on this page. Times are shown with their time zone."
}
}
</script>
<template>
<TableChangeReviewSplit v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe section’s heading |
| description | string | Wordsa few words saying more, under the heading |
| entries* | Entry[] | Datathe merchant’s own audit records, in host order; filters apply to the supplied page only |
| export | string | Actionexports the audit records with actor and action filters |
| more | string | Actionopens the next page with actor and action filters |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Entry entries[] · 9 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe entry’s id |
| actor* | Actor | who did it |
| action* | string | Wordsthe recorded action, not a navigation action |
| target* | Target | the record it was done on |
| at* | string | Wordsthe full timestamp, including timezone, formatted by the host |
| ip | string | Datathe IP address it came from |
| device | string | Wordsthe device used, as the host writes it |
| outcome | string | Wordshow it ended, in the host’s words |
| changes* | Change[] | Datanull means absent; an empty string is an actual recorded empty value |
Actor entries[].actor · 6 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe actor’s id |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Target entries[].target · 3 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe target’s id |
| label* | string | Wordsthe target’s name, as shown |
| type | string | Wordswhat kind of record it is |
Change entries[].changes[] · 3 props
| Prop | Type | Description |
|---|---|---|
| field* | string | Wordsthe field that changed |
| before* | string | null | Wordsthe value before; null when it was added |
| after* | string | null | Wordsthe value after; null when it was removed |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| selectedId | string | Datathe id of the entry open first; the first entry by default |
| footnote | string | Wordsa small line at the foot of the section |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
export,more - Reads
auditEntriesfrom your app
A table section, for app, settings pages; it uses @lucide/vue.
More table blocks
- Action rows actionable: records that take one inline action and a state (join, mark done, revoke); done rows dim.
- Action rows monospace meta: records identified by a token (a query, a key, a path) with a visibility badge.
- Audit log timeline: A dated ledger with inline field changes for reconstructing the merchant’s own sequence of events.
- Audit log: An exhaustive filterable register for reviewing the merchant’s own recorded actions and changes.
- Column comparison: the same measures in two contexts side by side: an upper header row groups the columns, numbers align right.
- Filtered rows tabbed: records to sort through: filter chips with counts, an overdue date said in words as well as colour.
- Grouped sheet grid: Separate editable rows by an existing field value to work through related records, then save the edits in one go.
- Nested rows cards with lines: each parent as a card (identity, status and figures on its head) with its lines listed under it, all open: fewer parents read one by one, lines with their pictures.