Skip to content

viewschema key drift: bulkActions/batchActions + ObjectView form-adapter keys not in FormViewSchema #1763

Description

@os-zhuang

From the viewschema liveness audit (objectstack-ai/framework#1890, recommendation #3). Two spec↔renderer key-drift problems:

1. bulkActionsbatchActions (silent no-op)

ListView internally remaps the spec's bulkActions to ObjectGrid's real key batchActions. So it works through ListView, but a direct object-grid caller using bulkActions silently no-ops (bulk actions just disappear, no error).

2. ObjectView form-adapter reads keys not in FormViewSchema

ObjectView's form adapter (plugin-view/ObjectView.tsx ~buildFormSchema) reads keys that don't exist in FormViewSchema: layout, showSubmit, submitText, customFields, title, initialValues, className — renderer-invented surface with no spec backing.

Fix

Normalize at one boundary:

  • Reconcile bulkActions/batchActions to a single spec key (and make object-grid accept it directly, or drop the alias).
  • Reconcile the ObjectView form-adapter keys against FormViewSchema (add to spec, or stop reading them).

Pure technical debt; no user-facing behaviour change when done right. Refs objectstack-ai/framework#1890.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions