# ISIS v2 WS11-009: Progressive Disclosure for Advanced Workflow Forms

## Scope

`WS11-009` reduces cognitive overload in high-density creation workflows by
moving complex, infrequently used controls behind explicit disclosure sections.

## Research and Existing Implementation Alignment

Implementation is based on:

- current ISIS advanced authoring surface:
  `apps/isis/web/src/pages/JobSubmissionStudio.tsx`
- existing ISIS card/form primitives:
  `apps/isis/web/src/components/AppLayout.css`
- WS11 ergonomic keyboard + responsive foundations already in place.

## Deliverables

1. Added progressive disclosure structure to Job Submission Studio advanced
   controls:

- new disclosure section: `Continuity and Drift Controls`,
- new disclosure section: `Sequence Timeline Controls`,
- new disclosure section: `Metadata and Payload Overrides`.

2. Preserved fast-path controls in always-visible form flow:

- generation type, prompt/input/model, priority, basic image controls,
- callback/idempotency submission path,
- submit action and cost-warning gating.

3. Added reusable disclosure styling primitives:

- `isis-progressive-disclosure` container and open/closed state visuals,
- summary badge treatment for advanced sections,
- disclosure helper description text style.

4. Added progressive-disclosure test coverage:

- `JobSubmissionStudio.spec.tsx` now validates advanced control groups are
  rendered as closed-by-default disclosure blocks.

## Verification Commands

```bash
pnpm --filter @isis/web exec vitest run src/components/AppLayout.spec.tsx src/components/IsisCommandPalette.spec.tsx src/components/CreativeWorkflowFrame.spec.tsx src/components/IsisLoadingState.spec.tsx src/components/IsisEmptyState.spec.tsx --reporter=dot
pnpm --filter @isis/web exec vitest run src/pages/JobSubmissionStudio.spec.tsx --reporter=dot
pnpm --filter @isis/web run typecheck
node scripts/isis/generate-remediation-backlog-v2.mjs
node scripts/isis/validate-v2-compliance-gate.mjs
```

## Verification Notes

- Targeted shell/component tests pass.
- `JobSubmissionStudio.spec.tsx` execution remains blocked by pre-existing
  workspace package-resolution issue for `@isis/client`.
- Workspace typecheck remains red due pre-existing unrelated
  cross-package/rootDir typing failures in baseline repository state.
