Skip to content

Enrich CRM example metadata with full @objectstack/spec capabilities #655

@hotlong

Description

@hotlong

🎯 Goal

Maximize the CRM example's use of @objectstack/spec features so that the Console front-end can verify all platform capabilities end-to-end.

📦 What's Being Enhanced

All 8 Object Definitions (account, contact, opportunity, product, order, user, project_task, event):

Enhancement Description
Object metadata description, titleFormat, recordName
Field enrichments required, searchable, unique, defaultValue, helpText, placeholder, group, readOnly
Field type diversity text, textarea, richtext, email, url, number, currency, percent, date, datetime, boolean, select (with colors), multi-select, lookup (single/multiple)
list_views 2+ list views per object (All, Active/Filtered) with sort/filter
actions Object-level actions (Send Email, Change Status, etc.) to exercise the Action Engine
form_layout Sections-based form layout organizing fields into logical groups
New fields 30+ new fields across all objects (tags, avatar, linkedin, expected_revenue, shipping_address, etc.)

Config & Docs Updates:

  • objectstack.config.ts — Updated seed data, new views leveraging new fields
  • ROADMAP.md — Completion entry added

🔑 Key Principle

  • Only use features actually supported by ObjectSchema.create() and Field.*() from @objectstack/spec/data
  • Keep backward compatibility with existing seed data field names
  • Run tests to ensure nothing breaks

The coding agent is now working on the PR. You'll receive a notification when it's ready for review. 🚀

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions