Skip to content

Commit c7374a6

Browse files
os-zhuangclaude
andcommitted
feat(showcase): enable the record History tab on Account
The v16 sweep (#3358 §4 "Record History tab") couldn't exercise the tab because no showcase object opted into it: the console gates the History tab on object-level `enable.trackHistory` (RecordDetailView) — audit *capture* is always on, but the *tab* is opt-in — and the showcase only set `trackHistory` at the FIELD level (industry/status), which just selects which diffs are summarized. So the tab never rendered anywhere and #2691/#3293 (display-value diffs, computed-field exclusion) were undemonstrated. Set `enable: { trackHistory: true }` on Account (which already declares field-level `trackHistory` on `industry`/`status` for clean diffs). Verified in the running app: the Account detail now shows a **历史 / History** tab; after editing `industry`, it renders "Dev Admin · UPDATE · 行业: Retail → Technology" — field label + select **display values** (not raw stored codes/ids), no phantom value→null rows. `os validate` + `tsc --noEmit` pass. Follow-up to #3364 / #3393, from the #3358 sweep §4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 7b07417 commit c7374a6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

examples/app-showcase/src/data/objects/account.object.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export const Account = ObjectSchema.create({
4040
// every surface, no per-page config.
4141
highlightFields: ['status', 'industry', 'annual_revenue'],
4242

43+
// Show the record **History tab** (audit-trail UI). The console gates the tab
44+
// on object-level `enable.trackHistory` (RecordDetailView) — audit *capture*
45+
// is always on, but the tab is opt-in — so without this the tab never renders
46+
// and the feature is undemonstrable. Paired with the per-field `trackHistory`
47+
// on `industry` / `status` below so those changes get summarized diffs
48+
// (display values, not raw ids; computed fields excluded — #2691/#3293).
49+
enable: { trackHistory: true },
50+
4351
fields: {
4452
name: Field.text({ label: 'Account Name', required: true, searchable: true, maxLength: 200 }),
4553
industry: Field.select({

0 commit comments

Comments
 (0)