Browse Source

Update STATE.md with recent activity and decisions; enhance QuickstartTemplatesView tests for community workflow downloads

- Updated last activity date and details in STATE.md to reflect completion of quick-001.
- Added recent decisions regarding dynamicInputs type and behavior.
- Enhanced tests in QuickstartTemplatesView to handle new download URL structure for community workflows, ensuring proper response handling for both API and direct download scenarios.
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
250859b353
  1. 15
      .planning/STATE.md
  2. 16
      src/components/__tests__/QuickstartTemplatesView.test.tsx

15
.planning/STATE.md

@ -12,7 +12,7 @@ See: .planning/PROJECT.md (updated 2026-01-09)
Phase: 33 of 35 (Workflow Edit Safety)
Plan: 1 of 2 in current phase
Status: In progress
Last activity: 2026-01-27 - Completed 33-01-PLAN.md
Last activity: 2026-01-30 - Completed quick-001 (Fix multiple image inputs lost in dynamicInputs)
Progress: ░░░░░░░░░░ 6%
@ -153,6 +153,9 @@ Recent decisions affecting current work:
- Snapshot auto-clears after 3 manual structural changes
- Manual changes: add/remove nodes, add/remove edges (not position/selection)
- clearSnapshot called in clearWorkflow and loadWorkflow
- dynamicInputs type is Record<string, string | string[]> to support multi-image aggregation
- Single image stays as string; only multiple images to same schema key become array
- Array.isArray guard on dynamicInputs.prompt access (takes first element)
### Deferred Issues
@ -163,6 +166,12 @@ Recent decisions affecting current work:
- Pre-existing lint configuration issue (ESLint not configured). Not blocking development.
### Quick Tasks Completed
| # | Description | Date | Commit | Directory |
|---|-------------|------|--------|-----------|
| 001 | Fix multiple image inputs lost in dynamicInputs | 2026-01-30 | 1564a1b | [001-fix-multiple-image-inputs-lost-in-dynamicinputs](./quick/001-fix-multiple-image-inputs-lost-in-dynamicinputs/) |
### Roadmap Evolution
- v1.0 Multi-Provider Support shipped: 6 phases (Phase 1-6), 15 plans
@ -181,7 +190,7 @@ Recent decisions affecting current work:
## Session Continuity
Last session: 2026-01-27
Stopped at: Completed plan 33-01 (Store snapshot infrastructure)
Last session: 2026-01-30
Stopped at: Completed quick-001 (Fix multiple image inputs lost in dynamicInputs)
Resume file: None
Next action: Execute plan 33-02 (UI integration - Revert AI Changes button)

16
src/components/__tests__/QuickstartTemplatesView.test.tsx

@ -464,7 +464,13 @@ describe("QuickstartTemplatesView", () => {
if (url === "/api/community-workflows/comm-1") {
return Promise.resolve({
ok: true,
json: () => Promise.resolve({ success: true, workflow: mockWorkflow }),
json: () => Promise.resolve({ success: true, downloadUrl: "https://r2.example.com/comm-1.json" }),
});
}
if (url === "https://r2.example.com/comm-1.json") {
return Promise.resolve({
ok: true,
json: () => Promise.resolve(mockWorkflow),
});
}
return Promise.resolve({
@ -517,7 +523,13 @@ describe("QuickstartTemplatesView", () => {
if (url === "/api/community-workflows/comm-1") {
return Promise.resolve({
ok: true,
json: () => Promise.resolve({ success: true, workflow: mockWorkflow }),
json: () => Promise.resolve({ success: true, downloadUrl: "https://r2.example.com/comm-1.json" }),
});
}
if (url === "https://r2.example.com/comm-1.json") {
return Promise.resolve({
ok: true,
json: () => Promise.resolve(mockWorkflow),
});
}
return Promise.resolve({

Loading…
Cancel
Save