The GitHub Actions job "Required Checks" on texera.git/release/v1.3 has failed.
Run started by GitHub user mengw15 (triggered by mengw15).

Head commit for run:
8aea604ab34acba553b2c438810abcabef550e67 / yangzhang75 <[email protected]>
feat(workflow): shared types and collab-model support for Form View (#8275)

### What changes were proposed in this PR?

Give the frontend (and agent-service) the shared types and
collaborative-graph hooks so a Form View loads into the same live
collaborative workflow graph the canvas uses. No form UI here; that
builds on this.

- **Types** (`common/type/workflow.ts`): `FormFieldBinding` (one exposed
input bound to an operator property), `FormFieldOverride` (per-sub-field
hide/rename), `FormBindingConfig` (instruction + fields + result
operators), and `getDefaultFormBinding()`. `WorkflowContent.formBinding`
rides in `content`, so it is saved/cloned/versioned/published with the
workflow. A `DefaultView` enum (canvas | form) and
`WorkflowMetadata.defaultView` mirror the backend column from #8125.
- **Collab model** (`WorkflowActionService`, `shared-model.ts`):
form-binding state (`get`/`set`/`hydrateFormBinding` +
`formBindingChanged$`), hydrated on load and serialized into content.
Opening a workflow does not announce an edit, so it never triggers a
save, and `reloadWorkflow(undefined)` resets the definition so a blank
workflow cannot inherit the previous one's. A coeditor cursor now starts
inactive until the mouse enters a canvas (a stray dot otherwise lingered
on the Form View, which has no canvas to move over).
- **Client** (`WorkflowPersistService.setDefaultView`): PUTs the chosen
view to the set-default-view endpoint from #8125.
- **agent-service**: carries `formBinding` through opaquely (captured on
load, re-emitted on save only when present, cleared on reset), so an
agent save cannot drop it.

### Any related issues, documentation, discussions?

Closes #8015. Part of the Form View parent issue #8011; builds on #8125.

### How was this PR tested?

Frontend vitest (`workflow-action.service`, `shared-model`,
`workflow-persist`) and agent-service `bun test` (`workflow-state`),
including a test that a blank workflow clears any leftover form
definition; the affected suites run green.

### Was this PR authored or co-authored using generative AI tooling?

Co-authored with Claude Code.

Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: Meng Wang <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/33545604703

With regards,
GitHub Actions via GitBox

Reply via email to