Skip to content

feat(showcase): enable the record History tab on Account#3397

Merged
os-zhuang merged 1 commit into
mainfrom
feat/showcase-history-tab
Jul 22, 2026
Merged

feat(showcase): enable the record History tab on Account#3397
os-zhuang merged 1 commit into
mainfrom
feat/showcase-history-tab

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Why

The #3358 v16 sweep (§4 "Record History tab") couldn't exercise the tab: no showcase object opted in. 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 merely selects which diffs get summarized. So the tab never rendered anywhere, and #2691/#3293 (display-value diffs, computed-field exclusion) were undemonstrated.

What

enable: { trackHistory: true } on Account — which already declares field-level trackHistory on industry/status, so those changes summarize cleanly.

Verified in the running app

  • The Account detail now shows a 历史 / History tab (it didn't before).
  • After editing industry, the tab renders "Dev Admin · UPDATE · 行业: Retail → Technology" — the field label + the select display values (not raw codes/ids), a single real change, no phantom value→null rows.
  • os validate ✓ · tsc --noEmit ✓.

Follow-up to #3364 / #3393; from the #3358 sweep §4. @objectstack/example-showcase is private → no changeset (skip-changeset).

🤖 Generated with Claude Code

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>
@os-zhuang os-zhuang added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Jul 22, 2026
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 22, 2026 12:16am

Request Review

@os-zhuang
os-zhuang merged commit 9ebdf67 into main Jul 22, 2026
18 checks passed
@os-zhuang
os-zhuang deleted the feat/showcase-history-tab branch July 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant