Skip to content

[feat] Filter out nlf model type from Upload Model flow#7793

Merged
luke-mino-altherr merged 1 commit intomainfrom
luke-mino-altherr/disallow-model-nlf-tag
Dec 31, 2025
Merged

[feat] Filter out nlf model type from Upload Model flow#7793
luke-mino-altherr merged 1 commit intomainfrom
luke-mino-altherr/disallow-model-nlf-tag

Conversation

@luke-mino-altherr
Copy link
Contributor

@luke-mino-altherr luke-mino-altherr commented Dec 29, 2025

Summary

Filters out the "nlf" (no-license-file) model type from the Upload Model wizard's model type dropdown, preventing users from selecting this internal category.

Changes

  • What: Added DISALLOWED_MODEL_TYPES constant and filter in useModelTypes composable
  • Scope: Only affects Upload Model flow (used by UploadModelDialog and UploadModelConfirmation)

Test plan

  • Open Upload Model dialog and verify "nlf" does not appear in model type dropdown
  • Verify other model types still appear correctly
  • Verify dropdown still functions as expected

🤖 Generated with Claude Code

┆Issue is synchronized with this Notion page by Unito

@luke-mino-altherr luke-mino-altherr added the enhancement New feature or request label Dec 29, 2025
@luke-mino-altherr luke-mino-altherr requested a review from a team as a code owner December 29, 2025 19:43
@luke-mino-altherr luke-mino-altherr added area:models enhancement New feature or request labels Dec 29, 2025
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 29, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 29, 2025

📝 Walkthrough

Walkthrough

A filter mechanism was added to the model types composable to exclude specific model folders from being returned. A new constant defines disallowed model type names, and filtering logic was integrated into the model types fetch flow to remove matching entries.

Changes

Cohort / File(s) Summary
Model Types Filtering
src/platform/assets/composables/useModelTypes.ts
Added DISALLOWED_MODEL_TYPES constant containing ['nlf'] to define excluded model names. Integrated filter step in model types fetch flow to exclude folders matching disallowed names before mapping to ModelTypeOption and returning results.
✨ Finishing touches
  • 📝 Generate docstrings

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

@github-actions
Copy link

github-actions bot commented Dec 29, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 12/29/2025, 07:45:35 PM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Dec 29, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 12/29/2025, 07:54:28 PM UTC

📈 Summary

  • Total Tests: 511
  • Passed: 500 ✅
  • Failed: 0
  • Flaky: 3 ⚠️
  • Skipped: 8 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 490 / ❌ 0 / ⚠️ 2 / ⏭️ 8
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 7 / ❌ 0 / ⚠️ 1 / ⏭️ 0

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

Add filtering to exclude the "nlf" (no-license-file) model type from appearing
in the model type dropdown during the Upload Model wizard. This prevents users
from selecting this internal model category when uploading models.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@luke-mino-altherr luke-mino-altherr force-pushed the luke-mino-altherr/disallow-model-nlf-tag branch from 139e6b8 to 734775b Compare December 29, 2025 19:43
@github-actions
Copy link

github-actions bot commented Dec 29, 2025

Bundle Size Report

Summary

  • Raw size: 17.3 MB baseline 17.3 MB — 🔴 +142 B
  • Gzip: 3.54 MB baseline 3.53 MB — 🔴 +107 B
  • Brotli: 2.7 MB baseline 2.7 MB — 🔴 +224 B
  • Bundles: 98 current • 98 baseline • 42 added / 42 removed

