From 5f045b335d19f2fcc0b9bd48fe4e43c81bac640c Mon Sep 17 00:00:00 2001 From: Jin Yi Date: Thu, 11 Sep 2025 14:35:16 +0900 Subject: [PATCH] [feat] Improve UX for disabled node packs in Manager dialog (#5478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [feat] Improve UX for disabled node packs in Manager dialog - Hide "Update All" button when only disabled packs have updates - Add tooltip on "Update All" hover to indicate disabled nodes won't be updated - Disable version selector and show tooltip for disabled node packs - Filter updates to only show enabled packs in the update queue - Add visual indicators (opacity, cursor) for disabled pack cards - Add comprehensive test coverage for new functionality This improves the user experience by clearly indicating which packs can be updated and preventing confusion about disabled packs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * chore: missing nodes description added * test: test code modified --------- Co-authored-by: Claude --- src/components/button/IconButton.vue | 12 +- src/components/button/IconTextButton.vue | 12 +- src/components/button/TextButton.vue | 12 +- .../dialog/content/LoadWorkflowWarning.vue | 4 +- .../content/manager/PackVersionBadge.test.ts | 69 +++++++++- .../content/manager/PackVersionBadge.vue | 30 ++-- .../manager/button/PackUpdateButton.vue | 6 +- .../registrySearchBar/RegistrySearchBar.vue | 10 +- .../nodePack/useUpdateAvailableNodes.ts | 21 ++- src/locales/en/main.json | 4 + .../useUpdateAvailableNodes.test.ts | 128 +++++++++++++++++- 11 files changed, 286 insertions(+), 22 deletions(-) diff --git a/src/components/button/IconButton.vue b/src/components/button/IconButton.vue index 1f5b24bac..1038a82e4 100644 --- a/src/components/button/IconButton.vue +++ b/src/components/button/IconButton.vue @@ -1,5 +1,11 @@ @@ -20,6 +26,10 @@ interface IconButtonProps extends BaseButtonProps { onClick: (event: Event) => void } +defineOptions({ + inheritAttrs: false +}) + const { size = 'md', type = 'secondary', diff --git a/src/components/button/IconTextButton.vue b/src/components/button/IconTextButton.vue index 656761757..bdf40d4ed 100644 --- a/src/components/button/IconTextButton.vue +++ b/src/components/button/IconTextButton.vue @@ -1,5 +1,11 @@