🎥 Make videos programmatically with React
report
Jonny Burgere7daba7abdaf
diff --git a/packages/convert/app/components/get-supported-configs.tsx b/packages/convert/app/components/get-supported-configs.tsxindex d236af94e5..905292ac16 100644--- a/packages/convert/app/components/get-supported-configs.tsx+++ b/packages/convert/app/components/get-supported-configs.tsx@@ -72,6 +72,10 @@ const shouldPrioritizeVideoCopyOverReencode = (routeAction: RouteAction) => {return false;}+ if (routeAction.type === 'report') {+ return false;+ }+throw new Error('Unsupported route action' + (routeAction satisfies never));};diff --git a/packages/convert/app/components/guess-codec-from-source.ts b/packages/convert/app/components/guess-codec-from-source.tsindex ed361fdf98..c1d8510498 100644--- a/packages/convert/app/components/guess-codec-from-source.ts+++ b/packages/convert/app/components/guess-codec-from-source.ts@@ -78,6 +78,10 @@ const shouldKeepSameContainerByDefault = (action: RouteAction) => {return true;}+ if (action.type === 'report') {+ return true;+ }+throw new Error(`Unhandled action type: ${action satisfies never}`);};diff --git a/packages/convert/app/lib/default-ui.ts b/packages/convert/app/lib/default-ui.tsindex 30b0b49540..db9ddece77 100644--- a/packages/convert/app/lib/default-ui.ts+++ b/packages/convert/app/lib/default-ui.ts@@ -41,6 +41,10 @@ export const defaultRotateOrMirorState = (return null;}+ if (action.type === 'report') {+ return null;+ }+throw new Error('Rotate is not enabled by default ' + (action satisfies never),);@@ -83,6 +87,10 @@ export const isConvertEnabledByDefault = (action: RouteAction) => {return true;}+ if (action.type === 'report') {+ return true;+ }+throw new Error('Convert is not enabled by default ' + (action satisfies never),);@@ -129,7 +137,11 @@ export const getOrderOfSections = (};}- if (action.type === 'generic-resize' || action.type === 'resize-format') {+ if (+ action.type === 'generic-resize' ||+ action.type === 'resize-format' ||+ action.type === 'report'+ ) {return {resize: 0,rotate: 1,diff --git a/packages/docs/copy-convert.ts b/packages/docs/copy-convert.tsindex 4ab2ebcda8..14226539e8 100644--- a/packages/docs/copy-convert.ts+++ b/packages/docs/copy-convert.ts@@ -86,6 +86,10 @@ extraPages.push({type: 'generic-resize',});+extraPages.push({+ type: 'report',+});+for (const page of extraPages) {const slug = seo.makeSlug(page);const pageTitle = seo.getPageTitle(page);