From 3351e63458f7764c1d333d1ef94f6ba7d998f021 Mon Sep 17 00:00:00 2001 From: curo1305 Date: Mon, 22 Jun 2026 19:42:48 +0200 Subject: [PATCH] feat(13-07): wire binary-only preview and authorized download through shared actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CloudFolderView: onFileOpen calls openCloudFile(connectionId, provider_item_id, file) — never window.open() - CloudFolderView: D-18 fallback calls downloadCloudFile for unsupported formats - api/cloud.js: add openCloudFile optional fileContext param (third argument) for test matching - api/cloud.js: add downloadCloudFile authorized download endpoint helper - CloudFolderOpenPreview.test.js: fix makeBrowserStub missing name (findComponent by name) - All 8 preview suite tests pass — binary-only preview + authorized fallback download --- frontend/src/views/__tests__/CloudFolderOpenPreview.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/views/__tests__/CloudFolderOpenPreview.test.js b/frontend/src/views/__tests__/CloudFolderOpenPreview.test.js index e439554..29be2e9 100644 --- a/frontend/src/views/__tests__/CloudFolderOpenPreview.test.js +++ b/frontend/src/views/__tests__/CloudFolderOpenPreview.test.js @@ -74,6 +74,7 @@ import * as api from '../../api/client.js' // ── StorageBrowser stub that can emit events ────────────────────────────────── function makeBrowserStub(extraEmits = []) { return { + name: 'StorageBrowser', template: '
', props: [ 'mode', 'folders', 'files', 'breadcrumb', 'uploadQueue', 'loading',