Skip to content

feat: integrate @object-ui/console plugin#189

Merged
hotlong merged 3 commits intomainfrom
copilot/integrate-console-changes
Feb 14, 2026
Merged

feat: integrate @object-ui/console plugin#189
hotlong merged 3 commits intomainfrom
copilot/integrate-console-changes

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Description

Integrate @object-ui/console into HotCRM, mirroring the pattern from objectstack-ai/objectui#506. The Console UI plugin is registered in both the objectstack.config.ts (for CLI serve mode) and the Vercel serverless handler.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • CI/CD update

Related Issues

Related to objectstack-ai/objectui#506

Changes Made

  • objectstack.config.ts — Import ConsolePlugin from @object-ui/console, add new ConsolePlugin() to plugins array. Uses as any cast since defineStack schema doesn't include runtime plugins (same pattern as objectui).
  • package.json — Add @object-ui/console@^3.0.1 devDependency. Update devobjectstack serve --dev. Add serve script.
  • api/[[...route]].ts — Register ConsolePlugin in the Vercel serverless kernel bootstrap.

CLI modes after this change

Script Command Use case
pnpm dev objectstack serve --dev Dev mode: auto MemoryDriver + Console UI
pnpm serve objectstack serve Production CLI serve
pnpm start objectstack start Full production

Testing

  • Unit tests pass (npm test)
  • Linting passes (npm run lint)
  • Build succeeds (npm run build)
  • Manual testing completed
  • New tests added (if applicable)

All 3318 existing tests pass across 173 test files.

Screenshots

N/A — runtime plugin registration, no UI changes in this repo.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

The as any cast on defineStack() is required because the schema validates metadata-only plugin shapes, not runtime plugin class instances. This is the established pattern from the upstream objectui repo.


💡 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

vercel bot commented Feb 14, 2026

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

Project Deployment Actions Updated (UTC)
hotcrm Ready Ready Preview, Comment Feb 14, 2026 6:59am
hotcrm-demo Error Error Feb 14, 2026 6:59am

Request Review

Reference: objectstack-ai/objectui#506

- Add ConsolePlugin to objectstack.config.ts plugins array
- Add ConsolePlugin to Vercel serverless handler
- Add @object-ui/console ^3.0.1 as devDependency
- Update dev script to use `objectstack serve --dev`
- Add `serve` script for production CLI mode

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Integrate console pull request changes feat: integrate @object-ui/console plugin Feb 14, 2026
Copilot AI requested a review from hotlong February 14, 2026 07:01
@hotlong hotlong marked this pull request as ready for review February 14, 2026 07:12
Copilot AI review requested due to automatic review settings February 14, 2026 07:12
@hotlong hotlong merged commit 00a0d36 into main Feb 14, 2026
2 of 3 checks passed
Copy link

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

This PR integrates the @object-ui/console plugin into HotCRM to provide a runtime UI for data browsing and management, following the pattern established in the upstream objectui repository. The Console UI plugin is registered in both CLI serve mode (via objectstack.config.ts) and Vercel serverless deployment (via api/[[...route]].ts).

Changes:

  • Added @object-ui/console@^3.0.1 as a devDependency and registered ConsolePlugin in both config files
  • Changed the dev script from objectstack dev to objectstack serve --dev and added new serve script
  • Updated pnpm lockfile with the new dependency (lockfile also contains unrelated pnpm format changes removing libc fields)

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Added @object-ui/console@^3.0.1 dependency, changed dev script to objectstack serve --dev, added serve script
pnpm-lock.yaml Added @object-ui/console@3.0.1 package resolution and snapshot (also contains unrelated pnpm format changes)
objectstack.config.ts Imported and registered ConsolePlugin instance in plugins array with as any type cast
api/[[...route]].ts Imported and registered ConsolePlugin instance in Vercel serverless kernel bootstrap sequence
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

],
});
// Uses 'as any' because defineStack schema doesn't include runtime plugins
// like ConsolePlugin — consistent with objectstack.shared.ts pattern.
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The comment references "objectstack.shared.ts pattern" but this file doesn't exist in the HotCRM repository. This appears to be copied from the upstream objectui repository without being updated to reflect the actual HotCRM file structure. Consider updating this comment to reference the actual pattern source or simply state "consistent with upstream objectui pattern" or remove the specific file reference.

Suggested change
// like ConsolePlugin — consistent with objectstack.shared.ts pattern.
// like ConsolePlugin — consistent with the upstream ObjectUI pattern.

Copilot uses AI. Check for mistakes.
],
"scripts": {
"dev": "objectstack dev",
"dev": "objectstack serve --dev",
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

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

The script has changed from "objectstack dev" to "objectstack serve --dev", but the DEVELOPMENT_WORKFLOW.md documentation still shows the old pattern at line 256 and line 13. Consider updating the documentation to reflect the new command pattern to ensure consistency.

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.

2 participants