Install
openclaw skills install orbcafe-stdreport-workflowBuild ORBCAFE standard report/list pages with CStandardPage, CTable, CSmartFilter, useStandardReport, persistence, and quickCreate/quickEdit/quickDelete using official examples-proven patterns. Use for filters, pagination, variants/layout, or report orchestration, especially when prior implementation had no visible effect.
openclaw skills install orbcafe-stdreport-workflowskills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是 Hook-first 模块。references/component-selection.md 选择 integrated 或 table-only。references/recipes.md 生成最小可运行代码。references/guardrails.md 强制检查 identity、分页、持久化、i18n。npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs
本仓库联调时,严格按官方顺序:
# repo root
npm run build
cd examples
npm install
npm run dev
参考实现:
examples/app/_components/StdReportExampleClient.tsxexamples/app/std-report/page.tsxmetadata.id for useStandardReportid for CStandardPageappId for standalone CTable / CSmartFilteruseStandardReport + CStandardPage mode="integrated"。orbcafe-ui 包入口导入,不导入私有 src/components/*。CAppPageLayout.locale 或 OrbcafeI18nProvider。quickCreate/quickEdit/quickDelete 开启时,始终给出 async 回调并写清 payload 结构。limit=-1 时,在 fetchData 层显式转换,不要把 ALL 模式直接透传。useStandardReport 产出 pageProps,再注入 tableProps.quick* 扩展,稳定且可维护。metadata.variants 提供默认视图,再让用户落地保存,能减少首次空白配置。active/pending/inactive)。calc(100vh - 120px))可避免页面整体滚动抖动。Mode: Hook-first.Pattern: integrated page or table-only.Code: paste-ready, imports from orbcafe-ui only.Data contract: columns/filters/rows/fetchData shape.Verify: 启动页面、筛选生效、分页切换、quick 操作触发、刷新后配置保留。Troubleshooting: 至少包含以下排查项:
metadata.id/id/appId 导致变体/布局“没效果”npm run build(本地 file:.. 依赖场景)