|
1 | | -# Quick Reference Guide | 快速参考指南 |
2 | | - |
3 | | -## 📍 Where to Find Everything |
4 | | - |
5 | | -### Documentation | 文档 |
6 | | - |
7 | | -#### ObjectOS Integration |
8 | | -**File:** `content/docs/guide/objectos-integration.mdx` |
9 | | -**URL:** https://www.objectui.org/docs/guide/objectos-integration |
10 | | -**Topics:** |
11 | | -- Integration architecture |
12 | | -- Quick start guide |
13 | | -- Multi-tenancy support |
14 | | -- RBAC integration |
15 | | -- 3 deployment strategies |
16 | | -- Migration from competitors |
17 | | - |
18 | | -#### Console Rendering |
19 | | -**File:** `content/docs/guide/console-rendering.mdx` |
20 | | -**URL:** https://www.objectui.org/docs/guide/console-rendering |
21 | | -**Topics:** |
22 | | -- Terminal/CLI rendering |
23 | | -- Ink integration |
24 | | -- CLI tool examples |
25 | | -- Server console setup |
26 | | -- Best practices |
27 | | - |
28 | | -#### AG Grid (Chinese) |
29 | | -**File:** `content/docs/plugins/plugin-aggrid.zh-CN.mdx` |
30 | | -**URL:** https://www.objectui.org/docs/plugins/plugin-aggrid.zh-CN |
31 | | -**Topics:** |
32 | | -- 完整的中文文档 |
33 | | -- 交互式示例 |
34 | | -- API 参考 |
35 | | - |
36 | | ---- |
37 | | - |
38 | | -### Storybook Stories | 故事示例 |
39 | | - |
40 | | -**File:** `packages/components/src/stories-json/object-aggrid-advanced.stories.tsx` |
41 | | -**Run:** `pnpm storybook` |
42 | | -**Navigate to:** Plugins > Data Views > Object AgGrid Advanced |
43 | | - |
44 | | -**Stories:** |
45 | | -1. Status Bar & Aggregations - 状态栏和聚合 |
46 | | -2. Context Menu - 右键菜单 |
47 | | -3. Inline Editing + Row Selection - 行内编辑 |
48 | | -4. Full Featured - 完整功能 |
49 | | -5. Alpine Theme (Full Featured) |
50 | | -6. Balham Theme + Export |
51 | | -7. Material Theme + Status Bar |
52 | | - |
53 | | ---- |
54 | | - |
55 | | -### Development Plans | 开发计划 |
56 | | - |
57 | | -#### Integration Roadmap |
58 | | -**File:** `OBJECTOS_INTEGRATION_ROADMAP.md` |
59 | | -**Scope:** 12 months (Q1-Q4 2026) |
60 | | -**Phases:** |
61 | | -- Q1: Foundation (Multi-tenant, RBAC, System Objects) |
62 | | -- Q2: Enterprise Features (Workflows, Collaboration) |
63 | | -- Q3: Production Readiness (Performance, i18n, Security) |
64 | | -- Q4: Ecosystem Expansion (Marketplace, Cloud Platform) |
65 | | - |
66 | | -#### Complete Summary |
67 | | -**File:** `UPDATE_SUMMARY.md` |
68 | | -**Contents:** |
69 | | -- Package scan results |
70 | | -- All documentation updates |
71 | | -- Storybook enhancements |
72 | | -- Impact assessment |
73 | | -- Next steps |
74 | | - |
75 | | ---- |
76 | | - |
77 | | -## 🎯 Quick Commands |
78 | | - |
79 | | -### View Documentation Locally |
| 1 | +# Quick Reference |
| 2 | + |
| 3 | +A one-page cheat-sheet for working in the `objectui` monorepo. |
| 4 | + |
| 5 | +## Common Commands |
| 6 | + |
| 7 | +### Install & Build |
| 8 | + |
80 | 9 | ```bash |
81 | | -cd /home/runner/work/objectui/objectui |
82 | | -pnpm site:dev |
83 | | -# Visit http://localhost:3000 |
| 10 | +pnpm install # Install all workspace dependencies |
| 11 | +pnpm build # Build every package (turbo, parallel & cached) |
| 12 | +pnpm typecheck # Run tsc --noEmit across the workspace |
| 13 | +pnpm lint # Run eslint across the workspace |
84 | 14 | ``` |
85 | 15 |
|
86 | | -### Run Storybook |
| 16 | +### Run Docs & Storybook |
| 17 | + |
87 | 18 | ```bash |
88 | | -pnpm storybook |
89 | | -# Visit http://localhost:6006 |
| 19 | +pnpm --filter @object-ui/site dev # Docs site at http://localhost:3000 |
| 20 | +pnpm storybook # Component playground at http://localhost:6006 |
90 | 21 | ``` |
91 | 22 |
|
92 | | -### Build Project |
| 23 | +### Test |
| 24 | + |
93 | 25 | ```bash |
94 | | -pnpm build |
| 26 | +pnpm test # Run every vitest project |
| 27 | +pnpm --filter @object-ui/console test # Run just the console tests |
| 28 | +pnpm --filter @object-ui/core test # Run a single package's tests |
| 29 | +pnpm playwright test # End-to-end tests |
95 | 30 | ``` |
96 | 31 |
|
97 | 32 | ### Run Examples |
98 | | -```bash |
99 | | -# CRM with console |
100 | | -pnpm serve:crm |
101 | | -# Visit http://localhost:3000/console |
102 | 33 |
|
103 | | -# Todo example |
104 | | -pnpm serve:todo |
105 | | - |
106 | | -# Kitchen Sink |
107 | | -pnpm serve:kitchen-sink |
| 34 | +```bash |
| 35 | +pnpm --filter @object-ui/example-crm dev # CRM demo |
| 36 | +pnpm --filter @object-ui/example-todo dev # Todo demo |
| 37 | +pnpm --filter @object-ui/example-kitchen-sink dev # Kitchen-sink showcase |
108 | 38 | ``` |
109 | 39 |
|
110 | | ---- |
111 | | - |
112 | | -## 📋 Checklist for Next Developer |
113 | | - |
114 | | -### Immediate Tasks |
115 | | -- [ ] Review `UPDATE_SUMMARY.md` |
116 | | -- [ ] Review `OBJECTOS_INTEGRATION_ROADMAP.md` |
117 | | -- [ ] Test Storybook stories locally |
118 | | -- [ ] Verify documentation renders correctly |
119 | | - |
120 | | -### Short-term (Next Sprint) |
121 | | -- [ ] Create console-showcase example |
122 | | -- [ ] Enhance kitchen-sink with AG Grid features |
123 | | -- [ ] Add more Chinese translations |
124 | | -- [ ] Create ObjectOS integration example |
125 | | - |
126 | | -### Medium-term (Next Quarter) |
127 | | -- [ ] Implement Phase 1 of roadmap (Foundation) |
128 | | -- [ ] Build multi-tenancy support |
129 | | -- [ ] Implement RBAC system |
130 | | -- [ ] Integrate system objects |
131 | | - |
132 | | ---- |
133 | | - |
134 | | -## 🔗 Important Links |
135 | | - |
136 | | -### Documentation |
137 | | -- ObjectOS Integration: `/content/docs/guide/objectos-integration.mdx` |
138 | | -- Console Rendering: `/content/docs/guide/console-rendering.mdx` |
139 | | -- AG Grid Chinese: `/content/docs/plugins/plugin-aggrid.zh-CN.mdx` |
140 | | - |
141 | | -### Storybook |
142 | | -- Advanced Stories: `/packages/components/src/stories-json/object-aggrid-advanced.stories.tsx` |
| 40 | +### Release (via changesets) |
143 | 41 |
|
144 | | -### Planning |
145 | | -- Roadmap: `/OBJECTOS_INTEGRATION_ROADMAP.md` |
146 | | -- Summary: `/UPDATE_SUMMARY.md` |
147 | | - |
148 | | -### Examples |
149 | | -- CRM: `/examples/crm/` |
150 | | -- Todo: `/examples/todo/` |
151 | | -- Kitchen Sink: `/examples/kitchen-sink/` |
152 | | - |
153 | | ---- |
154 | | - |
155 | | -## 💡 Key Concepts |
156 | | - |
157 | | -### ObjectOS Integration |
158 | | -1. **Adapter Pattern**: Use `ObjectStackAdapter` for data layer |
159 | | -2. **Multi-tenancy**: Implement via `TenantProvider` |
160 | | -3. **RBAC**: Use `PermissionGuard` components |
161 | | -4. **Workflows**: Define state machines in schemas |
162 | | - |
163 | | -### Console Rendering |
164 | | -1. **Ink Framework**: React for CLI applications |
165 | | -2. **CLI-Table3**: Terminal table rendering |
166 | | -3. **Inquirer**: Interactive prompts |
167 | | -4. **Chalk**: Colored terminal output |
168 | | - |
169 | | -### Internationalization |
170 | | -1. **Pattern**: Create `.zh-CN.mdx` files alongside `.mdx` |
171 | | -2. **Translation**: Keep schema structure, translate content |
172 | | -3. **Navigation**: Update `meta.json` for language-specific pages |
173 | | - |
174 | | ---- |
175 | | - |
176 | | -## 🎓 Learning Resources |
177 | | - |
178 | | -### Created in This PR |
179 | | -- **ObjectOS Integration Guide** - Learn how to integrate with ObjectOS |
180 | | -- **Console Rendering Patterns** - Build CLI tools with ObjectUI |
181 | | -- **Chinese Documentation Example** - See i18n implementation |
182 | | -- **Development Roadmap** - Understand the 12-month plan |
183 | | - |
184 | | -### Existing Resources |
185 | | -- Main README: `/README.md` |
186 | | -- Improvement Plan: `/IMPROVEMENT_PLAN.md` |
187 | | -- Contributing Guide: `/CONTRIBUTING.md` |
188 | | -- Examples: `/examples/` |
189 | | - |
190 | | ---- |
191 | | - |
192 | | -## 📞 Support |
193 | | - |
194 | | -For questions about: |
195 | | -- **Documentation**: Check `UPDATE_SUMMARY.md` |
196 | | -- **Integration**: See `OBJECTOS_INTEGRATION_ROADMAP.md` |
197 | | -- **Implementation**: Review examples in `/examples/` |
198 | | -- **Issues**: GitHub Issues |
199 | | - |
200 | | ---- |
| 42 | +```bash |
| 43 | +pnpm changeset # Author a changeset for your PR |
| 44 | +pnpm changeset version # Apply changesets & bump versions |
| 45 | +pnpm changeset publish # Publish to npm (CI only) |
| 46 | +``` |
201 | 47 |
|
202 | | -**Last Updated:** 2026-02-07 |
203 | | -**Status:** ✅ Complete and Ready for Review |
| 48 | +## Repository Layout |
| 49 | + |
| 50 | +| Path | Purpose | |
| 51 | +| --- | --- | |
| 52 | +| `packages/*` | 39 published packages (`@object-ui/*`, `@objectstack/plugin-ui`) | |
| 53 | +| `apps/console` | Full ObjectUI console app (Vite + React) | |
| 54 | +| `apps/site` | Public docs site at <https://www.objectui.org> (fumadocs) | |
| 55 | +| `apps/server` | Vercel backend for `demo.objectstack.ai` | |
| 56 | +| `examples/*` | Runnable integration examples (CRM, todo, minimal-console, …) | |
| 57 | +| `content/docs/` | MDX source for the docs site | |
| 58 | +| `e2e/` | Playwright end-to-end tests | |
| 59 | +| `.changeset/` | Pending release notes | |
| 60 | + |
| 61 | +## Package Tiers |
| 62 | + |
| 63 | +| Tier | Location | Role | |
| 64 | +| --- | --- | --- | |
| 65 | +| Protocol | `packages/types` | Pure TypeScript types (no runtime deps) | |
| 66 | +| Engine | `packages/core` | Registry, expression engine, action runner | |
| 67 | +| Atoms | `packages/components` | Shadcn primitives | |
| 68 | +| Fields | `packages/fields` | Form field widgets | |
| 69 | +| Layout | `packages/layout`, `packages/app-shell` | Page skeletons | |
| 70 | +| Plugins | `packages/plugin-*` | Heavy view widgets (grid, kanban, charts, …) | |
| 71 | +| Runtime | `packages/react`, `packages/runner` | React bindings & bootstrap | |
| 72 | +| Adapters | `packages/data-objectstack`, `packages/providers` | Data source integration | |
| 73 | +| Platform | `packages/auth`, `packages/permissions`, `packages/tenant`, `packages/i18n`, `packages/mobile`, `packages/collaboration` | Cross-cutting concerns | |
| 74 | +| Tooling | `packages/cli`, `packages/create-plugin`, `packages/vscode-extension` | Developer experience | |
| 75 | + |
| 76 | +## Key Documents |
| 77 | + |
| 78 | +- [README.md](./README.md) — project overview & quick start |
| 79 | +- [CHANGELOG.md](./CHANGELOG.md) — release notes |
| 80 | +- [ROADMAP.md](./ROADMAP.md) — development plan |
| 81 | +- [CONTRIBUTING.md](./CONTRIBUTING.md) — contribution workflow |
| 82 | +- [`content/docs/`](./content/docs/) — full documentation source |
| 83 | + |
| 84 | +## Current Release |
| 85 | + |
| 86 | +- **Version:** v3.3.0 (first official release) |
| 87 | +- **Spec:** `@objectstack/spec` v3.3.0 |
| 88 | +- **Client:** `@objectstack/client` v3.3.0 |
| 89 | +- **Node.js:** ≥ 18 |
| 90 | +- **React:** 18.x or 19.x |
| 91 | +- **TypeScript:** ≥ 5.0 (strict mode) |
0 commit comments