feat(examples): add app-showcase kitchen-sink reference workspace - #1405
Merged
Conversation
Adds `@objectstack/example-showcase`, a comprehensive reference example built for demonstration, debugging, and coverage-driven verification. It pairs a realistic project-delivery domain (Account → Project → Task, Team, Category) with synthetic "gallery" objects that exhaust protocol variants, tied together by a coverage manifest: - Data: all 49 field types (field-zoo), plus lookup / master-detail / self-referencing tree / many-to-many junction relationships, formulas, validations, and a status state machine. - Views: all 8 list-view types on one object (grid, kanban, gallery, calendar, timeline, gantt, map, chart) and all 5 form types; a chart gallery covering all 38 chart types; all 4 report types; the action type × location matrix; a component-gallery page. - Capability chains: security (RBAC + FLS + RLS + sharing + policy), automation (flow → approval → webhook → job → email), and AI (agent + tool + skill); plus i18n, themes, datasources, and a portal. - Verification: src/coverage.ts + test/coverage.test.ts introspect the protocol's own Zod enums (FieldType, ChartType, ReportType, ActionType, ACTION_LOCATIONS) and fail when any variant is left uncovered, so the example stays a living conformance fixture. `pnpm verify` (typecheck + tests) is green; defineStack runs full schema + cross-reference validation on import. https://claude.ai/code/session_01CsmomJsLjCknpDjc1XjUcY
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
hotlong
marked this pull request as ready for review
May 31, 2026 06:16
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.
Summary
Adds
@objectstack/example-showcase— a kitchen-sink reference workspace designed to show off the whole platform at once, built for three audiences: demonstration, debugging, and coverage-driven verification.It deliberately splits into two tracks to resolve the demo-vs-verify tension:
Account → Project → Task,Team,Category) with seeded data so every view renders something real;…tied together by a coverage manifest (
src/coverage.ts) that the test suite checks against the protocol's own Zod enums.What it covers
Data layer
src/objects/field-zoo.object.ts)lookup,master_detail, self-referencing tree (Category.parent), and many-to-many via theshowcase_project_membershipjunctionView layer
Capability chains
en+zh-CN), light/dark themes, datasource, and an external portalVerification ("confirm")
test/coverage.test.tsintrospects the spec's own enums (FieldType,ChartType,ReportType,ActionType,ACTION_LOCATIONS) and asserts every member appears at least once across the registered metadata. Because the expected sets come from the spec — not a hand-maintained list — the test fails automatically when the platform gains a new variant that the showcase hasn't demonstrated, keeping it a living conformance fixture rather than a static snapshot.defineStackalso runs full schema + cross-reference validation on import.Notes for reviewers
@objectstack/spec/ui,/data, etc.) anddefine*/*.createbuilders. (Aside: the existingexamples/app-crmstill uses the older root-namespace style —UI.Report,Automation.ApprovalProcess— which no longer typechecks against the current spec, and email templates there are missing the now-requiredisSystem. Happy to follow up on app-crm in a separate PR if useful.)examples/README.mdupdated with a Showcase entry.🤖 Generated with Claude Code
https://claude.ai/code/session_01CsmomJsLjCknpDjc1XjUcY
Generated by Claude Code