Commit Graph
63 Commits
Author SHA1 Message Date
Dariusz L 552ef683da Unify metadata workflow cache and category handling 2026-09-13 23:09:22 +02:00
Dariusz L c398ccb6f8 refactor: unify SHA-256 candidate extraction 2026-08-08 22:24:25 +02:00
Dariusz L 8724bb5d5b refactor: unify loaded model grouping 2026-08-08 22:23:04 +02:00
Dariusz L 9795410748 refactor: reuse JSON client for workflow hash refresh 2026-08-08 21:24:17 +02:00
Dariusz L 5fa1e76902 refactor: unify workflow progress polling 2026-08-07 17:28:12 +02:00
Dariusz L 8a8e2bc3a1 refactor shared source URL detection 2026-08-07 04:12:57 +02:00
Dariusz L 2d0576546f refactor: unify SHA256 extraction paths 2026-08-07 03:36:06 +02:00
Dariusz L 277268c055 refactor: unify frontend category collection 2026-08-06 23:43:58 +02:00
Dariusz L cf4697ddd8 refactor shared frontend size parsing 2026-08-06 22:30:15 +02:00
Dariusz L b809cf8953 Unify progress section rendering 2026-08-06 21:22:16 +02:00
Dariusz L 335f886a4e Unify local path joining 2026-08-06 21:19:29 +02:00
Dariusz L 43d83c2574 Unify local download matching 2026-08-06 21:13:20 +02:00
Dariusz L 2ef86fed3b refactor: unify local match classification 2026-08-06 20:01:20 +02:00
Dariusz L eb430f16a0 refactor(web): share dropdown search matching 2026-08-06 17:01:21 +02:00
Dariusz L 6f3273ad3b refactor(web): unify download action handlers 2026-08-06 16:52:13 +02:00
Dariusz L eeb483ccd2 unify category token normalization 2026-08-05 17:50:08 +02:00
Dariusz L 82cd5c95cd refactor: generate frontend category aliases 2026-08-05 05:07:36 +02:00
Dariusz L 7269347c00 refactor: unify frontend source normalization 2026-08-05 04:31:30 +02:00
Dariusz L 188809c31f refactor: share sidebar active state detection 2026-08-05 02:18:21 +02:00
Dariusz L fec8004573 refactor: share instant action binding 2026-08-05 02:06:57 +02:00
Dariusz L 7fe31aabad refactor shared source labels 2026-08-05 00:46:21 +02:00
Dariusz L af7f9d0798 refactor frontend SHA-256 field extraction 2026-08-05 00:42:39 +02:00
Dariusz L 8606e3e1fd fix(frontend): preserve analysis progress during polling 2026-08-04 20:23:13 +02:00
Dariusz L d2c4d513db refactor(frontend): reuse shared DOM synchronization 2026-08-04 20:17:41 +02:00
Dariusz L 9fb0357e59 refactor(frontend): add shared DOM patch helpers 2026-08-04 20:16:30 +02:00
Dariusz L f5ad8c8af1 fix(frontend): patch loaded models progress in place 2026-08-04 19:45:29 +02:00
Dariusz L 8e7d14be6d Unify download progress presentation 2026-08-03 14:08:00 +02:00
Dariusz L 0ff8057576 Unify frontend SHA-256 normalization 2026-08-03 12:56:24 +02:00
Dariusz L 2559145fc1 Unify model category aliases across backend and UI 2026-08-03 12:52:20 +02:00
Dariusz L 25bde5f58b refactor(frontend): extract keybinding utilities 2026-08-02 13:52:46 +02:00
Dariusz L 922a30fdd4 refactor(frontend): extract shared API client 2026-08-02 13:20:20 +02:00
Dariusz L abb92b2138 refactor(frontend): clean unused catches and regex escapes 2026-08-02 04:20:44 +02:00
Dariusz L f8a6e8b626 feat: add HuggingFace model details, variant table, and download context 2026-07-28 17:20:36 +02:00
Dariusz L 8b2f9e81cb refactor: improve missing browser splitter drag with compositor preview and threshold
- Add drag threshold and layout frame stride to splitter drag utility
- Use onPreview callback to animate splitter offset via translate3d during drag
- Simplify resize class and cleanup logic in missing browser methods
- Replace deferred release UI cleanup with direct activation/cleanup calls
- Update CSS to add resizing overlay and remove transition during resize
- Add test covering compositor preview behavior and CSS constraints
2026-07-28 01:25:07 +02:00
Dariusz L e1c4359dc3 Serve adjacent model previews in tooltips via /model_resolver/model-preview 2026-07-26 21:13:11 +02:00
Dariusz L 2d6be246b4 Extract and display copyable CivitAI ComfyUI workflow metadata in model previews
- Preserve existing image metadata when re-normalizing CivitAI model images
- Add extractComfyWorkflow helper to recover pasteable editor workflows from image metadata, including nested/double-encoded JSON and non-finite number tolerance
- Surface recovered workflows as a copyable button in the model info image preview under Other metadata
- Add focused tests for workflow extraction, metadata preservation, and edge cases
2026-07-26 20:40:41 +02:00
Dariusz L 097be623f4 feat: preserve CivArchive page URLs separate from HuggingFace mirrors, fix HTML array escaping, and accept provider array payloads
Backend:
- Keep CivArchive source page URL distinct from HuggingFace download mirrors in download metadata
- Handle CivitAI hash lookup HTTP errors and unexpected JSON shapes without caching failures
- Allow network JSON requests to return arrays as well as objects

