Skip to content

Added an Editor's Note action to the Power LoRA widget context menu#713

Open
nagito33 wants to merge 2 commits intorgthree:mainfrom
nagito33:main
Open

Added an Editor's Note action to the Power LoRA widget context menu#713
nagito33 wants to merge 2 commits intorgthree:mainfrom
nagito33:main

Conversation

@nagito33
Copy link
Copy Markdown

@nagito33 nagito33 commented Apr 2, 2026

Hi, I updated the PR with the following changes:

- Added an `Editor's Note` action to the Power LoRA widget context menu so each LoRA entry can store a short note.
- Extended the widget state with a `note` field and merged incoming values with the default shape to keep older serialized data compatible.
- Centralized LoRA switching through `setLora()`, which now clears stale notes when the selected LoRA changes and resets cached LoRA info before refetching.
- Updated the canvas rendering so the note is displayed inline next to the selected LoRA name with truncation and lower visual emphasis.
- Synced the generated frontend output in `web/comfyui/power_lora_loader.js`.

In short, this update adds lightweight per-LoRA notes while keeping widget state backward-compatible and the generated web bundle in sync.
Please take another look at the Power LoRA Loader changes. The main functional addition is per-LoRA note support, and I also cleaned up the state hydration path so older widget payloads still load safely.

nagito33 added 2 commits April 2, 2026 17:04
… so each LoRA entry can store a short note.
… so each LoRA entry can store a short note.
@nagito33
Copy link
Copy Markdown
Author

nagito33 commented Apr 2, 2026

14ac386746cfc5614a06e78dd2c9f701_raw.mp4
The video is in Chinese, but the code is implemented in English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant