🎥 Make videos programmatically with React
Reorder asset inspector actions
JonnyBurger867f50edcb72
diff --git a/packages/example/e2e/transcription-modal.test.mts b/packages/example/e2e/transcription-modal.test.mtsindex f69258cfaf..0c3d0ebbd9 100644--- a/packages/example/e2e/transcription-modal.test.mts+++ b/packages/example/e2e/transcription-modal.test.mts@@ -40,6 +40,15 @@ test.describe('transcription modal', () => {await video.click();await expect(transcribe).toBeVisible({timeout: 1_000});}).toPass({timeout: 30_000});+ const actions = page+ .getByText('Actions', {exact: true})+ .locator('xpath=following-sibling::div[1]');+ await expect(actions.getByRole('button')).toHaveText([+ /^Show in (Finder|File Explorer|File Manager)$/,+ 'Transcribe',+ 'Convert',+ 'Delete',+ ]);await transcribe.click();const dialog = page.getByRole('dialog');diff --git a/packages/studio/src/components/CurrentAsset.tsx b/packages/studio/src/components/CurrentAsset.tsxindex 8401663dc6..6bc2896982 100644--- a/packages/studio/src/components/CurrentAsset.tsx+++ b/packages/studio/src/components/CurrentAsset.tsx@@ -351,6 +351,17 @@ export const AssetInfo: React.FC<{) : null}<InspectorSectionHeader>Actions</InspectorSectionHeader><InspectorQuickActionsSection>+ {fileManagerAvailable ? (+ <InspectorQuickAction+ disabled={fileManagerDisabled}+ onClick={onShowInFileManager}+ renderIcon={(color) => (+ <ExpandedFolderIcon color={color} style={quickActionIconStyle} />+ )}+ >+ Show in {fileManagerName}+ </InspectorQuickAction>+ ) : null}{src ? (<InspectorQuickActiondisabled={mutationsDisabled}@@ -387,17 +398,6 @@ export const AssetInfo: React.FC<{</svg></InspectorQuickAction>) : null}- {fileManagerAvailable ? (- <InspectorQuickAction- disabled={fileManagerDisabled}- onClick={onShowInFileManager}- renderIcon={(color) => (- <ExpandedFolderIcon color={color} style={quickActionIconStyle} />- )}- >- Show in {fileManagerName}- </InspectorQuickAction>- ) : null}<InspectorQuickActiondisabled={mutationsDisabled}onClick={onDelete}