+
+
+
+ {filename}
+
+ (Read Only)
- ) : (
-
{compactButton}
- )}
- {shouldRenderInlineCode && (
-
-
-
-
+
+
+
);
diff --git a/src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskOverview/TaskOverview.tsx b/src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskOverview/TaskOverview.tsx
index ad15f23ef..d724fd675 100644
--- a/src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskOverview/TaskOverview.tsx
+++ b/src/components/shared/ReactFlow/FlowCanvas/TaskNode/TaskOverview/TaskOverview.tsx
@@ -8,13 +8,11 @@ import {
import type { TooltipButtonProps } from "@/components/shared/Buttons/TooltipButton";
import TooltipButton from "@/components/shared/Buttons/TooltipButton";
+import { ViewYamlButton } from "@/components/shared/Buttons/ViewYamlButton";
import { ComponentDetailsDialog } from "@/components/shared/Dialogs";
import { ComponentFavoriteToggle } from "@/components/shared/FavoriteComponentToggle";
import { StatusIcon } from "@/components/shared/Status";
-import {
- TaskDetails,
- TaskImplementation,
-} from "@/components/shared/TaskDetails";
+import { TaskDetails } from "@/components/shared/TaskDetails";
import { Icon } from "@/components/ui/icon";
import { BlockStack, InlineStack } from "@/components/ui/layout";
import { Separator } from "@/components/ui/separator";
@@ -66,12 +64,7 @@ const TaskOverview = ({ taskNode, actions }: TaskOverviewProps) => {
...(actions?.map((action) => (
)) ?? []),
-
,
+
,
];
return (
diff --git a/src/components/shared/TaskDetails/Implementation.tsx b/src/components/shared/TaskDetails/Implementation.tsx
index 1360ad0ab..ac84b132e 100644
--- a/src/components/shared/TaskDetails/Implementation.tsx
+++ b/src/components/shared/TaskDetails/Implementation.tsx
@@ -9,7 +9,8 @@ interface TaskImplementationProps {
displayName: string;
componentRef?: ComponentReference;
componentSpec?: ComponentSpec;
- showInlineContent?: boolean;
+ fullscreen?: boolean;
+ onClose?: () => void;
}
const TaskImplementation = withSuspenseWrapper(
@@ -17,14 +18,16 @@ const TaskImplementation = withSuspenseWrapper(
displayName,
componentRef,
componentSpec,
- showInlineContent = true,
+ fullscreen,
+ onClose,
}: TaskImplementationProps) => {
if (componentRef) {
return (
);
}
@@ -34,7 +37,8 @@ const TaskImplementation = withSuspenseWrapper(
);
}
@@ -51,8 +55,9 @@ const ComponentRefCodeViewer = withSuspenseWrapper(
({
componentRef,
displayName,
- showInlineContent = true,
- }: Pick
& {
+ fullscreen,
+ onClose,
+ }: Omit & {
componentRef: ComponentReference;
}) => {
const hydratedComponentRef = useHydrateComponentReference(componentRef);
@@ -66,7 +71,8 @@ const ComponentRefCodeViewer = withSuspenseWrapper(
code={hydratedComponentRef.text}
language="yaml"
filename={displayName}
- showInlineContent={showInlineContent}
+ fullscreen={fullscreen}
+ onClose={onClose}
/>
);
},
@@ -75,8 +81,9 @@ const ComponentRefCodeViewer = withSuspenseWrapper(
const ComponentSpecCodeViewer = ({
componentSpec,
displayName,
- showInlineContent = true,
-}: Pick & {
+ fullscreen,
+ onClose,
+}: Omit & {
componentSpec: ComponentSpec;
}) => {
const code = componentSpecToText(componentSpec);
@@ -86,7 +93,8 @@ const ComponentSpecCodeViewer = ({
code={code}
language="yaml"
filename={displayName}
- showInlineContent={showInlineContent}
+ fullscreen={fullscreen}
+ onClose={onClose}
/>
);
};