Change review split — Table block

Pro

table-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-split

Usage

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.

PropTypeDescription
title*stringWordsthe section’s heading
descriptionstringWordsa 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
exportstringActionexports the audit records with actor and action filters
morestringActionopens the next page with actor and action filters
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Entry entries[] · 9 props
PropTypeDescription
id*stringDatathe entry’s id
actor*Actorwho did it
action*stringWordsthe recorded action, not a navigation action
target*Targetthe record it was done on
at*stringWordsthe full timestamp, including timezone, formatted by the host
ipstringDatathe IP address it came from
devicestringWordsthe device used, as the host writes it
outcomestringWordshow 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
PropTypeDescription
id*stringDatathe actor’s id
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Target entries[].target · 3 props
PropTypeDescription
id*stringDatathe target’s id
label*stringWordsthe target’s name, as shown
typestringWordswhat kind of record it is
Change entries[].changes[] · 3 props
PropTypeDescription
field*stringWordsthe field that changed
before*string | nullWordsthe value before; null when it was added
after*string | nullWordsthe value after; null when it was removed
Options options · 3 props
PropTypeDescription
selectedIdstringDatathe id of the entry open first; the first entry by default
footnotestringWordsa small line at the foot of the section
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa 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).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour 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:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo 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 auditEntries from 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.

All 24 table blocks