Files
ComfyUI_frontend/CODEOWNERS
Line: 2: incorrect codeowner user: benceruleanlu Line: 2: no users/groups matched Line: 3: incorrect codeowner user: benceruleanlu Line: 3: no users/groups matched Line: 4: incorrect codeowner user: benceruleanlu Line: 4: no users/groups matched Line: 5: incorrect codeowner user: benceruleanlu Line: 5: no users/groups matched Line: 8: incorrect codeowner user: viva-jinyi Line: 8: no users/groups matched Line: 9: incorrect codeowner user: viva-jinyi Line: 9: no users/groups matched Line: 10: incorrect codeowner user: viva-jinyi Line: 10: no users/groups matched Line: 11: incorrect codeowner user: viva-jinyi Line: 11: no users/groups matched Line: 14: incorrect codeowner user: pythongosssss Line: 14: no users/groups matched Line: 17: incorrect codeowner user: pythongosssss Line: 17: no users/groups matched Line: 20: incorrect codeowner user: pythongosssss Line: 20: no users/groups matched Line: 23: incorrect codeowner user: benceruleanlu Line: 23: no users/groups matched Line: 26: incorrect codeowner user: jojodecayz Line: 26: incorrect codeowner user: bigcat88 Line: 26: no users/groups matched Line: 29: incorrect codeowner user: benceruleanlu Line: 29: no users/groups matched Line: 30: incorrect codeowner user: benceruleanlu Line: 30: no users/groups matched Line: 31: incorrect codeowner user: benceruleanlu Line: 31: no users/groups matched Line: 34: incorrect codeowner user: Myestery Line: 34: no users/groups matched Line: 37: incorrect codeowner user: jtydhr88 Line: 37: incorrect codeowner user: Myestery Line: 37: no users/groups matched Line: 40: incorrect codeowner user: Myestery Line: 40: incorrect codeowner user: christian-byrne Line: 40: incorrect codeowner user: comfyui-wiki Line: 40: no users/groups matched Line: 41: incorrect codeowner user: Myestery Line: 41: incorrect codeowner user: christian-byrne Line: 41: incorrect codeowner user: comfyui-wiki Line: 41: no users/groups matched Line: 44: incorrect codeowner user: trsommer Line: 44: incorrect codeowner user: brucew4yn3rp Line: 44: no users/groups matched Line: 45: incorrect codeowner user: trsommer Line: 45: incorrect codeowner user: brucew4yn3rp Line: 45: no users/groups matched Line: 48: incorrect codeowner user: jtydhr88 Line: 48: no users/groups matched Line: 49: incorrect codeowner user: jtydhr88 Line: 49: no users/groups matched Line: 52: incorrect codeowner user: viva-jinyi Line: 52: incorrect codeowner user: christian-byrne Line: 52: incorrect codeowner user: ltdrdata Line: 52: no users/groups matched Line: 55: incorrect codeowner user: deepme987 Line: 55: no users/groups matched Line: 58: incorrect format Line: 59: incorrect format Line: 60: incorrect format Line: 61: incorrect format Line: 62: incorrect format
Deep Mehta 9a5ee462f1 refactor: extract model-to-node mappings into separate data file (#10237)
## Summary
- Extract all 75 `quickRegister()` mapping entries from
`modelToNodeStore.ts` into a new `modelNodeMappings.ts` constants file
- The store now iterates over the `MODEL_NODE_MAPPINGS` array instead of
having inline calls
- **Zero behavioral change** — same mappings, same order, same runtime
behavior

## Motivation
Adding new model-to-node mappings is currently a code change to the
store. By separating the data into its own file:
- New mappings are a **pure data change** (append a tuple to an array)
- The data file can have its own CODEOWNERS entry, so mapping PRs can be
merged without requiring frontend team review
- Easier to audit — all mappings visible in one place without
interleaved store logic

### Before
```ts
// 250+ lines of quickRegister() calls mixed into store logic
quickRegister('checkpoints', 'CheckpointLoaderSimple', 'ckpt_name')
quickRegister('checkpoints', 'ImageOnlyCheckpointLoader', 'ckpt_name')
// ... 73 more
```

### After
```ts
// modelNodeMappings.ts — pure data
export const MODEL_NODE_MAPPINGS = [
  ['checkpoints', 'CheckpointLoaderSimple', 'ckpt_name'],
  ['checkpoints', 'ImageOnlyCheckpointLoader', 'ckpt_name'],
  // ...
]

// modelToNodeStore.ts — just iterates
for (const [modelType, nodeClass, key] of MODEL_NODE_MAPPINGS) {
  quickRegister(modelType, nodeClass, key)
}
```

## Test plan
- [ ] "Use" button in model browser still works for all model types
- [ ] No regressions in model-to-node resolution (same mappings, same
order)

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

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10237-refactor-extract-model-to-node-mappings-into-separate-data-file-3276d73d365081988656e2ddae772bbc)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Alexander Brown <drjkl@comfy.org>
Co-authored-by: GitHub Action <action@github.com>
2026-03-23 13:26:42 -07:00

63 lines
2.1 KiB
Plaintext

# Desktop/Electron
/apps/desktop-ui/ @benceruleanlu
/src/stores/electronDownloadStore.ts @benceruleanlu
/src/extensions/core/electronAdapter.ts @benceruleanlu
/vite.electron.config.mts @benceruleanlu
# Common UI Components
/src/components/chip/ @viva-jinyi
/src/components/card/ @viva-jinyi
/src/components/button/ @viva-jinyi
/src/components/input/ @viva-jinyi
# Topbar
/src/components/topbar/ @pythongosssss
# Thumbnail
/src/renderer/core/thumbnail/ @pythongosssss
# Legacy UI
/scripts/ui/ @pythongosssss
# Link rendering
/src/renderer/core/canvas/links/ @benceruleanlu
# Partner Nodes
/src/composables/node/useNodePricing.ts @jojodecayz @bigcat88
# Node help system
/src/utils/nodeHelpUtil.ts @benceruleanlu
/src/stores/workspace/nodeHelpStore.ts @benceruleanlu
/src/services/nodeHelpService.ts @benceruleanlu
# Selection toolbox
/src/components/graph/selectionToolbox/ @Myestery
# Minimap
/src/renderer/extensions/minimap/ @jtydhr88 @Myestery
# Workflow Templates
/src/platform/workflow/templates/ @Myestery @christian-byrne @comfyui-wiki
/src/components/templates/ @Myestery @christian-byrne @comfyui-wiki
# Mask Editor
/src/extensions/core/maskeditor.ts @trsommer @brucew4yn3rp
/src/extensions/core/maskEditorLayerFilenames.ts @trsommer @brucew4yn3rp
# 3D
/src/extensions/core/load3d.ts @jtydhr88
/src/components/load3d/ @jtydhr88
# Manager
/src/workbench/extensions/manager/ @viva-jinyi @christian-byrne @ltdrdata
# Model-to-node mappings (cloud team)
/src/platform/assets/mappings/ @deepme987
# LLM Instructions (blank on purpose)
.claude/
.cursor/
.cursorrules
**/AGENTS.md
**/CLAUDE.md