Skip to content

[WIP] Update official documentation based on existing features#327

Merged
hotlong merged 4 commits intomainfrom
copilot/update-official-documentation
Feb 2, 2026
Merged

[WIP] Update official documentation based on existing features#327
hotlong merged 4 commits intomainfrom
copilot/update-official-documentation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 2, 2026

Documentation Update Progress

Completed

  • Add CLI documentation (@object-ui/cli) - Project scaffolding and dev server
  • Add create-plugin documentation (@object-ui/create-plugin) - Plugin template generation
  • Add runner documentation (@object-ui/runner) - Universal runtime application
  • Add data-objectstack documentation (@object-ui/data-objectstack) - ObjectStack data adapter
  • Add vscode-extension documentation - Schema editor for VS Code
  • Create utilities section in docs
  • Update meta.json to include utilities section
  • Update main index page with utilities information
  • Fix broken cross-references in documentation
  • Update architecture guide with utilities section
  • Add cross-links from plugins guide to utilities

Final Steps

  • Run code review to validate documentation quality
  • Run security scan
Original prompt

扫描现有软件包已经实现的功能,对官网文档进行必要的更新


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Feb 2, 2026 4:43am
objectui-components Ready Ready Preview, Comment Feb 2, 2026 4:43am
objectui-crm-app Error Error Feb 2, 2026 4:43am

Request Review

Copilot AI and others added 2 commits February 2, 2026 04:32
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@hotlong hotlong marked this pull request as ready for review February 2, 2026 04:34
Copilot AI review requested due to automatic review settings February 2, 2026 04:34
@hotlong hotlong merged commit 5bdc9e8 into main Feb 2, 2026
1 of 4 checks passed
Copilot AI requested a review from hotlong February 2, 2026 04:35
Copilot stopped work on behalf of hotlong due to an error February 2, 2026 04:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Utilities & Tools” documentation section and publishes initial docs pages for the project’s developer tooling packages.

Changes:

  • Introduces a new utilities/ docs section with pages for CLI, create-plugin, runner, data-objectstack, and the VS Code extension
  • Wires the new section into docs navigation (content/docs/meta.json) and the main docs landing page
  • Adds cross-links from existing guides (architecture, plugins) to the new utilities docs

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 34 comments.

Show a summary per file
File Description
content/docs/utilities/cli.mdx New CLI documentation page (commands, schema formats, config, examples)
content/docs/utilities/create-plugin.mdx New create-plugin documentation page (scaffold workflow, examples, conventions)
content/docs/utilities/data-objectstack.mdx New ObjectStack adapter documentation page (installation, API, examples)
content/docs/utilities/runner.mdx New Runner documentation page (usage, structure, extension guidance)
content/docs/utilities/vscode-extension.mdx New VS Code extension documentation page (features, commands, settings)
content/docs/utilities/index.md New utilities landing page aggregating all tools
content/docs/utilities/meta.json Adds utilities section page ordering
content/docs/meta.json Adds utilities to top-level docs navigation
content/docs/index.md Adds utilities section to the main docs homepage
content/docs/guide/plugins.md Adds links from plugin guide to utilities docs
content/docs/guide/architecture.md Adds utilities list and link in the architecture guide

Comment on lines +54 to +56
? Component name: AwesomeComponent
? Component type: awesome-component
? License: MIT
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prompt list doesn’t match what the CLI actually asks. The implementation (packages/create-plugin/src/index.ts) prompts for name (if missing), description, and author only—no component name/type or license. Please adjust the documented prompts to match the real ones.

Suggested change
? Component name: AwesomeComponent
? Component type: awesome-component
? License: MIT

Copilot uses AI. Check for mistakes.
Comment on lines +128 to +132
2. **Import in `src/main.tsx`:**

```typescript
import '@object-ui/plugin-yourplugin'
```
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggests importing plugins in src/main.tsx, but the current runner imports plugins in src/App.tsx (packages/runner/src/App.tsx). Please update the instructions to point to the correct file (or change the runner to import from main.tsx).

Copilot uses AI. Check for mistakes.
Comment on lines +39 to +57
### 1. Setup Provider

Wrap your app with the `ObjectStackProvider`:

```typescript
import { ObjectStackProvider } from '@object-ui/data-objectstack'
import { SchemaRenderer } from '@object-ui/react'

function App() {
return (
<ObjectStackProvider
apiUrl="https://api.example.com"
apiKey="your-api-key"
>
<SchemaRenderer schema={schema} />
</ObjectStackProvider>
)
}
```
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section describes a React ObjectStackProvider, but the package currently exports ObjectStackAdapter / createObjectStackAdapter (no provider component) in packages/data-objectstack/src/index.ts and packages/data-objectstack/README.md. Please rewrite the quick start to show creating the adapter and passing it into the renderer (per the existing package README).

