NF-UI-8: Test-fire + fixture library #338

Closed
opened 2026-04-24 11:29:55 +00:00 by code-lead · 0 comments
Collaborator

As an operator, I want to fire a synthetic trigger event against my current (unsaved) graph in dry-run so that I can validate authoring without mutating anything real.

Acceptance criteria

Modal

  • "Fire test event" button on the trigger-source node opens a modal with two tabs:
    • Fixture: tree picker rooted at a new endpoint exposing apps/server/test/fixtures/trigger/*.json; preview the payload as JSON.
    • Replay past: searches flow_runs for the same trigger type; selecting one recovers the original payload.
  • Submitting calls POST /flows/:id/dry-run.

Canvas state

  • Editor enters local dry-run: yellow banner labeled "Test fire", dismissable with "Exit test".
  • Trace overlay renders exactly like replay mode but marked as a test, not a real run.

Isolation

  • No save, no side effects, no persisted trace.
  • Escape / click-outside cancels the modal.

Out of scope

  • Fixture authoring UI (edit JSON fixtures in-place) — later.

References

As an operator, I want to fire a synthetic trigger event against my current (unsaved) graph in dry-run so that I can validate authoring without mutating anything real. ## Acceptance criteria ### Modal - [ ] "Fire test event" button on the trigger-source node opens a modal with two tabs: - **Fixture**: tree picker rooted at a new endpoint exposing `apps/server/test/fixtures/trigger/*.json`; preview the payload as JSON. - **Replay past**: searches `flow_runs` for the same trigger type; selecting one recovers the original payload. - [ ] Submitting calls `POST /flows/:id/dry-run`. ### Canvas state - [ ] Editor enters local dry-run: yellow banner labeled "Test fire", dismissable with "Exit test". - [ ] Trace overlay renders exactly like replay mode but marked as a test, not a real run. ### Isolation - [ ] No save, no side effects, no persisted trace. - [ ] Escape / click-outside cancels the modal. ## Out of scope - Fixture authoring UI (edit JSON fixtures in-place) — later. ## References - Spec: [`specs/node-flows-ui.md`](../src/branch/main/specs/node-flows-ui.md) § Stories § NF-UI-8. - Depends on NF-UI-7 (#337) + NF-7 (#328).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks#338
No description provided.