Skip to content

Commit 152d962

Browse files
os-zhuangclaude
andcommitted
feat(app-showcase): richer project detail (explicit highlights + details)
Enhance showcase_project_detail with explicit record:highlights (account / status / health / budget / end_date) and a Details tab with record:details sections (Overview / Financials / Timeline) bound to showcase_project — a richer record-page example that also gives the page editor's field pickers real content to resolve. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3a1d91a commit 152d962

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

examples/app-showcase/src/pages/project-detail.page.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,37 @@ export const ProjectDetailPage: Page = {
2323
isDefault: true,
2424
regions: [],
2525
slots: {
26+
// Explicit highlights strip — exercises the page editor's field-list picker
27+
// (objectFrom:'page' resolves showcase_project's fields).
28+
highlights: {
29+
type: 'record:highlights',
30+
properties: {
31+
fields: ['account', 'status', 'health', 'budget', 'end_date'],
32+
},
33+
},
2634
tabs: {
2735
type: 'page:tabs',
2836
properties: {
2937
type: 'line',
3038
items: [
39+
{
40+
// Explicit details sections — each section's `fields` is a
41+
// field-list bound to showcase_project in the page editor.
42+
key: 'details',
43+
label: 'Details',
44+
children: [
45+
{
46+
type: 'record:details',
47+
properties: {
48+
sections: [
49+
{ label: 'Overview', columns: 2, fields: ['name', 'account', 'owner', 'status'] },
50+
{ label: 'Financials', columns: 2, fields: ['budget', 'spent'] },
51+
{ label: 'Timeline', columns: 2, fields: ['start_date', 'end_date'] },
52+
],
53+
},
54+
},
55+
],
56+
},
3157
{
3258
key: 'tasks',
3359
label: 'Tasks',

0 commit comments

Comments
 (0)