Frontend:
- Escape each item individually when interpolating arrays into HTML templates
- Prefer the selected provider's page URL over cross-provider mirrors in context menus and download targets
- Reuse source link resolution for model info display

Tests:
- Add coverage for CivArchive metadata URL isolation, HTML array escaping, provider array responses, and CivitAI hash lookup caching behavior
2026-07-20 16:16:09 +02:00
Dariusz L 16a69f6c47 refactor: unify provider JSON requests, catalog sync, and normalization across backend; add frontend HTML escaping helpers 2026-07-20 15:13:57 +02:00
Dariusz L 8cc02010b0 Remove unused backend and frontend code 2026-07-18 14:47:05 +02:00
Dariusz L 5362cb17a3 refactor: remove dead code and add isAutoOpenEnabled helper 2026-07-18 14:01:05 +02:00
Dariusz L 0b53fca8c6 refactor: unify category resolution, network requests, sidecar lookup, and progress tracking
Consolidate provider-specific category mapping into resolve_model_category(),
shared JSON request handling into execute_provider_json_request(), sidecar
path resolution into get_or_build_model_sidecar_info(), and progress
reporting into ProgressTracker. Update civitai/civarchive/common sources to
use the unified helpers. Add tests for the new utilities. Remove redundant
frontend wrapper methods from render_format_methods.js.
2026-07-18 12:48:11 +02:00
Dariusz L 759aef99f1 Unify model result building and progress payload updates 2026-07-18 12:26:17 +02:00
Dariusz L 719b3b3f43 Refactor: centralize metadata sidecar helpers and custom-result builders 2026-07-18 09:43:27 +02:00
Dariusz L be12494953 refactor: centralize shared utilities across backend and frontend
Backend:
- Move SHA256 normalization logic from path_utils._normalize_header_sha256
  into core/type_utils.normalize_sha256, adding support for 0x-prefixed
  hashes and unifying the normalization path used by
  extract_safetensors_header_sha256.
- Add tests for the 0x prefix normalization cases.

Frontend:
- Introduce copyTextWithFeedback in web/resolver/utils/html_utils.js
  as a shared clipboard helper with configurable feedback text, CSS class,
  and duration, replacing repeated inline clipboard copy logic in
  globals.js, model_info_methods.js, and the notification utility.
- Centralize showNotification on ResolverManagerDialog and remove the
  duplicate implementation from missingBrowserMethods.
- Replace local const localStorage = safeStorage aliases in
  model_info_methods.js, missing_browser_methods.js, and
  options_methods.js with direct safeStorage usage.
2026-07-17 18:06:22 +02:00
Dariusz L 8823049f9e refactor: centralize filename extraction, remote URL normalization, and storage abstractions 2026-07-16 10:13:38 +02:00
Dariusz L 8cf688eba6 refactor: centralize source API requests, polling, and path parsing
- Add request_source_response and request_source_json helpers with 429 retry logic
- Introduce shared split_path_segments and parse_provider_model_url utilities
- Migrate CivitAI, CivArchive, HuggingFace, and ModelList sources to centralized helpers
- Add generic pollBackgroundTask utility for frontend progress polling
- Add tests for request_source_json, split_path_segments, parse_provider_model_url
- Add huggingface-hub to requirements
2026-07-14 12:03:35 +02:00
Dariusz L 280ca2e6de Improve HuggingFace Xet downloads with native progress snapshots, transfer metrics, cancellation, and finalizing UI state 2026-07-14 11:02:57 +02:00
Dariusz L 9c0ec8b26b Add progress reporting for loaded model and workflow analysis
- Add server-side loaded models progress tracking in __init__.py
- Report workflow node analysis progress from workflow_analyzer.py
- Add frontend polling, rendering, and UI flow for loaded models progress
2026-07-03 00:06:04 +02:00
Dariusz L 56ec5c3083 refactor: consolidate shared helpers and deduplicate HTML escaping/URL collection 2026-07-02 23:35:40 +02:00
Dariusz L e0a765af61 Translate url_utils.js comments to English
Translate JSDoc comments for the getModelCardUrl function from Polish to English for better accessibility and consistency across the codebase.
2026-07-02 04:24:11 +02:00