Category Glance
UI Components 🔴 +142 B (196 kB) · Vendor & Third-Party ⚪ 0 B (9.1 MB) · Other ⚪ 0 B (3.46 MB) · App Entry Points ⚪ 0 B (3.19 MB) · Graph Workspace ⚪ 0 B (996 kB) · Panels & Settings ⚪ 0 B (296 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.19 MB (baseline 3.19 MB) • ⚪ 0 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-BA3gbbDE.js (removed) 3 MB 🟢 -3 MB 🟢 -632 kB 🟢 -481 kB
assets/index-D3yWinTJ.js (new) 3 MB 🔴 +3 MB 🔴 +632 kB 🔴 +481 kB
assets/index-BLx2P0hy.js (removed) 193 kB 🟢 -193 kB 🟢 -42 kB 🟢 -35 kB
assets/index-DCtfn0de.js (new) 193 kB 🔴 +193 kB 🔴 +42 kB 🔴 +35 kB
assets/index-BoBhs37V.js (new) 345 B 🔴 +345 B 🔴 +245 B 🔴 +212 B
assets/index-DhUhYb2G.js (removed) 345 B 🟢 -345 B 🟢 -246 B 🟢 -237 B

Status: 3 added / 3 removed

Graph Workspace — 996 kB (baseline 996 kB) • ⚪ 0 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-7mbTpR8k.js (removed) 996 kB 🟢 -996 kB 🟢 -195 kB 🟢 -148 kB
assets/GraphView-C7UH9FOt.js (new) 996 kB 🔴 +996 kB 🔴 +195 kB 🔴 +148 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-TBXrhTim.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.89 kB
assets/UserSelectView-VtaFf84u.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.13 kB 🟢 -1.89 kB

Status: 1 added / 1 removed

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

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LegacyCreditsPanel-CG1JDn5w.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.16 kB 🟢 -4.51 kB
assets/LegacyCreditsPanel-DTRkaQ4U.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.16 kB 🔴 +4.51 kB
assets/KeybindingPanel-CQZj8qS2.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.02 kB
assets/KeybindingPanel-D_H7xSLN.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/ExtensionPanel-BTv8zLmr.js (removed) 10.8 kB 🟢 -10.8 kB 🟢 -2.57 kB 🟢 -2.24 kB
assets/ExtensionPanel-CH8JmXT9.js (new) 10.8 kB 🔴 +10.8 kB 🔴 +2.57 kB 🔴 +2.25 kB
assets/AboutPanel-C0MVcaDr.js (new) 9.16 kB 🔴 +9.16 kB 🔴 +2.46 kB 🔴 +2.21 kB
assets/AboutPanel-Ca08OjlU.js (removed) 9.16 kB 🟢 -9.16 kB 🟢 -2.46 kB 🟢 -2.21 kB
assets/ServerConfigPanel-DZ79Hsce.js (new) 7.07 kB 🔴 +7.07 kB 🔴 +1.98 kB 🔴 +1.76 kB
assets/ServerConfigPanel-Q9lBm-gO.js (removed) 7.07 kB 🟢 -7.07 kB 🟢 -1.98 kB 🟢 -1.76 kB
assets/UserPanel-B2ReW0n6.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.5 kB
assets/UserPanel-D2-VeJxw.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.5 kB
assets/settings-AN2JfZVQ.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BhbWhsRg.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-BIdKi-OT.js 26.2 kB 26.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Bu3OR-lX.js 24.6 kB 24.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-ByL6gy5c.js 25.4 kB 25.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CjlRFMdL.js 32.8 kB 32.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DkGwvylK.js 26.9 kB 26.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-Dyd027Dx.js 24.7 kB 24.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-wwBxqLH5.js 21.3 kB 21.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-xx2Yb6R2.js 23.8 kB 23.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 196 kB (baseline 196 kB) • 🔴 +142 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/LazyImage.vue_vue_type_script_setup_true_lang-DVrgzt3Y.js (new) 60.1 kB 🔴 +60.1 kB 🔴 +12.4 kB 🔴 +10.8 kB
assets/LazyImage.vue_vue_type_script_setup_true_lang-DRh3jJqU.js (removed) 59.9 kB 🟢 -59.9 kB 🟢 -12.4 kB 🟢 -10.8 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-UwONWPhB.js (new) 54.3 kB 🔴 +54.3 kB 🔴 +8.62 kB 🔴 +7.42 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-WeC4psCb.js (removed) 54.3 kB 🟢 -54.3 kB 🟢 -8.62 kB 🟢 -7.42 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-BMltxj4f.js (removed) 48.8 kB 🟢 -48.8 kB 🟢 -10.5 kB 🟢 -9.14 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-DHLApMLW.js (new) 48.8 kB 🔴 +48.8 kB 🔴 +10.5 kB 🔴 +9.13 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-dlby0vHK.js (removed) 14.3 kB 🟢 -14.3 kB 🟢 -3.74 kB 🟢 -3.29 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-FP1KzayO.js (new) 14.3 kB 🔴 +14.3 kB 🔴 +3.74 kB 🔴 +3.29 kB
assets/ComfyQueueButton-Bcbdyobp.js (new) 8.45 kB 🔴 +8.45 kB 🔴 +2.47 kB 🔴 +2.2 kB
assets/ComfyQueueButton-DUGE8hZT.js (removed) 8.45 kB 🟢 -8.45 kB 🟢 -2.47 kB 🟢 -2.2 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-Bf5rgdNb.js (removed) 3.68 kB 🟢 -3.68 kB 🟢 -1.45 kB 🟢 -1.31 kB
assets/WidgetWithControl.vue_vue_type_script_setup_true_lang-OHusecPl.js (new) 3.68 kB 🔴 +3.68 kB 🔴 +1.45 kB 🔴 +1.3 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-BOV0ac0k.js (removed) 2.14 kB 🟢 -2.14 kB 🟢 -890 B 🟢 -775 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CHxuQT4P.js (new) 2.14 kB 🔴 +2.14 kB 🔴 +891 B 🔴 +772 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-cuX4kV0P.js (new) 897 B 🔴 +897 B 🔴 +505 B 🔴 +433 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-DZNW4b9x.js (removed) 897 B 🟢 -897 B 🟢 -505 B 🟢 -435 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-B6P2AFxg.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-CD0L1KzN.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 8 added / 8 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-BbdLhfPO.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.59 kB
assets/keybindingService-KduPrEEg.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.59 kB
assets/audioService-Bt6fd0HY.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -962 B 🟢 -822 B
assets/audioService-D3jB12aZ.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +961 B 🔴 +827 B
assets/serverConfigStore-CNSmwya1.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

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

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BhcQbepQ.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +651 B 🔴 +548 B
assets/audioUtils-DnTU9Cy8.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -651 B 🟢 -548 B

Status: 1 added / 1 removed

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

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-DOvov576.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-BKKxyZwz.js 3.86 MB 3.86 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-Btu8cl1B.js 1.95 MB 1.95 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-DYL0ZbEr.js 2.02 MB 2.02 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-CUNFo3Ub.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-BlzIh1pE.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BF8peZ5_.js 420 kB 420 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.46 MB (baseline 3.46 MB) • ⚪ 0 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/SubscriptionRequiredDialogContent-COVoyOqO.js (new) 28 kB 🔴 +28 kB 🔴 +6.28 kB 🔴 +5.46 kB
assets/SubscriptionRequiredDialogContent-CSRAVdcS.js (removed) 28 kB 🟢 -28 kB 🟢 -6.27 kB 🟢 -5.46 kB
assets/WidgetRecordAudio-CJ_ZjdnK.js (new) 20.4 kB 🔴 +20.4 kB 🔴 +5.23 kB 🔴 +4.63 kB
assets/WidgetRecordAudio-wx7P4GRY.js (removed) 20.4 kB 🟢 -20.4 kB 🟢 -5.23 kB 🟢 -4.64 kB
assets/AudioPreviewPlayer-F8edhmn9.js (removed) 13.3 kB 🟢 -13.3 kB 🟢 -3.34 kB 🟢 -2.99 kB
assets/AudioPreviewPlayer-LFcr2_n8.js (new) 13.3 kB 🔴 +13.3 kB 🔴 +3.35 kB 🔴 +3 kB
assets/ValueControlPopover-BZ1x0zoi.js (removed) 5.49 kB 🟢 -5.49 kB 🟢 -1.7 kB 🟢 -1.51 kB
assets/ValueControlPopover-CprIAdUn.js (new) 5.49 kB 🔴 +5.49 kB 🔴 +1.7 kB 🔴 +1.52 kB
assets/WidgetGalleria-DSu75eua.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.44 kB 🔴 +1.3 kB
assets/WidgetGalleria-UManjDPb.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.3 kB
assets/WidgetColorPicker-CfUIXwA-.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-rrrtVe3t.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetTextarea-D14rh-2M.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.21 kB 🔴 +1.08 kB
assets/WidgetTextarea-D1AgqQVm.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.21 kB 🟢 -1.07 kB
assets/WidgetMarkdown-BRrjW0pe.js (removed) 3.08 kB 🟢 -3.08 kB 🟢 -1.28 kB 🟢 -1.12 kB
assets/WidgetMarkdown-D-mcWYly.js (new) 3.08 kB 🔴 +3.08 kB 🔴 +1.28 kB 🔴 +1.13 kB
assets/WidgetAudioUI-BbhQGgfJ.js (new) 2.89 kB 🔴 +2.89 kB 🔴 +1.16 kB 🔴 +1.06 kB
assets/WidgetAudioUI-Bqe0A1Qd.js (removed) 2.89 kB 🟢 -2.89 kB 🟢 -1.16 kB 🟢 -1.06 kB
assets/WidgetInputText-DnAxcK7c.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +919 B 🔴 +850 B
assets/WidgetInputText-oeS9Wx9g.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -918 B 🟢 -856 B
assets/WidgetToggleSwitch--kL9Iy2T.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +835 B 🔴 +735 B
assets/WidgetToggleSwitch-B8j9WO-f.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -831 B 🟢 -731 B
assets/MediaImageBottom-1xvE4MD0.js (removed) 1.55 kB 🟢 -1.55 kB 🟢 -734 B 🟢 -637 B
assets/MediaImageBottom-CJTecWlp.js (new) 1.55 kB 🔴 +1.55 kB 🔴 +733 B 🔴 +634 B
assets/MediaAudioBottom-C-xynCza.js (removed) 1.51 kB 🟢 -1.51 kB 🟢 -734 B 🟢 -644 B
assets/MediaAudioBottom-ZSY08pPs.js (new) 1.51 kB 🔴 +1.51 kB 🔴 +732 B 🔴 +647 B
assets/Media3DBottom-DmvmSuZe.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +732 B 🔴 +641 B
assets/Media3DBottom-DQR6Py1E.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -646 B
assets/MediaVideoBottom-jSmlGWnE.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -643 B
assets/MediaVideoBottom-ZlrELI8Q.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +731 B 🔴 +643 B
assets/Media3DTop-ClFxHPX8.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -767 B 🟢 -653 B
assets/Media3DTop-DG76o3BI.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +767 B 🔴 +651 B
assets/WidgetSelect-C5z7dufl.js (new) 733 B 🔴 +733 B 🔴 +360 B 🔴 +324 B
assets/WidgetSelect-Dqn83LfE.js (removed) 733 B 🟢 -733 B 🟢 -358 B 🟢 -308 B
assets/WidgetInputNumber-5DLAbUJO.js (new) 673 B 🔴 +673 B 🔴 +347 B 🔴 +297 B
assets/WidgetInputNumber-BE1XEeAD.js (removed) 673 B 🟢 -673 B 🟢 -346 B 🟢 -287 B
assets/Load3D-CriYvXaM.js (removed) 424 B 🟢 -424 B 🟢 -265 B 🟢 -222 B
assets/Load3D-DwLXVw7h.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +223 B
assets/WidgetLegacy-Ddy2GoE9.js (removed) 364 B 🟢 -364 B 🟢 -237 B 🟢 -223 B
assets/WidgetLegacy-pVxetRqO.js (new) 364 B 🔴 +364 B 🔴 +238 B 🔴 +194 B
assets/commands-bTEY9Mp6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BWp4HdfU.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CcfGaui5.js 14.4 kB 14.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CisfgZf5.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CkU12Foh.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CoH2DJa6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-COSt-Bjx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DalfIW5f.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DfTl0eCm.js 13.5 kB 13.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwSJL865.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Bdc58rJq.js 97.1 kB 97.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BRKE6VDs.js 91 kB 91 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-C9ZJBRdI.js 81.5 kB 81.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CAL83XT3.js 84.6 kB 84.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CHLLfvpG.js 82.4 kB 82.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Cw9RZWRY.js 89 B 89 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DDqR5EuX.js 71.3 kB 71.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DLHyaEcz.js 92.1 kB 92.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-O7KfJeMO.js 79.9 kB 79.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-OzGsrlqJ.js 112 kB 112 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-Bu3Uau7e.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-DTAowaFC.js 1.75 kB 1.75 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-BqwS3WNi.js 2.65 kB 2.65 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-aW9En70v.js 260 kB 260 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BIckSVgU.js 273 kB 273 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BiYpVi7D.js 263 kB 263 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Bw_Jitw_.js 101 B 101 B ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CCEXtYfM.js 243 kB 243 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CvmVDWYd.js 323 kB 323 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-D_wreoPJ.js 267 kB 267 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DIAYlJwM.js 246 kB 246 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-Dz-0ZIBN.js 297 kB 297 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-VZsNmhG7.js 264 kB 264 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-B3VlzWCa.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-C_Tqin9v.js 3.18 kB 3.18 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 20 added / 20 removed

@huntcsg
Copy link
Contributor

huntcsg commented Dec 29, 2025

Is this particular composable only used in the upload model flow or is it intended to be general purpose?

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: 2

📜 Review details

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a87bd0e and 734775b.

📒 Files selected for processing (1)
  • src/platform/assets/composables/useModelTypes.ts
🧰 Additional context used
📓 Path-based instructions (11)
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/composables/useModelTypes.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/platform/assets/composables/useModelTypes.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/**/*.{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/composables/useModelTypes.ts
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/composables/useModelTypes.ts
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/assets/composables/useModelTypes.ts
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/composables/useModelTypes.ts
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,vue}: Use TypeScript exclusively; do not write new JavaScript code
Use sorted and grouped imports organized by plugin/source
Enforce ESLint rules including Vue + TypeScript rules, disallow floating promises, disallow unused imports, and restrict i18n raw text in templates
Do not use any type or as any type assertions; fix the underlying type issue instead
Write code that is expressive and self-documenting; avoid redundant comments and clean as you go
Keep functions short and functional; minimize nesting and follow the arrow anti-pattern
Avoid mutable state; prefer immutability and assignment at point of declaration
Use function declarations instead of function expressions when possible
Use es-toolkit for utility functions
Implement proper error handling in code

Files:

  • src/platform/assets/composables/useModelTypes.ts
**/**/use[A-Z]*.ts

📄 CodeRabbit inference engine (AGENTS.md)

Name composables using the pattern useXyz.ts

Files:

  • src/platform/assets/composables/useModelTypes.ts
**/*.{ts,tsx,vue,js,jsx,json,css}

📄 CodeRabbit inference engine (AGENTS.md)

Apply Prettier formatting with 2-space indentation, single quotes, no trailing semicolons, and 80-character line width

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Minimize the surface area (exported values) of each module and composable

Files:

  • src/platform/assets/composables/useModelTypes.ts
🧠 Learnings (5)
📚 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/**/*.{ts,tsx,vue} : Implement proper TypeScript types throughout the codebase

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
📚 Learning: 2025-12-09T03:39:54.501Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7169
File: src/platform/remote/comfyui/jobs/jobTypes.ts:1-107
Timestamp: 2025-12-09T03:39:54.501Z
Learning: In the ComfyUI_frontend project, Zod is on v3.x. Do not suggest Zod v4 standalone validators (z.uuid, z.ulid, z.cuid2, z.nanoid) until an upgrade to Zod 4 is performed. When reviewing TypeScript files (e.g., src/platform/remote/comfyui/jobs/jobTypes.ts) validate against Zod 3 capabilities and avoid introducing v4-specific features; flag any proposal to upgrade or incorporate v4-only validators and propose staying with compatible 3.x patterns.

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
📚 Learning: 2025-12-13T11:03:11.264Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7416
File: src/stores/imagePreviewStore.ts:5-7
Timestamp: 2025-12-13T11:03:11.264Z
Learning: In the ComfyUI_frontend repository, lint rules require keeping 'import type' statements separate from non-type imports, even if importing from the same module. Do not suggest consolidating them into a single import statement. Ensure type imports remain on their own line (import type { ... } from 'module') and regular imports stay on separate lines.

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
📚 Learning: 2025-12-17T00:40:09.635Z
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 7537
File: src/components/ui/button/Button.stories.ts:45-55
Timestamp: 2025-12-17T00:40:09.635Z
Learning: Prefer pure function declarations over function expressions (e.g., use function foo() { ... } instead of const foo = () => { ... }) for pure functions in the repository. Function declarations are more functional-leaning, offer better hoisting clarity, and can improve readability and tooling consistency. Apply this guideline across TypeScript files in Comfy-Org/ComfyUI_frontend, including story and UI component code, except where a function expression is semantically required (e.g., callbacks, higher-order functions with closures).

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
📚 Learning: 2025-12-11T12:25:15.470Z
Learnt from: christian-byrne
Repo: Comfy-Org/ComfyUI_frontend PR: 7358
File: src/components/dialog/content/signin/SignUpForm.vue:45-54
Timestamp: 2025-12-11T12:25:15.470Z
Learning: This repository uses CI automation to format code (pnpm format). Do not include manual formatting suggestions in code reviews for Comfy-Org/ComfyUI_frontend. If formatting issues are detected, rely on the CI formatter or re-run pnpm format. Focus reviews on correctness, readability, performance, accessibility, and maintainability rather than style formatting.

Applied to files:

  • src/platform/assets/composables/useModelTypes.ts
⏰ 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). (2)
  • GitHub Check: setup
  • GitHub Check: test
