-
Notifications
You must be signed in to change notification settings - Fork 122
1652 client - Refactor WorkflowNodeDetailsPanel to be open when the cluster element editor is open #3489
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
base: master
Are you sure you want to change the base?
1652 client - Refactor WorkflowNodeDetailsPanel to be open when the cluster element editor is open #3489
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -177,37 +177,37 @@ const WorkflowEditorLayout = ({includeComponents, runDisabled, showWorkflowInput | |||||||||||||||||||||||||||||||||||||||||||||||||
| <DialogContent className="absolute bottom-4 left-16 top-12 h-[calc(100vh-64px)] w-[calc(100vw-80px)] max-w-none translate-x-0 translate-y-0 gap-2 bg-surface-main p-0"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <ClusterElementsWorkflowEditor /> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| {currentComponent && ( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <WorkflowNodeDetailsPanel | ||||||||||||||||||||||||||||||||||||||||||||||||||
| className="fixed inset-y-0 right-0 rounded-l-none border-none" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| invalidateWorkflowQueries={invalidateWorkflowQueries!} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| previousComponentDefinitions={previousComponentDefinitions} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| updateWorkflowMutation={updateWorkflowMutation!} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| workflowNodeOutputs={filteredWorkflowNodeOutputs ?? []} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <WorkflowNodeDetailsPanel | ||||||||||||||||||||||||||||||||||||||||||||||||||
| className="fixed inset-y-0 right-0 rounded-l-none" | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| className="fixed inset-y-0 right-0 rounded-l-none" | |
| className="fixed inset-y-0 right-0 rounded-l-none border-none" |
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.
@ivicac je li zelimo da se NodeDetailsPanel nikako ne moze zatvoriti -> da se automatski zatvara i canvas klikom na X ?
Jer onda bi tribali dodati i logiku kada se brise vec selektirani cluster element, da se u panelu mozda otvori mainRoot (trenutno brisanje selektiranog elementa samo zatvara panel) 🤔
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.
Copilot
AI
Nov 11, 2025
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.
The close button's behavior is potentially confusing. It's positioned in the WorkflowNodeDetailsPanel header (where users would expect it to close just the panel), but wrapping it in DialogClose makes it close the entire cluster elements canvas dialog instead.
Consider either:
- Using a separate close button for the canvas placed outside the panel header
- Implementing custom logic to close only the panel while keeping the canvas open
- Making it clear through positioning/styling that this button closes the entire canvas, not just the panel
| <DialogClose asChild> | |
| <Button | |
| className="absolute right-2 top-2" | |
| size="icon" | |
| title="Close the canvas" | |
| variant="ghost" | |
| > | |
| <XIcon /> | |
| </Button> | |
| </DialogClose> | |
| (() => { | |
| const setPanelOpen = useWorkflowNodeDetailsPanelStore(state => state.setOpen); | |
| return ( | |
| <Button | |
| className="absolute right-2 top-2" | |
| size="icon" | |
| title="Close panel" | |
| variant="ghost" | |
| onClick={() => setPanelOpen(false)} | |
| > | |
| <XIcon /> | |
| </Button> | |
| ); | |
| })() |
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.
Sada je ovaj fragment
<>visak