From b38fab4f6693ac8b7f4f4f7fbbb031a91c876387 Mon Sep 17 00:00:00 2001 From: dante01yoon Date: Tue, 19 May 2026 18:07:40 +0900 Subject: [PATCH] refactor(assets): remove isCloud forks in assetsStore + delete legacy fetcher FE-730 (L1.3). Both Cloud and OSS will serve /api/assets post-BE-786, so assetsStore collapses to a single asset-API code path. - Drop fetchInputFilesFromAPI (legacy /files/input caller); rename fetchInputFilesFromCloud to fetchInputFiles. - Remove the isCloud ternary on the input fetcher swap. - Unwrap getModelState()'s if(isCloud) body and delete its OSS no-op return object; the model pagination subsystem now runs unconditionally. - Drop now-dead isCloud + mapInputFileToAssetItem imports. - Delete mapInputFileToAssetItem + stripDirectoryAnnotation from assetMappers.ts (no remaining callers in src/); delete its test file. - Simplify assetsStore.test.ts: hardcode the distribution mock to isCloud: true, drop the mockIsCloud toggle helper and the dead mapper mock, rename the now-unconditional "(Cloud)" describe blocks. Blocked-merge by BE-786 (OSS --enable-assets removal) + FE-729 (isAssetAPIEnabled deletion). Opened as a Draft on the FE-729 stack. Auto-fixed unrelated tailwind class-order lint errors in five files via pnpm lint:fix to keep CI green. --- src/components/common/VirtualGrid.vue | 2 +- .../rightSidePanel/RightSidePanel.vue | 2 +- src/components/ui/textarea/Textarea.vue | 2 +- .../components/modelInfo/ModelInfoPanel.vue | 2 +- .../composables/media/assetMappers.test.ts | 55 -- .../assets/composables/media/assetMappers.ts | 41 - .../components/WidgetSelectDefault.vue | 2 +- src/stores/assetsStore.test.ts | 83 +- src/stores/assetsStore.ts | 779 ++++++++---------- 9 files changed, 398 insertions(+), 570 deletions(-) delete mode 100644 src/platform/assets/composables/media/assetMappers.test.ts diff --git a/src/components/common/VirtualGrid.vue b/src/components/common/VirtualGrid.vue index 97e568af07..a3858e2110 100644 --- a/src/components/common/VirtualGrid.vue +++ b/src/components/common/VirtualGrid.vue @@ -1,7 +1,7 @@