feat: added the artifect download button, and revamp artifect library #226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Issue: Download buttons in the Run Artifacts Panel weren't working.
Root Cause: The backend URL path used {artifactId} but the DTO schema expected
id, causing a parameter mismatch.
Files Changed:
backend/src/storage/dto/artifacts.dto.ts
that uses artifactId as the property name
backend/src/workflows/workflows.controller.ts
frontend/src/services/api.ts
downloadArtifact
to use direct fetch with manually constructed URL (bypassing the typed client with the OpenAPI spec bug)
Issue: Clicking run links in the Artifact Library opened the workflow page with a blank canvas; only refreshing showed the graph.
Root Cause: When navigating directly to a run URL, the execution graph wasn't being initialized because the code was skipping initialization when there was a run context.
Files Changed:
frontend/src/features/workflow-builder/WorkflowBuilder.tsx
frontend/src/features/workflow-builder/hooks/useWorkflowExecutionLifecycle.ts
Testing
bun run testbun run lintbun run typecheckDocumentation
docs/guide.md) or checked that no updates are needed..ailogs when applicable.