sim icon indicating copy to clipboard operation
sim copied to clipboard

fix(workflow-preview): fixed the workflow preview to pull from state

Open aadamgough opened this issue 9 months ago • 2 comments

Description

Fixed the workflow preview display to pull directly from the state instead of rendering new blocks and subBlocks. Additionally, added logic to pull the subblock values directly from the state and not from the subBlock store, which was resulting in the deployed state UI getting overridden with the current state subBlock values.

Type of change

Please delete options that are not relevant.

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Added block and subBlock values to the current state, reverted back to the deployed state, changed every type of subBlock value to verify correctness, and undeployed and redeployed to confirm that the deployed preview and current preview were displayed as expected.

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 (npm 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

aadamgough avatar May 18 '25 02:05 aadamgough

Someone is attempting to deploy a commit to the Sim Studio Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 18 '25 02:05 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2025 2:11pm
sim ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2025 2:11pm

vercel[bot] avatar May 18 '25 02:05 vercel[bot]