Release 1.1.0#1
Merged
Merged
Conversation
In comfyui_frontend_package >=1.38.x the sidebar panel switched from eager to lazy rendering: render(el) is only called the first time the user opens the panel, so gridEl is null until then. The previous code called updateBadge() only inside render(), after the `if (!gridEl) return` guard, meaning the badge was never updated while the panel remained closed. Move updateBadge() to the top of render(), before the guard, so it always runs regardless of whether the panel has been opened. Remove the two now-redundant calls at the end of each early-return path.
Register ComfyUI.QueueSidebar.Toggle command and bind it to q via the declarative commands/keybindings API so the shortcut appears in the user's Settings > Keybindings list and behaves identically to the built-in w/n/m/a sidebar shortcuts.
Inject CSS to shrink .sidebar-icon-badge from the default 10px/16px to 9px/14px so the badge is less visually dominant on the narrow sidebar.
Override the default -top-1 -right-1 (-4px) position to -7px for the queue tab badge only, using :has(.pi-history) to avoid affecting other sidebar tab badges.
test.yml — run vitest on every push/PR to master to guard the branch
release.yml — on semver tag: gate on tests, then create a GitHub
Release with auto-generated changelog from git log
No zip artifact: this plugin is git-based (Manager / git clone),
so downloadable archives add no value.
publish.yml (Comfy Registry) is kept separate and unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v1.1.0
Fixes the badge regression introduced in
comfyui_frontend_package1.38.x, polishes badge appearance, and adds theqkeyboard shortcut.What's Changed
Bug Fixes
0until panel is manually openedupdateBadge()before theif (!gridEl) returnguard — in ≥ 1.38.x the panel renders lazily, sogridElisnulluntil first open10 px / 16 px→9 px / 14 px−7 pxtop-right; scoped to queue tab only via:has(.pi-history)New Feature
qkeyboard shortcut — Toggles the queue panel. Registered via the declarativecommands/keybindingsAPI; appears in Settings → Keybindings and respects input-focus the same way as the built-inw/n/m/ashortcuts.Compatibility
CI
Added
test.yml(vitest on every push / PR) andrelease.yml(tests → GitHub Release with changelog on semver tag), complementing the existingpublish.yml(Comfy Registry).How to Test
q→ confirm panel toggles; check Settings → Keybindings shows the entry