Commit Graph
14 Commits
Author SHA1 Message Date
Dariusz L c703a26317 Link CivitAI model pages and improve labels
Wrap missing file title in a CivitAI link when a URN is available, and construct a modelUrl from URN info. Make model/version labels clickable and highlight them (orange) when linking to CivitAI; otherwise fall back to muted text. In the found-on-CivitAI section, build a display name that includes the version when present, render it as a styled button that opens the CivitAI page, show the model type in muted text, and use expected_filename or fallbacks for downloads. Removed the previous separate "View" link in favor of the unified clickable model label/button.
2026-04-17 23:14:35 +02:00
Dariusz L 3ab6a9cc55 Enhance Model Linker routes, downloader, and linker
Refactor and harden the Model Linker extension: normalize string quoting/formatting and improve logging and error responses across API routes. Make route registration more robust to missing PromptServer and dependencies. Add/expand download-related features: safer request parsing (including is_urn handling), CivitAI URN support & direct download URL resolution, popular/model-list/HuggingFace/CivitAI search fallbacks, improved header handling for HF/CivitAI, and better category/directory mapping. Improve downloader reliability and UX: folder_paths fallback, pre-initialize download progress entries, smoother speed calculation and CLI logging, cancellation cleanup on Windows, stronger exception handling, and consistent JSON responses from endpoints.
2026-04-17 21:23:25 +02:00
Dariusz L e8939d4bf1 Add URN (ComfyUI-AIR) resolution via CivitAI
Detect ComfyUI-AIR URNs in workflows, resolve them to expected filenames via the CivitAI API, and prefer those filenames for matching.

Key changes:
- core/workflow_analyzer.py: added URN_REGEX, URN_TYPE_MAP, is_model_filename() now recognizes URNs, and get_node_model_info() emits structured URN info (is_urn, urn fields, category, exists=False).
- core/sources/civitai.py: added resolve_urn(model_id, version_id) with caching, API fetch of model/version and primary file, and result shaping (model_name, version_name, expected_filename, files).
- core/linker.py: import resolve_urn and call it for missing URNs, attach civitai_info/expected_filename, and prefer expected_filename as matching target; cleaned up deduplication logic.
- web/linker.js: UI shows URN original plus resolved CivitAI model/version labels where available.
- TODO.md: added plan/notes for URN detection and next steps.

This improves detection and fuzzy matching for models referenced by URNs so missing model resolution is more accurate. Further matcher and updater enhancements remain TODOs.
2026-04-17 18:55:55 +02:00
unknown c4ef3919dc Redesign UI with improved visual hierarchy and UX
- Add CSS variables and global styles with custom scrollbar

- Implement two-column layout (Local Matches / Download)

- Add confidence badges with color coding

- Smart filename truncation with hover tooltips

- Consistent button styling with icons

- Sticky footer with backdrop blur

- Status alert containers for errors/success

- Best match highlighting for 95%+ confidence

- Hide Auto-Link button when no 100% matches

- Fix race condition in auto-resolve flow

- Wider dialog (1100px) for full filenames
2026-01-19 01:35:10 +01:00
unknown 7e805bf553 Add auto-resolve buttons to ComfyUI Missing Models popup 2026-01-19 00:51:31 +01:00
unknown d03d8545a3 Add bulk download and cancel all functionality
- Add Download All Missing button to download models without local matches

- Button toggles to Cancel All (N) during active downloads

- Fix notification showing null for info type messages

- Preserve download state when dialog is closed and reopened

- Show downloads in progress message instead of all available during downloads
2026-01-18 23:45:44 +01:00
unknown 91acff7c78 Enhance download system with speed display, workflow URLs, and UX improvements 2026-01-18 15:59:27 +01:00
unknown 2843373c58 Add download integration with auto-search on startup 2026-01-18 05:44:31 +01:00
unknown c7cdf78e60 Add Ctrl+Shift+L keyboard shortcut to open Model Linker 2026-01-18 03:45:08 +01:00
unknown 6935f5e598 Fix UI button for updated ComfyUI
Use ComfyButton/ComfyButtonGroup component system with dynamic imports to properly integrate with the new ComfyUI menu. Falls back to floating button for legacy versions.
2026-01-18 03:42:16 +01:00
unknown 5d9203ec74 Add multiple resolve buttons and normalize path separators in matching logic 2025-11-05 15:39:00 +01:00
unknown e7fd4203c4 Improve Model Linker UI: prevent text line-breaking and add resolve button for highest confidence matches 2025-11-04 15:23:25 +01:00
unknown 758ab0d2dc fix: Update workflow in place instead of creating new tab for resolve and auto-resolve 2025-11-04 02:12:33 +01:00
unknown 7b972d6dfa chore: Rename comfyui-Model-Linker to comfyui-model-linker (kebab-case) 2025-11-01 19:15:03 +01:00