Copilot uses AI. Check for mistakes.
Comment on lines +338 to +340
- **Inquirer** - Interactive prompts
- **Chalk** - Terminal colors
- **Ora** - Loading spinners
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency list is incorrect: @object-ui/create-plugin uses commander + prompts (and does not depend on Inquirer or Ora). See packages/create-plugin/package.json. Please update this list to reflect the actual dependencies.

Suggested change
- **Inquirer** - Interactive prompts
- **Chalk** - Terminal colors
- **Ora** - Loading spinners
- **commander** - CLI command and argument parsing
- **prompts** - Interactive prompts
- **Chalk** - Terminal colors

Copilot uses AI. Check for mistakes.
Comment on lines +75 to +79
**Usage:**
1. Open a schema file
2. Run command
3. React component code is copied to clipboard

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export to React is documented as copying code to the clipboard, but the implementation opens a new editor tab with generated TSX (packages/vscode-extension/src/extension.ts, exportToReact). Please update the usage text to match actual behavior.

Copilot uses AI. Check for mistakes.
Comment thread content/docs/index.md

- **[ObjectStack Adapter](/docs/utilities/data-objectstack)** - Connect to ObjectStack backends
```typescript
import { ObjectStackProvider } from '@object-ui/data-objectstack'
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObjectStackProvider is referenced here, but @object-ui/data-objectstack does not export a provider component (it exports createObjectStackAdapter). Please update this snippet to the actual integration pattern (create adapter + pass into the renderer/provider) to prevent broken imports.

Suggested change
import { ObjectStackProvider } from '@object-ui/data-objectstack'
import { createObjectStackAdapter } from '@object-ui/data-objectstack'
import { SchemaRendererProvider } from '@object-ui/react'
const objectStack = createObjectStackAdapter({
endpoint: 'https://api.my-objectstack-instance.com',
})
export function App() {
return (
<SchemaRendererProvider dataSource={objectStack}>
{/* your schema-driven UI here */}
</SchemaRendererProvider>
)
}

Copilot uses AI. Check for mistakes.
Comment on lines +318 to +319
"api": "http://localhost:3000/api/users",
"method": "GET"
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dataSource example shape is inconsistent with the actual DataFetchConfig type: dataSource.api can be a string or an APIRequest object (packages/types/src/api-types.ts), so method should be inside api when you need it (instead of being a sibling key). As written, method would be ignored by strict consumers/validators.

Suggested change
"api": "http://localhost:3000/api/users",
"method": "GET"
"api": {
"url": "http://localhost:3000/api/users",
"method": "GET"
}

Copilot uses AI. Check for mistakes.
Comment on lines +16 to +17
**Note:** The `@objectstack/client` package is a peer dependency and must be installed separately.

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@objectstack/client is documented as a peer dependency that must be installed separately, but packages/data-objectstack/package.json lists it under dependencies. Please update this note to reflect the actual dependency type/installation behavior.

Copilot uses AI. Check for mistakes.
Comment on lines +61 to +101
Reference ObjectStack data sources in your schemas:

```json
{
"type": "data-table",
"dataSource": {
"type": "objectstack",
"object": "users",
"query": {
"filters": [
{
"field": "status",
"operator": "eq",
"value": "active"
}
],
"sort": [
{
"field": "createdAt",
"direction": "desc"
}
],
"limit": 50
}
},
"columns": [
{
"key": "name",
"title": "Name"
},
{
"key": "email",
"title": "Email"
},
{
"key": "status",
"title": "Status"
}
]
}
```
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The schema examples here use a custom dataSource: { type: "objectstack", object, query... } shape and objectstack.create actions, but @object-ui/data-objectstack is a programmatic DataSource adapter and does not define/consume these schema fields. Please align this section with the real API (createObjectStackAdapter({ baseUrl, token, cache })) and the actual query model (QueryParams with $filter, $select, etc.).

Copilot uses AI. Check for mistakes.
Comment on lines +114 to +124
#### `preview` - Preview Production Build

Preview the production build locally.

```bash
objectui preview [options]
```

**Options:**
- `--port <number>` - Port to run on (default: 4173)

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

objectui preview is documented here, but there is no preview command in the CLI (packages/cli/src/cli.ts). The closest equivalent is objectui start (production server) after objectui build. Please either document start instead, or implement a preview command.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants