Skip to main content

The in-browser editor

You do not need a local project to change a durable function. The builder can edit its source and build it for you.

The Code view​

Every workflow has a Code view in the builder toolbar. For a canvas workflow it shows the workflow as graph-builder TypeScript or Python, with the fidelity report's items marked inline, and offers Copy and Download. It is read-only: change the canvas, or pull the code into a project.

Editing a durable function​

Open a Code workflow node and select the Source tab.

  1. Edit the TypeScript or Python. For TypeScript the editor knows the @fluidgrids/workflows types and your workspace's typed node clients, so it completes node operations and arguments and shows type errors as you type.
  2. Select Check to build the project and list any problems, then Save as new version. FluidGrids builds the project with the same toolchain the CLI uses (for Python, the same fluidgrids_workflows build the CLI runs) and shows any build errors inline. What changed is saved as the version's description.
  3. When the build succeeds, a new version of the workflow is created, exactly as fluidgrids push would create it. Activate it, or promote it through your environments, as usual.

The browser and the CLI are interchangeable: the same source produces the same build id in both, and fluidgrids pull after a browser edit brings the change into your project.

A version that was pushed without a code bundle has nothing to edit; push the project with fluidgrids push to attach one. If the SDK the editor builds with is newer than the one that built the version, the editor says so before you save.

The editor respects edit locks: when someone else is editing the workflow, you cannot save over their changes.

The other tabs​

  • Trace shows the history of the child run the node started in the selected run.
  • Interface lists the function's inputs, outputs and signals.

Next steps​