Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…tleFormat, feedEnabled with feeds, remove list_views and form_views 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>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Optimize examples for the latest protocol
Migrate examples to latest protocol: remove deprecated fields and UI config
Jan 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates example object definitions from deprecated protocol fields to the latest ObjectStack specification, implementing proper separation between data and UI layers.
Changes:
- Replaced deprecated
nameFieldwithtitleFormattemplate expressions and addedcompactLayoutfor field selection - Migrated
feedEnabledtoenable.feedsand added new capability flags (activities,mru) - Removed 545 lines of UI configuration (
list_views,form_views) from object definitions, properly separating data and UI concerns
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| examples/todo/src/domains/todo/task.object.ts | Migrated TodoTask to use titleFormat, compactLayout, and new capability flags |
| examples/modern-fields/src/product.object.ts | Updated Product object with latest protocol patterns |
| examples/modern-fields/src/event.object.ts | Updated Event object with latest protocol patterns |
| examples/crm/src/domains/crm/task.object.ts | Migrated Task object and removed 100+ lines of UI views |
| examples/crm/src/domains/crm/opportunity.object.ts | Migrated Opportunity object with contextual titleFormat and removed UI configuration |
| examples/crm/src/domains/crm/lead.object.ts | Migrated Lead object and removed kanban/list views |
| examples/crm/src/domains/crm/contact.object.ts | Migrated Contact object and removed form/list views |
| examples/crm/src/domains/crm/case.object.ts | Migrated Case object with auto-numbered titleFormat and removed extensive UI views |
| examples/crm/src/domains/crm/account.object.ts | Migrated Account object with composite titleFormat and removed UI layer mixing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Examples were using deprecated protocol fields (
nameField,feedEnabled) and mixing data/UI layers (list_views,form_viewsin object definitions).Changes
Protocol field migrations:
nameField→titleFormatwith template expressions ('{name}','{account_number} - {name}')feedEnabled→enable.feeds(moved to capabilities block)compactLayoutfor card/hover/lookup field selectionenableblock withactivitiesandmrucapabilitiesSeparation of concerns:
list_viewsandform_viewsbelong in UI layer, not data layerExample:
Scope
9 object files updated:
Net -497 lines. TypeScript compiles clean.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.