Skip to content

Workflow Editor: In Draft mode, don't allow the user to edit code #4412

@josephjclark

Description

@josephjclark

When the user creates as new workflow, they're put into a draft state of the editor. Nothing is saved until the Create button is pressed.

This draft mode is fairly clear when picking from the library (I have criticisms but it's OK)

Image

But in Create With AI modem, it's much more subtle:

Image

Because the templates are hidden, and there's no overlay text, you don't really know that the workflow hasn't been saved, or that you're in draft mode. It's just that create button that gives it away.

And yet I can open steps and start editing their code - and at this point things start getting weird because we're sending diffs back to Lightning about a step that doesn't exist in the database.

So until a Workflow has been Created, we must not allow the user to open the full screen IDE

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Tech Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions