返回顶部
o

orbcafe-stdreport-workflowORBCAFE标准报表工作流

Build 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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
247
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

orbcafe-stdreport-workflow

ORBCAFE StdReport 工作流

工作流

  1. 1. 执行安装与运行前置。
  2. 先对照 skills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是 Hook-first 模块。
  3. 用 references/component-selection.md 选择 integrated 或 table-only。
  4. 基于 references/recipes.md 生成最小可运行代码。
  5. 用 references/guardrails.md 强制检查 identity、分页、持久化、i18n。
  6. 按官方 examples 补齐验收与排障步骤。

安装与启动(必选)

bash
npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs

本仓库联调时,严格按官方顺序:

bash

仓库根目录


npm run build

cd examples
npm install
npm run dev

参考实现:

  • - examples/app/_components/StdReportExampleClient.tsx
  • examples/app/std-report/page.tsx

强制规则

  • - 始终设置 identity:
- useStandardReport 的 metadata.id - CStandardPage 的 id - 独立 CTable / CSmartFilter 的 appId
  • - 默认优先使用 useStandardReport + CStandardPage mode=integrated。
  • 始终从 orbcafe-ui 包入口导入,不导入私有 src/components/*。
  • 需要 locale 时优先用 CAppPageLayout.locale 或 OrbcafeI18nProvider。
  • quickCreate/quickEdit/quickDelete 开启时,始终给出 async 回调并写清 payload 结构。
  • 后端不支持 limit=-1 时,在 fetchData 层显式转换,不要把 ALL 模式直接透传。

基于示例的经验总结

  • - 先用 useStandardReport 产出 pageProps,再注入 tableProps.quick* 扩展,稳定且可维护。
  • 通过 metadata.variants 提供默认视图,再让用户落地保存,能减少首次空白配置。
  • 列渲染尽量只做展示转换,筛选值保持机器稳定值(例如 active/pending/inactive)。
  • 表格放在固定高度容器(例如 calc(100vh - 120px))可避免页面整体滚动抖动。

输出契约

  1. 0. 模式: Hook-first。
  2. 模式: integrated page 或 table-only。
  3. 代码: 可直接粘贴,仅从 orbcafe-ui 导入。
  4. 数据契约: columns/filters/rows/fetchData 结构。
  5. 验证: 启动页面、筛选生效、分页切换、quick 操作触发、刷新后配置保留。
  6. 排障: 至少包含以下排查项:
- 忘记 metadata.id/id/appId 导致变体/布局没效果 - 没有先 npm run build(本地 file:.. 依赖场景) - 错误导入路径或 Next 客户端边界导致组件不渲染

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 orbcafe-stdreport-workflow-1776160636 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 orbcafe-stdreport-workflow-1776160636 技能

通过命令行安装

skillhub install orbcafe-stdreport-workflow-1776160636

下载

⬇ 下载 orbcafe-stdreport-workflow v1.0.1(免费)

文件大小: 4.96 KB | 发布时间: 2026-4-15 10:43

v1.0.1 最新 2026-4-15 10:43
- Improved documentation to include official installation and bootstrapping steps.
- Added detailed workflow and mandatory rules for identity, defaults, locale, and quick operation callbacks.
- Clarified troubleshooting steps for common issues (identity, build order, import paths).
- Provided examples-based best practices and linked official code examples for reference.
- Expanded output contract, emphasizing verification and troubleshooting requirements.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部