Skip to content

Commit 656789e

Browse files
xuyushun441-syshotlongclaude
authored
fix(app-showcase): surface Task Detail quick actions in the record_section bar (#2082)
The Task Detail page's `record:quick_actions` bar (location: 'record_section') names `showcase_mark_done` + `showcase_log_time`, but neither action declared the `record_section` location, so the engine location-filtered them out and the drawer showed the dev placeholder "record:quick_actions — no actions configured". Add `record_section` to both actions' locations, mirroring the platform's own sys-user pages, so the Mark Done / Log Time buttons render. Co-authored-by: Jack Zhuang <zhuangjianguo@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3187952 commit 656789e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • examples/app-showcase/src/actions

examples/app-showcase/src/actions/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export const MarkDoneAction: Action = {
1717
icon: 'check',
1818
objectName: task,
1919
type: 'script',
20-
locations: ['list_item', 'record_header'],
20+
// `record_section` so the Task Detail page's `record:quick_actions` bar
21+
// (which names this action) resolves it — the engine location-filters even
22+
// explicitly-named actions, mirroring the platform's own sys-user pages.
23+
locations: ['list_item', 'record_header', 'record_section'],
2124
refreshAfter: true,
2225
};
2326

@@ -82,7 +85,8 @@ export const LogTimeAction: Action = {
8285
objectName: task,
8386
type: 'form',
8487
target: 'showcase_task.default',
85-
locations: ['record_header', 'record_related'],
88+
// `record_section` so it surfaces in the Task Detail quick-actions bar too.
89+
locations: ['record_header', 'record_related', 'record_section'],
8690
refreshAfter: true,
8791
};
8892

0 commit comments

Comments
 (0)