-
Notifications
You must be signed in to change notification settings - Fork 288
Release v1.1.3 #103
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
Release v1.1.3 #103
Changes from 9 commits
8d9964c
61af53b
2abfe04
0fd6568
f786419
e82a23e
875031d
e0381a5
eabc607
753790b
cbd7c66
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 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -87,19 +87,10 @@ export function ImageInputNode({ id, data, selected }: NodeProps<ImageInputNodeT | |||||||||||||||||||||||||||||||||
| <BaseNode | ||||||||||||||||||||||||||||||||||
| id={id} | ||||||||||||||||||||||||||||||||||
| selected={selected} | ||||||||||||||||||||||||||||||||||
| contentClassName="flex-1 min-h-0 overflow-clip" | ||||||||||||||||||||||||||||||||||
| contentClassName="flex-1 min-h-0" | ||||||||||||||||||||||||||||||||||
| aspectFitMedia={nodeData.image} | ||||||||||||||||||||||||||||||||||
| fullBleed | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| {/* Reference input handle for visual links from Split Grid node */} | ||||||||||||||||||||||||||||||||||
| <Handle | ||||||||||||||||||||||||||||||||||
| type="target" | ||||||||||||||||||||||||||||||||||
| position={Position.Left} | ||||||||||||||||||||||||||||||||||
| id="reference" | ||||||||||||||||||||||||||||||||||
| data-handletype="reference" | ||||||||||||||||||||||||||||||||||
| className="!bg-gray-500" | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| <input | ||||||||||||||||||||||||||||||||||
| ref={fileInputRef} | ||||||||||||||||||||||||||||||||||
| type="file" | ||||||||||||||||||||||||||||||||||
|
|
@@ -109,7 +100,7 @@ export function ImageInputNode({ id, data, selected }: NodeProps<ImageInputNodeT | |||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {nodeData.image ? ( | ||||||||||||||||||||||||||||||||||
| <div className="relative group w-full h-full"> | ||||||||||||||||||||||||||||||||||
| <div className="relative group w-full h-full overflow-clip rounded-lg"> | ||||||||||||||||||||||||||||||||||
| <img | ||||||||||||||||||||||||||||||||||
| src={adaptiveImage ?? undefined} | ||||||||||||||||||||||||||||||||||
| alt={nodeData.filename || "Uploaded image"} | ||||||||||||||||||||||||||||||||||
|
|
@@ -148,6 +139,14 @@ export function ImageInputNode({ id, data, selected }: NodeProps<ImageInputNodeT | |||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {/* Handles rendered after visual content so they paint on top */} | ||||||||||||||||||||||||||||||||||
| <Handle | ||||||||||||||||||||||||||||||||||
| type="target" | ||||||||||||||||||||||||||||||||||
| position={Position.Left} | ||||||||||||||||||||||||||||||||||
| id="reference" | ||||||||||||||||||||||||||||||||||
| data-handletype="reference" | ||||||||||||||||||||||||||||||||||
| className="!bg-gray-500" | ||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+142
to
+149
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normalize target handle metadata to image conventions. At Line 146-147, Proposed fix <Handle
type="target"
position={Position.Left}
- id="reference"
- data-handletype="reference"
+ id="image"
+ data-handletype="image"
className="!bg-gray-500"
/>As per coding guidelines: "Use descriptive handle IDs matching the data type: 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| <Handle | ||||||||||||||||||||||||||||||||||
| type="source" | ||||||||||||||||||||||||||||||||||
| position={Position.Right} | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
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.
🛠️ Refactor suggestion | 🟠 Major
Persist
_settingsPanelHeightthrough the Zustand store, notsetNodes.These branches now mutate
node.datathrough React Flow while the repo treatsworkflowStore.tsas the source of truth for node state. Since components in this PR already read node data back from the store,_settingsPanelHeightshould go throughupdateNodeData()(or a small helper that updates dimensions and data together) so persistence and other subscribers stay in sync. As per coding guidelines, "All application state lives inworkflowStore.tsusing Zustand; access viauseWorkflowStore()hook" and "Update node state usingupdateNodeData(nodeId, partialData)instead of direct mutations".Also applies to: 153-156, 203-206
🤖 Prompt for AI Agents