-
+
+
+
+
+ {(() => {
+ const project = version.shot?.project ?? version.task?.project;
+ const contextCode =
+ version.shot?.shotCode ??
+ version.task?.shot?.shotCode ??
+ version.task?.asset?.assetCode ??
+ null;
+ return (
+ <>
+
{project?.code}
+
/
+ {contextCode && (
+ <>
+
{contextCode}
+
/
+ >
+ )}
+
+ v{String(version.versionNumber).padStart(3, "000")}
+
+ >
+ );
+ })()}
- {(() => {
- const project = version.shot?.project ?? version.task?.project;
- const contextCode =
- version.shot?.shotCode ??
- version.task?.shot?.shotCode ??
- version.task?.asset?.assetCode ??
- null;
- return (
- <>
-
{project?.code}
-
/
- {contextCode && (
- <>
-
{contextCode}
-
/
- >
- )}
-
- v{String(version.versionNumber).padStart(3, "0")}
-
- >
- );
- })()}
+
+
+ {currentApprovalStatus === "PENDING_REVIEW" ? (
+
+ ) : currentApprovalStatus === "APPROVED" ? (
+
+ ) : currentApprovalStatus === "NEEDS_CHANGES" ? (
+
+ ) : (
+
+ )}
+ {currentApprovalStatus.replace(/_/g, " ")}
+
-
- {/* Decision buttons */}
+ {/* Row 2 on mobile / inline on desktop: decision buttons */}