🔇 Additional comments (1)
src/platform/assets/composables/useModelTypes.ts (1)

56-61: No action needed. The filtering in the shared composable is correctly scoped to the Upload Model flow—useModelTypes is used only in UploadModelDialog.vue and UploadModelConfirmation.vue, both of which are part of the Upload Model flow. The implementation aligns with the stated PR scope.

Likely an incorrect or invalid review comment.

Comment on lines +56 to +61
.filter(
(folder) =>
!DISALLOWED_MODEL_TYPES.includes(
folder.name as (typeof DISALLOWED_MODEL_TYPES)[number]
)
)
Copy link
Contributor

@coderabbitai coderabbitai bot Dec 29, 2025

Choose a reason for hiding this comment

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

🧹 Nitpick | 🔵 Trivial

Type assertion can be removed after fixing the constant declaration.

The type assertion folder.name as (typeof DISALLOWED_MODEL_TYPES)[number] is a workaround for the type incompatibility caused by as const on line 40. Once that constant is typed as readonly string[], this simplifies to:

         .filter(
-          (folder) =>
-            !DISALLOWED_MODEL_TYPES.includes(
-              folder.name as (typeof DISALLOWED_MODEL_TYPES)[number]
-            )
+          (folder) => !DISALLOWED_MODEL_TYPES.includes(folder.name)
         )

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In src/platform/assets/composables/useModelTypes.ts around lines 56 to 61, the
explicit type assertion on folder.name is compensating for the constant being
declared with as const; change the DISALLOWED_MODEL_TYPES declaration (around
line 40) from using as const to a readonly string[] type (e.g. declare it as
const DISALLOWED_MODEL_TYPES: readonly string[] = [...]) so its element type is
string, then remove the unnecessary assertion in the filter and use folder.name
directly in the includes check.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd probably do a

