Skip to content

Docs code samples the current @objectstack/spec refuses: the remaining view fragments in build/interface/views.mdx and the send_email flow action in build/automation/flows.mdx #307

Description

@objectstack-fleet

Found while #301 was staged on 2026-10-06. #301 rewrites the two declaration samples in views.mdx to the defineView form and parse-checks them against @objectstack/spec 17.6.0 from npm. The same check, run on the samples #301 did not touch, finds more that do not work. Priority: P2. A reader who copies these gets a schema error.

Findings

  1. build/interface/views.mdx, the remaining fragments.
    • The Kanban, Calendar, Gantt and other fragments omit the top-level columns that every list view requires.
    • "Common list options" sets fontWeight: 600, but the spec wants a string.
    • Wrapped as list views with data, spec 17.6.0 refuses each one.
    • Source: objectstack origin/main packages/spec/src/ui/view.zod.ts (ViewSchema; kanban.columns is required at about :1809).
  2. build/automation/flows.mdx:54,250. These use action: 'send_email', which is not in FlowNodeAction. This was inferred by reading the code and has not been run.

Done looks like

Order

After #301 lands. Consider whether a docs-sample parse gate is worth adding; propose it in the PR rather than building it unasked.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions