Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { Skeleton } from "@ctrlplane/ui/skeleton";
import { Table, TableBody, TableCell } from "@ctrlplane/ui/table";
import { failedStatuses, JobStatus } from "@ctrlplane/validators/jobs";

import { OverrideJobStatusDialog } from "~/app/[workspaceSlug]/(app)/_components/job/JobDropdownMenu";
import { OverrideJobStatusDialog } from "~/app/[workspaceSlug]/(app)/_components/job/OverrideJobStatusDialog";
import { ForceDeployVersionDialog } from "~/app/[workspaceSlug]/(app)/(deploy)/_components/deployment-version/ForceDeployVersion";
import { RedeployVersionDialog } from "~/app/[workspaceSlug]/(app)/(deploy)/_components/deployment-version/RedeployVersionDialog";
import { Sidebars } from "~/app/[workspaceSlug]/sidebars";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
import { TableCell, TableRow } from "@ctrlplane/ui/table";
import { toast } from "@ctrlplane/ui/toast";

import { OverrideJobStatusDialog } from "~/app/[workspaceSlug]/(app)/_components/job/JobDropdownMenu";
import { JobTableStatusIcon } from "~/app/[workspaceSlug]/(app)/_components/job/JobTableStatusIcon";
import { OverrideJobStatusDialog } from "~/app/[workspaceSlug]/(app)/_components/job/OverrideJobStatusDialog";
import { ForceDeployVersionDialog } from "~/app/[workspaceSlug]/(app)/(deploy)/_components/deployment-version/ForceDeployVersion";
import { RedeployVersionDialog } from "~/app/[workspaceSlug]/(app)/(deploy)/_components/deployment-version/RedeployVersionDialog";
import { api } from "~/trpc/react";
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import ReactFlow, {
import colors from "tailwindcss/colors";
import { isPresent } from "ts-is-present";

import { useEnvironmentDrawer } from "~/app/[workspaceSlug]/(app)/_components/environment/drawer/EnvironmentDrawer";
import { useEnvironmentPolicyDrawer } from "~/app/[workspaceSlug]/(app)/_components/policy/drawer/EnvironmentPolicyDrawer";
import { ArrowEdge } from "~/app/[workspaceSlug]/(app)/_components/reactflow/ArrowEdge";
import {
createEdgesFromPolicyDeployment,
Expand Down Expand Up @@ -239,9 +237,6 @@ export const EnvFlowBuilder: React.FC<{
setOpen,
]);

const { setEnvironmentId } = useEnvironmentDrawer();
const { setEnvironmentPolicyId } = useEnvironmentPolicyDrawer();

return (
<ReactFlow
nodes={nodes}
Expand All @@ -260,11 +255,7 @@ export const EnvFlowBuilder: React.FC<{
fitView
nodesDraggable
proOptions={{ hideAttribution: true }}
onNodeClick={(_, node) => {
if (node.type === NodeType.Environment) setEnvironmentId(node.id);
if (node.type === NodeType.Policy) setEnvironmentPolicyId(node.id);
setSelectedNodeId(node.id);
}}
onNodeClick={(_, node) => setSelectedNodeId(node.id)}
onEdgeClick={(_, edge) => {
onEdgeClick(edge);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import { Input } from "@ctrlplane/ui/input";
import { Separator } from "@ctrlplane/ui/separator";
import { Textarea } from "@ctrlplane/ui/textarea";

import { useEnvironmentDrawer } from "~/app/[workspaceSlug]/(app)/_components/environment/drawer/EnvironmentDrawer";
import { api } from "~/trpc/react";
import { DeleteNodeDialog, useDeleteNodeDialog } from "./DeleteNodeDialog";
import { useHandleEdgeDelete } from "./edges";
Expand Down Expand Up @@ -66,7 +65,6 @@ const AddEnvironmentButton: React.FC<{

const { addNodes, addEdges } = useReactFlow();
const { x, y } = useViewport();
const { setEnvironmentId } = useEnvironmentDrawer();
const onSubmit = form.handleSubmit(async (values) => {
setOpen(false);

Expand All @@ -89,7 +87,6 @@ const AddEnvironmentButton: React.FC<{
color: colors.neutral[700],
},
});
setEnvironmentId(env.id);
window.requestAnimationFrame(() => setSelectedNodeId(env.id));
form.reset();
});
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading