From 84f8a8ef496c2cc8bd3dcb974c3c5bd706290e4b Mon Sep 17 00:00:00 2001 From: Vibhoothi Date: Sat, 16 Dec 2023 21:38:32 -0800 Subject: [PATCH 1/4] www/App: Disable AWS buttons in the frontend We do not use them, so why not --- www/src/App.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/src/App.tsx b/www/src/App.tsx index f947de3..d8280dc 100644 --- a/www/src/App.tsx +++ b/www/src/App.tsx @@ -79,11 +79,11 @@ export class App extends React.Component<{}, void> { , - -
- -
-
, +// +//
+// +//
+//
,
From 525cdbc95b769dbd3de636c157c90987f8732146 Mon Sep 17 00:00:00 2001 From: Vibhoothi Date: Sun, 17 Dec 2023 09:16:13 -0800 Subject: [PATCH 2/4] www/Report: Only display analyzer links for AV1 Cause we do not support others --- www/src/components/Report.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/src/components/Report.tsx b/www/src/components/Report.tsx index 0bdecda..45e4294 100644 --- a/www/src/components/Report.tsx +++ b/www/src/components/Report.tsx @@ -192,6 +192,20 @@ export class AnalyzerLinksComponent extends React.Component<{ let report = this.props.jobs[0].report; let videoRows = []; let videos = []; + // As the Web analyzer is only made for AV1, check the codec and then + // display the analyzer links, so users do not get confused + let analyzer_codecs = ['rav1e', 'svt-av1', 'av1']; + + function isCodecMatch(job: Job): boolean { + return analyzer_codecs.some(codec => job.codec.includes(codec)); + } + + let areAllMatches = jobs.every(isCodecMatch); + if (areAllMatches == false) { + return +

Currently AWCY supports only AV1 for web analyzer

+
+ } for (let video in report) { if (video != "Total") { From 58be1acf43027fea7baa39bb68f68240661256a1 Mon Sep 17 00:00:00 2001 From: Vibhoothi Date: Sun, 17 Dec 2023 09:17:03 -0800 Subject: [PATCH 3/4] www/SubmitJobForm: Omit Arch options in the UI We do not support the arch switch yet, so do not have it in UI --- www/src/components/SubmitJobForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/src/components/SubmitJobForm.tsx b/www/src/components/SubmitJobForm.tsx index a4032b8..0e0bb0e 100644 --- a/www/src/components/SubmitJobForm.tsx +++ b/www/src/components/SubmitJobForm.tsx @@ -320,11 +320,12 @@ export class SubmitJobFormComponent extends React.Component<{ - + {/* Architecture