-
Notifications
You must be signed in to change notification settings - Fork 427
[feat] Add copy job ID action and shared asset utilities #6718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit introduces the copy job ID feature for media assets along with shared utility functions that will be used across multiple asset actions. Features: - Copy job ID to clipboard with OSS/Cloud compatibility - Uses useCopyToClipboard composable for consistent UX Shared Utilities: - assetTypeUtil: Extract asset type from tags - assetUrlUtil: Construct asset URLs for download/view - typeGuardUtil: Add isResultItemType type guard Refactoring: - Unified asset deletion logic with deleteAssetApi helper - Replaced inline URL construction with getAssetUrl utility - Improved error handling with Cloud-specific warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🎨 Storybook Build Status✅ Build completed successfully! ⏰ Completed at: 11/17/2025, 03:37:45 AM UTC 🔗 Links🎉 Your Storybook is ready for review! |
🎭 Playwright Test Results⏰ Completed at: 11/17/2025, 03:48:13 AM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
Bundle Size ReportSummary
Category Glance Per-category breakdownApp Entry Points — 2.98 MB (baseline 2.98 MB) • 🔴 +50 BMain entry bundles and manifests
Status: 3 added / 3 removed Graph Workspace — 803 kB (baseline 803 kB) • ⚪ 0 BGraph editor runtime, canvas, workflow orchestration
Status: 1 added / 1 removed Views & Navigation — 8.03 kB (baseline 8.03 kB) • ⚪ 0 BTop-level views, pages, and routed surfaces
Status: 1 added / 1 removed Panels & Settings — 307 kB (baseline 307 kB) • ⚪ 0 BConfiguration panels, inspectors, and settings screens
Status: 6 added / 6 removed UI Components — 210 kB (baseline 210 kB) • ⚪ 0 BReusable component library chunks
Status: 5 added / 5 removed Data & Services — 12.6 kB (baseline 12.6 kB) • ⚪ 0 BStores, services, APIs, and repositories
Status: 3 added / 3 removed Utilities & Hooks — 5.87 kB (baseline 5.87 kB) • ⚪ 0 BHelpers, composables, and utility bundles
Status: 1 added / 1 removed Vendor & Third-Party — 5.32 MB (baseline 5.32 MB) • ⚪ 0 BExternal libraries and shared vendor chunks
Status: 3 added / 3 removed Other — 3.92 MB (baseline 3.92 MB) • ⚪ 0 BBundles that do not match a named category
Status: 15 added / 15 removed |
Summary
This PR introduces the Copy Job ID feature for media assets along with shared utility functions that will be reused across multiple asset actions.
This is the first of three PRs that split the original #6696 into smaller, more reviewable changes.
Changes
Features
asset.idfirst, falls back to metadatauseCopyToClipboardcomposable for consistent UXShared Utilities
Created reusable utility functions:
assetTypeUtil.ts: Extract asset type from tags with fallbackassetUrlUtil.ts: Construct asset URLs for download/view endpointstypeGuardUtil.ts: AddedisResultItemTypetype guardRefactoring
deleteAssetApihelper functiongetAssetUrlutility (2 occurrences)Files Changed
src/platform/assets/composables/useMediaAssetActions.ts- Added copyJobId function + refactoringsrc/platform/assets/utils/assetTypeUtil.ts- New utility filesrc/platform/assets/utils/assetUrlUtil.ts- New utility filesrc/utils/typeGuardUtil.ts- Added type guardsrc/locales/en/main.json- Added i18n stringRelated PRs
Closes part of #6696
Test Plan
🤖 Generated with Claude Code
┆Issue is synchronized with this Notion page by Unito