Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Nov 26, 2025

Summary

Design alignment for the model import wizard.

┆Issue is synchronized with this Notion page by Unito

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 26, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

📝 Walkthrough

Walkthrough

Multiple components within the asset upload wizard were updated with styling refinements, HTML-enhanced localization strings, and API modernization. Type definitions were adjusted from nullable to undefined semantics, and button styling was modified alongside display name mapping updates.

Changes

Cohort / File(s) Summary
Model Type System
src/components/input/SingleSelect.vue, src/platform/assets/composables/useUploadModelWizard.ts
Changed model type definitions from string | null to string | undefined for selectedItem binding. Composable now returns Ref<string> initialized to empty string instead of Ref<string | undefined>.
Localization Updates
src/locales/en/main.json
Four localization keys updated with HTML markup: uploadModelDescription2 (added clickable link), uploadModelDescription3 (bold formatting), civitaiLinkLabel (italic emphasis), civitaiLinkExample (bold and external link).
Upload Dialog Components
src/platform/assets/components/UploadModelConfirmation.vue, src/platform/assets/components/AssetBrowserModal.vue, src/platform/assets/components/UploadModelDialog.vue, src/platform/assets/components/UploadModelDialogHeader.vue, src/platform/assets/components/UploadModelFooter.vue, src/platform/assets/components/UploadModelProgress.vue, src/platform/assets/components/UploadModelUrlInput.vue
UploadModelConfirmation migrated from explicit props/emits to defineModel API. AssetBrowserModal now passes dialogComponentProps to showDialog. Dialog header restyled with civitai.svg image; footer refactored with help/cancel controls for step 1; progress component simplified with tighter spacing; URL input enhanced with autofocus and updated styling.
Display Name Mappings
src/platform/assets/composables/useModelTypes.ts
Updated formatDisplayName singular mappings: upscale_models → Upscale Model, loras → LoRA, sams → SAM, animatediff_models → AnimateDiff Model.
Button Styling
src/types/buttonTypes.ts
Modified md size padding (px-2.5 → px-4) and transparent type text color (text-base-foreground → text-muted-foreground).
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch drjkl/import-modal

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 11/26/2025, 02:39:04 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 11/26/2025, 02:47:35 AM UTC

📈 Summary

  • Total Tests: 494
  • Passed: 480 ✅
  • Failed: 0
  • Flaky: 5 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 471 / ❌ 0 / ⚠️ 5 / ⏭️ 9
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@github-actions
Copy link

Bundle Size Report

Summary

  • Raw size: 17 MB baseline 17 MB — 🔴 +1.63 kB
  • Gzip: 3.37 MB baseline 3.36 MB — 🔴 +366 B
  • Brotli: 2.58 MB baseline 2.58 MB — 🔴 +288 B
  • Bundles: 93 current • 93 baseline • 38 added / 38 removed

