fix(workflow-preview): fixed the workflow preview to pull directly from the state in DB
Description
The workflow preview was not being pulled from the DB state, so I changed it to pull from the DB. Implemented checks for subblock values to include isPreview to ensure that the subBlock values persisted across workflows previews as reflected in the DB.
Type of change
Please delete options that are not relevant.
- [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
How Has This Been Tested?
Built multiple workflows and changed their state. Deployed, redployed, reverted to deployed, undeployed, changed block/subBlock values, and checked the status change across all workflows to ensure that each workflow was operating independent of one another in regard to the workflow preview.
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] All tests pass locally and in CI (
bun run test) - [x] My changes generate no new warnings
- [x] Any dependent changes have been merged and published in downstream modules
- [x] I have updated version numbers as needed (if needed)
- [x] I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Security Considerations:
- [x] My changes do not introduce any new security vulnerabilities
- [x] I have considered the security implications of my changes
Someone is attempting to deploy a commit to the Sim Studio Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| sim | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 2, 2025 9:53pm |
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| docs | ⬜️ Skipped (Inspect) | Jun 2, 2025 9:53pm |