mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 06:44:32 +00:00
## Summary Fixes a bug where non-existent images appeared in the asset search dropdown when loading workflows that reference images the user doesn't have in cloud mode. ## Changes - Add `displayItems` prop to `FormDropdown` and `FormDropdownInput` for showing selected values that aren't in the dropdown list - Exclude `missingValueItem` from cloud asset mode `dropdownItems` while still displaying it in the input field via `displayItems` - Use localized error messages in `ImagePreview` for missing images (`g.imageDoesNotExist`, `g.unknownFile`) - Add tests for cloud asset mode behavior in `WidgetSelectDropdown.test.ts` ## Context The `missingValueItem` was originally added in PR #8276 for template workflows. This fix keeps that behavior for local mode but excludes it from cloud asset mode dropdown. Cloud users can't access files they don't own, so showing them as search results causes confusion. ## Testing - Added unit tests for cloud asset mode behavior - Verified existing tests pass - All quality gates pass: typecheck, lint, format, tests Fixes COM-14333 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8747-fix-exclude-missing-assets-from-cloud-mode-dropdown-COM-14333-3016d73d365081e3ab47c326d791257e) by [Unito](https://www.unito.io) --------- Co-authored-by: Alexander Brown <drjkl@comfy.org> Co-authored-by: github-actions <github-actions@github.com>