Category Glance
Graph Workspace 🔴 +1.34 kB (946 kB) · App Entry Points 🔴 +287 B (3.18 MB) · Vendor & Third-Party ⚪ 0 B (8.56 MB) · Other ⚪ 0 B (3.84 MB) · Panels & Settings ⚪ 0 B (298 kB) · UI Components ⚪ 0 B (139 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.18 MB (baseline 3.18 MB) • 🔴 +287 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-B1Sd_dlo.js (new) 2.95 MB 🔴 +2.95 MB 🔴 +614 kB 🔴 +466 kB
assets/index-Bva2XNlb.js (removed) 2.95 MB 🟢 -2.95 MB 🟢 -614 kB 🟢 -466 kB
assets/index-DVIru41u.js (removed) 227 kB 🟢 -227 kB 🟢 -48.6 kB 🟢 -40 kB
assets/index-E7BB4-_a.js (new) 227 kB 🔴 +227 kB 🔴 +48.6 kB 🔴 +40 kB
assets/index-Dlls23XS.js (new) 345 B 🔴 +345 B 🔴 +243 B 🔴 +202 B
assets/index-rcIvArQd.js (removed) 345 B 🟢 -345 B 🟢 -244 B 🟢 -234 B

Status: 3 added / 3 removed

Graph Workspace — 946 kB (baseline 944 kB) • 🔴 +1.34 kB

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-07H-x51C.js (new) 946 kB 🔴 +946 kB 🔴 +183 kB 🔴 +140 kB
assets/GraphView-CIFWWpg0.js (removed) 944 kB 🟢 -944 kB 🟢 -183 kB 🟢 -140 kB

Status: 1 added / 1 removed

Views & Navigation — 6.54 kB (baseline 6.54 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-oaW2aVQu.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.9 kB
assets/UserSelectView-Vd6wUIUw.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.9 kB

Status: 1 added / 1 removed

Panels & Settings — 298 kB (baseline 298 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CreditsPanel-CmGgzMrF.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.5 kB
assets/CreditsPanel-DVFatSW_.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/KeybindingPanel-B7g7KeXK.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3 kB
assets/KeybindingPanel-BNQ1cZoX.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/ExtensionPanel-BEIZFFaW.js (new) 10.4 kB 🔴 +10.4 kB 🔴 +2.48 kB 🔴 +2.17 kB
assets/ExtensionPanel-BJTc9HXI.js (removed) 10.4 kB 🟢 -10.4 kB 🟢 -2.48 kB 🟢 -2.17 kB
assets/AboutPanel-1htXMmWb.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-EIeUCqS4.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-BLu1jkij.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.63 kB
assets/ServerConfigPanel-Cm0Ruy5z.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.63 kB
assets/UserPanel-DHuFxZNj.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.51 kB
assets/UserPanel-GRbl4AJg.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.51 kB
assets/settings-BXTtSH4O.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9Pzn-NG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CCy2fA_h.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CQpqEFfl.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DHcnxypw.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DhFTK9fY.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DlT4t_ui.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DRgSrIdD.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-tjkeqiZq.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 139 kB (baseline 139 kB) • ⚪ 0 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-CDipxR8c.js (new) 53.9 kB 🔴 +53.9 kB 🔴 +8.52 kB 🔴 +7.31 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-COK52EGt.js (removed) 53.9 kB 🟢 -53.9 kB 🟢 -8.52 kB 🟢 -7.31 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-D-ls2FI5.js (new) 46.9 kB 🔴 +46.9 kB 🔴 +10.1 kB 🔴 +8.77 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DnCXauHY.js (removed) 46.9 kB 🟢 -46.9 kB 🟢 -10.1 kB 🟢 -8.77 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-CEyzyd2_.js (new) 12.8 kB 🔴 +12.8 kB 🔴 +3.35 kB 🔴 +2.97 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-Cgq5tpmF.js (removed) 12.8 kB 🟢 -12.8 kB 🟢 -3.35 kB 🟢 -2.97 kB
assets/ComfyQueueButton-CS5XVFsm.js (new) 7.73 kB 🔴 +7.73 kB 🔴 +2.2 kB 🔴 +1.95 kB
assets/ComfyQueueButton-UUcIeo5m.js (removed) 7.73 kB 🟢 -7.73 kB 🟢 -2.2 kB 🟢 -1.95 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CTPGhfHT.js (new) 2.16 kB 🔴 +2.16 kB 🔴 +826 B 🔴 +718 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-HMgZbuNY.js (removed) 2.16 kB 🟢 -2.16 kB 🟢 -826 B 🟢 -723 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-BC86zkxe.js (removed) 897 B 🟢 -897 B 🟢 -503 B 🟢 -470 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-C3ShFXw_.js (new) 897 B 🔴 +897 B 🔴 +502 B 🔴 +463 B
assets/LazyImage.vue_vue_type_script_setup_true_lang-DNzEEbAp.js 10.8 kB 10.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-B4qnwhJi.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-0Kc6B4DO.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-BuCTb6XE.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.84 kB 🟢 -1.58 kB
assets/keybindingService-DhoPEZ6i.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/audioService-Cq9bSBtP.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +959 B 🔴 +829 B
assets/audioService-wr2GTVOv.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -960 B 🟢 -824 B
assets/serverConfigStore-NS6ibDz2.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

Utilities & Hooks — 2.94 kB (baseline 2.94 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BTlkRKqj.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +649 B 🔴 +553 B
assets/audioUtils-CwDS4LEP.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -652 B 🟢 -544 B
assets/mathUtil-CTARWQ-l.js 1.07 kB 1.07 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

Vendor & Third-Party — 8.56 MB (baseline 8.56 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-Bc7F9itp.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-BUi7FCLE.js 3.98 MB 3.98 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DTsA3ueY.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-CaFtSsrn.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-xOQVyCMJ.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.84 MB (baseline 3.84 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-B1DlNSxN.js (removed) 20.5 kB 🟢 -20.5 kB 🟢 -5.26 kB 🟢 -4.65 kB
assets/WidgetRecordAudio-BDefW-iN.js (new) 20.5 kB 🔴 +20.5 kB 🔴 +5.25 kB 🔴 +4.66 kB
assets/AudioPreviewPlayer-BLipS-SD.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.07 kB
assets/AudioPreviewPlayer-DyuUix1G.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.07 kB
assets/WidgetGalleria-BazL8ilZ.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.45 kB 🟢 -1.3 kB
assets/WidgetGalleria-DAHg1J0_.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.31 kB
assets/WidgetColorPicker-BBS-gX_3.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-Bg5Z1Kde.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetMarkdown-B7bJIN89.js (removed) 3.16 kB 🟢 -3.16 kB 🟢 -1.32 kB 🟢 -1.15 kB
assets/WidgetMarkdown-SN0j4L8o.js (new) 3.16 kB 🔴 +3.16 kB 🔴 +1.31 kB 🔴 +1.15 kB
assets/WidgetAudioUI-BJoJI0f6.js (removed) 2.82 kB 🟢 -2.82 kB 🟢 -1.12 kB 🟢 -1.01 kB
assets/WidgetAudioUI-iE2R5gjN.js (new) 2.82 kB 🔴 +2.82 kB 🔴 +1.12 kB 🔴 +1.02 kB
assets/WidgetTextarea-BRGRwsdw.js (new) 2.54 kB 🔴 +2.54 kB 🔴 +1.04 kB 🔴 +933 B
assets/WidgetTextarea-C1eNGFDg.js (removed) 2.54 kB 🟢 -2.54 kB 🟢 -1.04 kB 🟢 -909 B
assets/WidgetInputText-OYCY3GSt.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +916 B 🔴 +855 B
assets/WidgetInputText-uvVOHOp5.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -916 B 🟢 -848 B
assets/WidgetToggleSwitch-DTZlYmAZ.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -834 B 🟢 -728 B
assets/WidgetToggleSwitch-QpzDprj4.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +834 B 🔴 +729 B
assets/MediaImageBottom-DuKo29XI.js (new) 1.57 kB 🔴 +1.57 kB 🔴 +739 B 🔴 +644 B
assets/MediaImageBottom-DvXGEX0L.js (removed) 1.57 kB 🟢 -1.57 kB 🟢 -739 B 🟢 -648 B
assets/MediaAudioBottom-BxlDqOhg.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +740 B 🔴 +656 B
assets/MediaAudioBottom-Niej3E6v.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -740 B 🟢 -656 B
assets/MediaVideoBottom-Budle4MJ.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -736 B 🟢 -652 B
assets/MediaVideoBottom-CipzClxq.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +737 B 🔴 +654 B
assets/Media3DBottom-DpOpN_Pb.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -730 B 🟢 -648 B
assets/Media3DBottom-TpfJFAPS.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +650 B
assets/Media3DTop-ggKlmJ-x.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +763 B 🔴 +654 B
assets/Media3DTop-wB_WWFja.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -765 B 🟢 -652 B
assets/WidgetSelect-CrTUSxZI.js (removed) 655 B 🟢 -655 B 🟢 -344 B 🟢 -289 B
assets/WidgetSelect-Dk2wCuLX.js (new) 655 B 🔴 +655 B 🔴 +342 B 🔴 +288 B
assets/WidgetInputNumber-BPNE3Fug.js (new) 595 B 🔴 +595 B 🔴 +329 B 🔴 +276 B
assets/WidgetInputNumber-CnZA-vHZ.js (removed) 595 B 🟢 -595 B 🟢 -328 B 🟢 -277 B
assets/Load3D-BWphZ693.js (removed) 424 B 🟢 -424 B 🟢 -269 B 🟢 -223 B
assets/Load3D-BzJEMqJ8.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +223 B
assets/WidgetLegacy-BrqbWjjr.js (new) 364 B 🔴 +364 B 🔴 +237 B 🔴 +194 B
assets/WidgetLegacy-DtYBJcKe.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -194 B
assets/commands-_s-RvhJR.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BuUILW6P.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BV4R6fLx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CLwPdnT6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CWMchBmd.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DazTQhtc.js 12.9 kB 12.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmWrOe93.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwiH7Kr6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-mS3LCNPn.js 14.5 kB 14.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-5lOBdqcC.js 84.5 kB 84.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BOCuaVpE.js 73.4 kB 73.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-ClrEFGUz.js 72.4 kB 72.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CyNU0iQX.js 99.3 kB 99.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-D7gwLxft.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DC8o4BCt.js 86.8 kB 86.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DKiesCV4.js 94.3 kB 94.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Hq2q-OtB.js 83.6 kB 83.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-USAlAlnj.js 82 kB 82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-ClVHGsSJ.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-BTxsJ9KT.js 1.68 kB 1.68 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-P2MYHlgs.js 2.76 kB 2.76 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-_Px5dSNW.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-7z21KPoS.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BWKZzBPK.js 346 kB 346 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CGbgH4Yl.js 320 kB 320 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CjjjdWkV.js 313 kB 313 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CVrNtxvj.js 288 kB 288 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DLRSA0IK.js 309 kB 309 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DQV2gnwA.js 372 kB 372 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-ofqLG5vz.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-DaKVD7Py.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-DE5-CeXh.js 2.21 kB 2.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 18 added / 18 removed

"uploadModelDescription2": "Only links from https://civitai.com are supported at the moment",
"uploadModelDescription3": "Max file size: 1 GB",
"civitaiLinkLabel": "Civitai model download link",
"uploadModelDescription2": "Only links from <a href=\"https://civitai.com\" target=\"_blank\" class=\"text-muted-foreground\">https://civitai.com</a> are supported at the moment",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/platform/assets/composables/useModelTypes.ts (1)

5-23: Doc comment for upscale_models doesn’t match implementation

The comment says "upscale_models" -> "Upscale Model", but specialCases has no upscale_models entry, so current behavior will still be "Upscale Models" via the generic formatter. Please either:

  • Add a special case:
  const specialCases: Record<string, string> = {
+   upscale_models: 'Upscale Model',
    loras: 'LoRA',
    ipadapter: 'IP-Adapter',
    sams: 'SAM',
    clip_vision: 'CLIP Vision',
    animatediff_motion_lora: 'AnimateDiff Motion LoRA',
    animatediff_models: 'AnimateDiff Model',
    vae: 'VAE',
    sam2: 'SAM 2',
    controlnet: 'ControlNet',
    gligen: 'GLIGEN'
  }

or

  • Adjust the doc comment to reflect the actual output.

Optionally, you could also hoist specialCases outside the function to avoid re-allocating it on every call, though impact is small here.

🧹 Nitpick comments (7)
src/platform/assets/components/UploadModelDialogHeader.vue (1)

2-9: Add alt text to the new Civitai logo image for accessibility

The new <img src="/assets/images/civitai.svg" /> has no alt, which is not ideal for screen readers. Consider:

  • If purely decorative: use alt="".
  • If informative: bind a localized alt, e.g.:
-    <img src="/assets/images/civitai.svg" class="size-4" />
+    <img
+      src="/assets/images/civitai.svg"
+      :alt="$t('assetBrowser.civitaiLogoAlt')"
+      class="size-4"
+    />

and add assetBrowser.civitaiLogoAlt to main.json.

src/locales/en/main.json (1)

2095-2099: Harden external Civitaі links in HTML translations

The updated assetBrowser strings now embed HTML links with target="_blank" (e.g. the main site link and example API URL). To avoid reverse‑tabnabbing and align with security best practices, please include rel="noopener noreferrer" on these anchors. For example:

- "uploadModelDescription2": "Only links from <a href=\"https://civitai.com\" target=\"_blank\" class=\"text-muted-foreground\">https://civitai.com</a> are supported at the moment",
+ "uploadModelDescription2": "Only links from <a href=\"https://civitai.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-muted-foreground\">https://civitai.com</a> are supported at the moment",

- "civitaiLinkExample": "<strong>Example:</strong> <a href=\"https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor\" target=\"_blank\" class=\"text-muted-foreground\">https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor</a>",
+ "civitaiLinkExample": "<strong>Example:</strong> <a href=\"https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-muted-foreground\">https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor</a>",

Since these strings are rendered via v-html, keeping the link markup itself as safe as possible is helpful even though the translations are static.

src/platform/assets/components/UploadModelUrlInput.vue (1)

2-25: v-html for rich translations is fine here; consider a sanitization helper for future extensibility

You now render multiple i18n strings via v-html (uploadModelDescription2/3, civitaiLinkLabel, civitaiLinkExample). Given these come from static JSON, they’re effectively trusted and the current approach is acceptable.

If there’s any chance in the future that these translations (or similar HTML-bearing keys) could come from remote or user-controlled sources, it would be safer to route them through a shared sanitizer (e.g., a small SanitizedI18nHtml component or a computed that applies DOMPurify) instead of binding $t(...) directly to v-html.

No change is strictly required now, but this is a good seam if you later harden HTML rendering globally.

src/platform/assets/composables/useUploadModelWizard.ts (1)

34-51: selectedModelType ref using undefined sentinel is consistent with callers

Initializing selectedModelType as ref<string>() (i.e. Ref<string | undefined>) and gating uploads with canUploadModel keeps the behavior correct while aligning with components that use string | undefined for the model value. The additional ? : ['models'] fallback in uploadModel is now redundant due to the guard but harmless, so no required changes here.

src/platform/assets/components/UploadModelFooter.vue (1)

2-11: Tighten help link implementation (URL + security + i18n key)

  • href="#" with target="_blank" is a bit of a placeholder; consider wiring this to a real help URL (or emitting an event) and using @click.prevent if you keep #.
  • Add rel="noopener noreferrer" alongside target="_blank" to avoid the new tab getting a handle to window.opener.
  • Please ensure the key 'How do I find this?' is actually defined in src/locales/en/main.json (you may want a more conventional key name like assetBrowser.howToFindThis for consistency).
src/platform/assets/components/UploadModelProgress.vue (1)

19-37: Guard against undefined modelType and consider display-name mapping

In the success state you interpolate modelType into:

{{ $t('assetBrowser.findInLibrary', { type: modelType }) }}

but the prop is typed as string | undefined. If status === 'success' can ever be reached while modelType is still undefined, users may see an odd 'undefined' substitution.

Two follow-ups to consider:

  • Ensure modelType is always set before transitioning to 'success', or provide a safe fallback:
{{ $t('assetBrowser.findInLibrary', { type: modelType ?? '' }) }}
  • Where possible, hook this up to the friendly display-name mapping used elsewhere (e.g., from useModelTypes) instead of the raw folder key, which aligns with your own TODO about wanting a nicer display name.
src/platform/assets/components/UploadModelConfirmation.vue (1)

17-35: Model-type selector UX improvement with minor cleanup opportunity

  • The helper row with the question-mark icon and assetBrowser.notSureLeaveAsIs is a nice touch and correctly uses $t(...) for localization.
  • The <label class=""> has an empty class attribute; you can safely drop class="" entirely for cleanliness.

Also, please double-check that assetBrowser.modelTypeSelectorLabel, assetBrowser.modelTypeSelectorPlaceholder, and assetBrowser.notSureLeaveAsIs are all present in src/locales/en/main.json and any other supported locales.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5fa76e2 and baaa817.

⛔ Files ignored due to path filters (1)
  • public/assets/images/civitai.svg is excluded by !**/*.svg
📒 Files selected for processing (12)
  • src/components/input/SingleSelect.vue (1 hunks)
  • src/locales/en/main.json (2 hunks)
  • src/platform/assets/components/AssetBrowserModal.vue (1 hunks)
  • src/platform/assets/components/UploadModelConfirmation.vue (2 hunks)
  • src/platform/assets/components/UploadModelDialog.vue (1 hunks)
  • src/platform/assets/components/UploadModelDialogHeader.vue (1 hunks)
  • src/platform/assets/components/UploadModelFooter.vue (4 hunks)
  • src/platform/assets/components/UploadModelProgress.vue (1 hunks)
  • src/platform/assets/components/UploadModelUrlInput.vue (1 hunks)
  • src/platform/assets/composables/useModelTypes.ts (1 hunks)
  • src/platform/assets/composables/useUploadModelWizard.ts (1 hunks)
  • src/types/buttonTypes.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (21)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/types/buttonTypes.ts
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/AssetBrowserModal.vue
  • src/components/input/SingleSelect.vue
  • src/platform/assets/components/UploadModelDialog.vue
  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelDialogHeader.vue
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
src/components/**/*.vue

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.vue: Use setup() function in Vue 3 Composition API
Destructure props using Vue 3.5 style in Vue components
Use ref/reactive for state management in Vue 3 Composition API
Implement computed() for derived state in Vue 3 Composition API
Use provide/inject for dependency injection in Vue components
Prefer emit/@event-name for state changes over other communication patterns
Use defineExpose only for imperative operations (such as form.validate(), modal.open())
Replace PrimeVue Dropdown component with Select
Replace PrimeVue OverlayPanel component with Popover
Replace PrimeVue Calendar component with DatePicker
Replace PrimeVue InputSwitch component with ToggleSwitch
Replace PrimeVue Sidebar component with Drawer
Replace PrimeVue Chips component with AutoComplete with multiple enabled
Replace PrimeVue TabMenu component with Tabs without panels
Replace PrimeVue Steps component with Stepper without panels
Replace PrimeVue InlineMessage component with Message
Extract complex conditionals to computed properties
Implement cleanup for async operations in Vue components
Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API
Use Teleport/Suspense when needed for component rendering
Define proper props and emits definitions in Vue components

Files:

  • src/components/input/SingleSelect.vue
src/components/**/*.{vue,css}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,css}: Use Tailwind CSS only for styling (no custom CSS)
Use the correct tokens from style.css in the design system package

Files:

  • src/components/input/SingleSelect.vue
src/components/**/*.{vue,ts,js}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,ts,js}: Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
Use useIntersectionObserver for visibility detection instead of custom scroll handlers
Use vue-i18n for ALL UI strings

Files:

  • src/components/input/SingleSelect.vue
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursorrules)

Use es-toolkit for utility functions

Files:

  • src/types/buttonTypes.ts
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

Use TypeScript for type safety

**/*.{ts,tsx}: Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • src/types/buttonTypes.ts
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
src/**/*.ts

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.ts: Use es-toolkit for utility functions
Use TypeScript for type safety

Files:

  • src/types/buttonTypes.ts
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
**/*.ts

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.ts: Define dynamic setting defaults using runtime context with functions in settings configuration
Use defaultsByInstallVersion property for gradual feature rollout based on version in settings configuration

Files:

  • src/types/buttonTypes.ts
  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
src/**/{services,composables}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/{services,composables}/**/*.{ts,tsx}: Use api.apiURL() for backend endpoints instead of constructing URLs directly
Use api.fileURL() for static file access instead of constructing URLs directly

Files:

  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
**/composables/use*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables in the format useXyz.ts

Files:

  • src/platform/assets/composables/useModelTypes.ts
  • src/platform/assets/composables/useUploadModelWizard.ts
🧠 Learnings (11)
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.vue : Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively

Applied to files:

  • src/platform/assets/components/UploadModelUrlInput.vue
  • src/platform/assets/components/UploadModelProgress.vue
  • src/platform/assets/components/UploadModelConfirmation.vue
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.vue : Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Applied to files:

  • src/platform/assets/components/UploadModelUrlInput.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch

Applied to files:

  • src/platform/assets/components/UploadModelUrlInput.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue OverlayPanel component with Popover

Applied to files:

  • src/platform/assets/components/AssetBrowserModal.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Dropdown component with Select

Applied to files:

  • src/components/input/SingleSelect.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Steps component with Stepper without panels

Applied to files:

  • src/platform/assets/components/UploadModelFooter.vue
  • src/platform/assets/components/UploadModelProgress.vue
📚 Learning: 2025-11-24T19:47:34.324Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.324Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/locales/en/main.json
📚 Learning: 2025-11-24T19:48:23.088Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.088Z
Learning: Applies to **/composables/use*.ts : Name composables in the format `useXyz.ts`

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Define proper props and emits definitions in Vue components

Applied to files:

  • src/platform/assets/components/UploadModelConfirmation.vue
📚 Learning: 2025-11-24T19:47:45.616Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.616Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InlineMessage component with Message

Applied to files:

  • src/platform/assets/components/UploadModelConfirmation.vue
📚 Learning: 2025-11-24T19:46:52.279Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.279Z
Learning: Applies to **/*.vue : Implement proper props and emits definitions in Vue components

Applied to files:

  • src/platform/assets/components/UploadModelConfirmation.vue
🪛 ESLint
src/platform/assets/components/UploadModelConfirmation.vue

[error] 39-39: Unable to resolve path to module '@/components/input/SingleSelect.vue'.

(import-x/no-unresolved)


[error] 40-40: Unable to resolve path to module '@/platform/assets/composables/useModelTypes'.

(import-x/no-unresolved)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: setup
  • GitHub Check: test
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (8)
src/components/input/SingleSelect.vue (1)

155-169: Model type change to string | undefined is consistent

Switching selectedItem to defineModel<string | undefined>({ required: true }) aligns with the rest of the flow (wizard uses Ref<string | undefined>), and the null/undefined checks in the template and getLabel already support this. No further changes needed here.

src/platform/assets/components/UploadModelDialog.vue (1)

2-41: Top border + spacing tweaks on dialog container look fine

Adding border-t-[1px] border-border-default to the dialog root is purely presentational and doesn’t affect the wizard flow or state wiring. The component still delegates steps and events exactly as before.

src/platform/assets/components/AssetBrowserModal.vue (1)

195-211: Dialog padding overrides preserve behavior and align styling

Passing dialogComponentProps.pt.header/content into showDialog only adjusts the dialog’s header/content padding; the upload success callback still triggers execute() so asset lists refresh as before. The change is localized to presentation and looks good.

src/types/buttonTypes.ts (1)

16-23: Button size and transparent type mapping changes look good

The updated md padding and the shift of the transparent type to text-muted-foreground are purely stylistic, keep the API stable, and remain type-safe. No issues from a TS or usage perspective.

Also applies to: 25-37

src/platform/assets/components/UploadModelFooter.vue (1)

12-67: Footer step logic and button role changes are consistent

The added Cancel button and the Back/placeholder pattern across steps 1–3 read correctly, and the button type changes (Back → transparent, CTAs → secondary) reuse the existing disabled conditions without altering behavior. This is a clean UX-only adjustment.

src/platform/assets/components/UploadModelProgress.vue (1)

2-16: Uploading-state visual tweaks are safe

The tightened layout and shift to text-muted-foreground for the loader are purely stylistic and don’t affect logic or props; the state branching remains unchanged.

src/platform/assets/components/UploadModelConfirmation.vue (2)

2-13: Model info card styling change is straightforward

The new container/card classes (text-sm text-muted-foreground, bg-modal-card-background, text-base-foreground) are a pure visual refinement around the existing metadata?.name || metadata?.filename logic. No behavioral or typing concerns here.


39-50: defineModel usage and imports; confirm alias config

  • Using defineModel<string | undefined>() for v-model="modelValue" is a good move and keeps the external API (v-model prop/emit) intact while simplifying the script setup.
  • defineProps<{ metadata: AssetMetadata | null }>() is correctly typed and matches template usage.
  • Static analysis in this environment reported unresolved imports for @/components/input/SingleSelect.vue and @/platform/assets/composables/useModelTypes. If your local build passes, this is likely just a tooling/ESLint alias-config mismatch rather than a real import bug. Otherwise, ensure your ESLint/TS config defines @ consistently with your bundler.

Comment on lines +8 to +9
<li v-html="$t('assetBrowser.uploadModelDescription2')" />
<li v-html="$t('assetBrowser.uploadModelDescription3')" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants