Skip to content

feat(studio): Object Designer protocol — field editor, relationship mapper, ER diagram, object manager schemas#683

Merged
hotlong merged 3 commits intomainfrom
copilot/evaluate-object-designer-optimizations
Feb 15, 2026
Merged

feat(studio): Object Designer protocol — field editor, relationship mapper, ER diagram, object manager schemas#683
hotlong merged 3 commits intomainfrom
copilot/evaluate-object-designer-optimizations

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 15, 2026

Defines the full spec protocol for the Object Designer experience in Studio — visual field editing, relationship mapping, ER diagrams, and unified object management. Updates roadmaps with refined implementation phases.

New: packages/spec/src/studio/object-designer.zod.ts

16 Zod schemas composing ObjectDesignerConfigSchema:

  • Field Editor — inline editing, drag-reorder, 6 property panel sections (basics/constraints/relationship/display/security/advanced), field grouping, batch ops, pagination at 50+ fields
  • Relationship Mapper — drag-to-create for lookup/master_detail/tree types, reverse relationships, cascade warnings, configurable line styles per type
  • ER Diagram — 4 layout algorithms (force/hierarchy/grid/circular), node display with field list + type badges, minimap, zoom 0.1x–3x, click-to-navigate, drag-to-connect, export PNG/SVG/JSON, orphan hiding
  • Object Manager — table/card/tree display modes, search + filter (package/tags/field types/relationships), quick-preview tooltips, stats summary, comparison mode
  • Object Preview — 8-tab detail view (Fields, Relationships, Indexes, Validations, Capabilities, Data, API, Code)
import { defineObjectDesignerConfig } from '@objectstack/spec/studio';

const config = defineObjectDesignerConfig({
  defaultView: 'er-diagram',
  erDiagram: { layout: 'hierarchy', hideOrphans: true },
  fieldEditor: { showFieldGroups: true, batchOperations: true },
  objectManager: { defaultDisplayMode: 'cards', showERDiagramToggle: true },
});

Tests

46 tests covering all schemas — defaults, partial overrides, validation rejection. All 197 test files / 5,363 tests passing.

Roadmap updates

  • ROADMAP.md Phase 8.1 expanded with ER diagram and object manager line items; metrics updated
  • apps/studio/ROADMAP.md Phase 1 refined into sub-tasks 1.0–1.1d with protocol marked complete
Original prompt

你是顶级的低代码架构师,扫描目前的代码,提出用户体验最优的解决方案,评估优化的对象设计器,进行深度优化,更新roadmap

Object Designer — visual field editor, relationship mapper,评估是否需要可视化的er图
包括如何改善统一的对象管理器,方便的预览对象界面,设计对象相关的元数据。


💡 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 15, 2026

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

Project Deployment Actions Updated (UTC)
objectstack-play Ready Ready Preview, Comment Feb 15, 2026 2:04am
spec Ready Ready Preview, Comment Feb 15, 2026 2:04am

Request Review

Copilot AI and others added 2 commits February 15, 2026 01:51
… relationship mapper, ER diagram, and object manager specs

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…timization plan and protocol schema details

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Assess and optimize user experience for Object Designer feat(studio): Object Designer protocol — field editor, relationship mapper, ER diagram, object manager schemas Feb 15, 2026
Copilot AI requested a review from hotlong February 15, 2026 02:02
@hotlong hotlong marked this pull request as ready for review February 15, 2026 02:16
Copilot AI review requested due to automatic review settings February 15, 2026 02:16
@hotlong hotlong merged commit dbbf263 into main Feb 15, 2026
3 checks passed
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

This PR introduces the complete protocol specification for the Object Designer experience in Studio, enabling visual field editing, relationship mapping, ER diagrams, and unified object management. The protocol defines 16 Zod schemas that establish the configuration surface for the entire object design workflow, with comprehensive test coverage across all schemas.

Changes:

  • Defined 16 Zod schemas composing ObjectDesignerConfigSchema for visual field editing, relationship mapping, ER diagrams, and object management
  • Implemented 46 tests validating schema defaults, partial overrides, and validation rejection across all protocol components
  • Updated roadmaps with refined implementation phases and protocol completion metrics

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/spec/src/studio/object-designer.zod.ts New protocol specification defining schemas for field editor, relationship mapper, ER diagram, object manager, and object preview configurations with full JSDoc documentation
packages/spec/src/studio/object-designer.test.ts Comprehensive test suite covering all 16 schemas with defaults, overrides, and validation scenarios
packages/spec/src/studio/index.ts Exports for all Object Designer schemas, types, and helper functions
apps/studio/ROADMAP.md Expanded Phase 1 with protocol completion (1.0) and refined sub-tasks (1.1–1.1d) for visual components
ROADMAP.md Updated Phase 8.1 with protocol completion and runtime implementation tasks; refreshed metrics for schema/test counts

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