type DisallowedModelType = (typeof DISALLOWED_MODEL_TYPES)[number]

to make this a little cleaner.

Copy link
Contributor

Choose a reason for hiding this comment

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

@DrJKL That's a nice approach! Creating the DisallowedModelType type alias keeps the benefits of as const (literal type inference for 'nlf') while making the type assertion much more readable and maintainable. It's cleaner than repeating (typeof DISALLOWED_MODEL_TYPES)[number] inline and also more self-documenting.

If more disallowed types are added in the future, the type alias would automatically expand to the union type (e.g., 'nlf' | 'other'), which is a nice bonus for type safety compared to just using readonly string[].


🧠 Learnings used
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-21T06:04:12.562Z
Learning: Applies to **/*.{ts,tsx,vue} : Do not use `any` type or `as any` type assertions; fix the underlying type issue instead

@DrJKL DrJKL assigned luke-mino-altherr and unassigned DrJKL Dec 30, 2025
@luke-mino-altherr luke-mino-altherr merged commit b13aca4 into main Dec 31, 2025
27 checks passed
@luke-mino-altherr luke-mino-altherr deleted the luke-mino-altherr/disallow-model-nlf-tag branch December 31, 2025 00:22
@luke-mino-altherr luke-mino-altherr added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch cloud/1.35 labels Jan 7, 2026
github-actions bot pushed a commit that referenced this pull request Jan 7, 2026
## Summary
Filters out the "nlf" (no-license-file) model type from the Upload Model
wizard's model type dropdown, preventing users from selecting this
internal category.

## Changes
- **What**: Added DISALLOWED_MODEL_TYPES constant and filter in
useModelTypes composable
- **Scope**: Only affects Upload Model flow (used by UploadModelDialog
and UploadModelConfirmation)

## Test plan
- [ ] Open Upload Model dialog and verify "nlf" does not appear in model
type dropdown
- [ ] Verify other model types still appear correctly
- [ ] Verify dropdown still functions as expected

🤖 Generated with [Claude Code](https://claude.com/claude-code)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7793-feat-Filter-out-nlf-model-type-from-Upload-Model-flow-2d86d73d3650811f88e1fcc8dd7040cd)
by [Unito](https://www.unito.io)

Co-authored-by: Claude <noreply@anthropic.com>
@comfy-pr-bot
Copy link
Member

@luke-mino-altherr Successfully backported to #7883

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Jan 7, 2026
@luke-mino-altherr luke-mino-altherr added cloud/1.36 Backport PRs for cloud 1.36 needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch labels Jan 8, 2026
github-actions bot pushed a commit that referenced this pull request Jan 8, 2026
## Summary
Filters out the "nlf" (no-license-file) model type from the Upload Model
wizard's model type dropdown, preventing users from selecting this
internal category.

## Changes
- **What**: Added DISALLOWED_MODEL_TYPES constant and filter in
useModelTypes composable
- **Scope**: Only affects Upload Model flow (used by UploadModelDialog
and UploadModelConfirmation)

## Test plan
- [ ] Open Upload Model dialog and verify "nlf" does not appear in model
type dropdown
- [ ] Verify other model types still appear correctly
- [ ] Verify dropdown still functions as expected

🤖 Generated with [Claude Code](https://claude.com/claude-code)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7793-feat-Filter-out-nlf-model-type-from-Upload-Model-flow-2d86d73d3650811f88e1fcc8dd7040cd)
by [Unito](https://www.unito.io)

Co-authored-by: Claude <noreply@anthropic.com>
@comfy-pr-bot
Copy link
Member

@luke-mino-altherr Successfully backported to #7886

@github-actions github-actions bot removed the needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch label Jan 8, 2026
luke-mino-altherr added a commit that referenced this pull request Jan 8, 2026
…del flow (#7886)

Backport of #7793 to `cloud/1.36`

Automatically created by backport workflow.

Co-authored-by: Luke Mino-Altherr <luke@comfy.org>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:models cloud/1.36 Backport PRs for cloud 1.36 enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants