-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workflow tab #5680
workflow tab #5680
Conversation
5cbec3e
to
19db629
Compare
invokeai/frontend/web/src/features/nodes/components/sidePanel/viewMode/WorkflowWarning.tsx
Outdated
Show resolved
Hide resolved
…t working to switch between within editor tab
…changed and give user choice to reset
- When adding an exposed field, we need to add it to originalExposedFieldValues - When removing an exposed field, we need to remove it from originalExposedFieldValues - add `useFieldValue` and `useOriginalFieldValue` hooks to encapsulate related logic
It was the same as the workflow tab icon, confusing bc you think it's going to somehow take you to the tab.
There was a lot of potentially sensitive logic shared between the new workflow button and menu items. Also, two instances of ConfirmationAlertDialog. Using a render prop deduplicates the logic & components
This was occurring because the `nodesChanged` action is called by reactflow when loading a workflow. Specifically, it calculates and sets the node dimensions as it loads. The existing logic set `isTouched` whenever this action was called. The changes reactflow emits have types, and we can use the change types and data to determine if a change should result in the workflow being marked as touched.
e53b5fe
to
d5ee313
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tidied/fixed a few things:
-
Fixed a longstanding bug where workflows were marked as touched when loading for the first time, or after clicking a node.
-
There are now 3 buttons to save a workflow in edit mode:
- In the side panel
- On the react flow canvas
- In the
...
menu at top-right
I don't think we need so many of them - maybe skip the side panel save button?
-
I changed the mode toggle to be an
IconButton
w/ a tooltip.Screen.Recording.2024-02-14.at.7.41.07.pm.mov
-
Also as you can see in the video, I changed the New Workflow icon to be different than the workflow tab icon. I also changed it in the
...
menu.
Will defer to you to actually merge @maryhipp
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
Edit Mode
(what it is today) andView Mode
(a view that only exposes the linear fields, if any, for the loaded workflow)Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Merge Plan
Added/updated tests?
have not been included
[optional] Are there any post deployment tasks we need to perform?