Install
openclaw skills install auto-pivot-tableBuild ORBCAFE advanced analytics and voice navigation with CPivotTable/usePivotTable and CAINavProvider/useVoiceInput using official examples patterns. Use for drag-drop pivot dimensions, PivotChart companion views, aggregation controls, preset persistence, or space-key voice workflows, especially when interactions appear not to take effect.
openclaw skills install auto-pivot-tableskills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是 Hook-first 模块。references/domain-patterns.md 判定 pivot、voice 或组合模式。references/recipes.md 产出实现骨架。references/guardrails.md 检查受控状态、preset 持久化、ASR 配置。npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs
本仓库联调:
npm run build
cd examples
npm install
npm run dev
参考实现:
examples/app/_components/PivotTableExampleClient.tsxexamples/app/_components/AINavExampleClient.tsxsrc/components/PivotTable/PivotChart/Mode: Hook-first.Module choice: pivot or AINav (or both).Minimal implementation: controlled if persistence/integration needed.Ops note: preset 持久化、PivotChart 默认逻辑或 ASR 契约。Verify: 至少包括拖拽布局生效、聚合切换、图表切换、独立折叠、生效后持久化、语音触发与回调。Troubleshooting: 至少包含 3 条失效排查点。usePivotTable 受控模式,不要只依赖组件内部状态。onPresetsChange 回调落地(本地可用 localStorage,生产建议服务端)。rows[0],否则 columns[0];默认主度量取 values[0]。Dimension / Measure / Compare measure / Chart type。window,写入放 useEffect)。onVoiceSubmit,否则“录音了但业务不动作”。ignoreWhenFocusedInput=true,避免输入框场景误触。