diff --git a/apps/console/src/pages/organizations/Routes.tsx b/apps/console/src/pages/organizations/Routes.tsx index 382d48255..3f67c6cbd 100644 --- a/apps/console/src/pages/organizations/Routes.tsx +++ b/apps/console/src/pages/organizations/Routes.tsx @@ -5,16 +5,16 @@ import HomePage from "./HomePage"; import NoOrganizationLayout from "./NoOrganizationLayout"; import OrganizationLayout from "./OrganizationLayout"; import { SettingsPage } from "./SettingsPage"; -import { CreateFrameworkPage } from "./frameworks/CreateFrameworkPage"; +import { EditFrameworkPage } from "./frameworks/EditFrameworkPage"; import { FrameworkLayout } from "./frameworks/FrameworkLayout"; import { FrameworkListPage } from "./frameworks/FrameworkListPage"; import { FrameworkPage } from "./frameworks/FrameworkPage"; -import { EditFrameworkPage } from "./frameworks/EditFrameworkPage"; +import { NewFrameworkPage } from "./frameworks/NewFrameworkPage"; import { ControlPage } from "./frameworks/controls/ControlPage"; import { EditMitigationPage } from "./mitigations/EditMitigationPage"; import { MitigationListPage } from "./mitigations/MitigationListPage"; -import { NewMitigationPage } from "./mitigations/NewMitigationPage"; import { MitigationPage } from "./mitigations/MitigationPage"; +import { NewMitigationPage } from "./mitigations/NewMitigationPage"; import { CreatePeoplePage } from "./people/CreatePeoplePage"; import { PeopleListPage } from "./people/PeopleListPage"; import { PeoplePage } from "./people/PeoplePage"; @@ -38,7 +38,7 @@ export function OrganizationsRoutes() { } /> } /> } /> - } /> + } /> }> } /> diff --git a/apps/console/src/pages/organizations/frameworks/CreateFrameworkPage.tsx b/apps/console/src/pages/organizations/frameworks/NewFrameworkPage.tsx similarity index 69% rename from apps/console/src/pages/organizations/frameworks/CreateFrameworkPage.tsx rename to apps/console/src/pages/organizations/frameworks/NewFrameworkPage.tsx index 8ede37a9d..69702e76c 100644 --- a/apps/console/src/pages/organizations/frameworks/CreateFrameworkPage.tsx +++ b/apps/console/src/pages/organizations/frameworks/NewFrameworkPage.tsx @@ -4,9 +4,9 @@ import { lazy } from "@probo/react-lazy"; import { useLocation } from "react-router"; import { ErrorBoundaryWithLocation } from "../ErrorBoundary"; -const CreateFrameworkView = lazy(() => import("./CreateFrameworkView")); +const NewFrameworkView = lazy(() => import("./NewFrameworkView")); -export function CreateFrameworkViewSkeleton() { +export function NewFrameworkViewSkeleton() { return ( } - > + }> - + ); diff --git a/apps/console/src/pages/organizations/frameworks/CreateFrameworkView.tsx b/apps/console/src/pages/organizations/frameworks/NewFrameworkView.tsx similarity index 91% rename from apps/console/src/pages/organizations/frameworks/CreateFrameworkView.tsx rename to apps/console/src/pages/organizations/frameworks/NewFrameworkView.tsx index da50f6fd6..4a6c88a83 100644 --- a/apps/console/src/pages/organizations/frameworks/CreateFrameworkView.tsx +++ b/apps/console/src/pages/organizations/frameworks/NewFrameworkView.tsx @@ -9,12 +9,12 @@ import { Textarea } from "@/components/ui/textarea"; import { useToast } from "@/hooks/use-toast"; import { HelpCircle } from "lucide-react"; import { cn } from "@/lib/utils"; -import { CreateFrameworkViewCreateFrameworkMutation } from "./__generated__/CreateFrameworkViewCreateFrameworkMutation.graphql"; +import { NewFrameworkViewCreateFrameworkMutation } from "./__generated__/NewFrameworkViewCreateFrameworkMutation.graphql"; import { PageTemplate } from "@/components/PageTemplate"; -import { CreateFrameworkViewSkeleton } from "./CreateFrameworkPage"; +import { NewFrameworkViewSkeleton } from "./NewFrameworkPage"; const createFrameworkMutation = graphql` - mutation CreateFrameworkViewCreateFrameworkMutation( + mutation NewFrameworkViewCreateFrameworkMutation( $input: CreateFrameworkInput! $connections: [ID!]! ) { @@ -91,7 +91,7 @@ function EditableField({ ); } -function CreateFrameworkViewContent() { +function NewFrameworkViewContent() { const { organizationId } = useParams(); const navigate = useNavigate(); const { toast } = useToast(); @@ -101,7 +101,7 @@ function CreateFrameworkViewContent() { }); const [commit, isInFlight] = - useMutation( + useMutation( createFrameworkMutation ); @@ -210,10 +210,10 @@ function CreateFrameworkViewContent() { ); } -export default function CreateFrameworkView() { +export default function NewFrameworkView() { return ( - }> - + }> + ); } diff --git a/apps/console/src/pages/organizations/frameworks/__generated__/CreateFrameworkViewCreateFrameworkMutation.graphql.ts b/apps/console/src/pages/organizations/frameworks/__generated__/NewFrameworkViewCreateFrameworkMutation.graphql.ts similarity index 78% rename from apps/console/src/pages/organizations/frameworks/__generated__/CreateFrameworkViewCreateFrameworkMutation.graphql.ts rename to apps/console/src/pages/organizations/frameworks/__generated__/NewFrameworkViewCreateFrameworkMutation.graphql.ts index a49767e61..c2f6709d2 100644 --- a/apps/console/src/pages/organizations/frameworks/__generated__/CreateFrameworkViewCreateFrameworkMutation.graphql.ts +++ b/apps/console/src/pages/organizations/frameworks/__generated__/NewFrameworkViewCreateFrameworkMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<88977ec320d7f163cf378446f9eb7f6a>> * @lightSyntaxTransform * @nogrep */ @@ -14,11 +14,11 @@ export type CreateFrameworkInput = { name: string; organizationId: string; }; -export type CreateFrameworkViewCreateFrameworkMutation$variables = { +export type NewFrameworkViewCreateFrameworkMutation$variables = { connections: ReadonlyArray; input: CreateFrameworkInput; }; -export type CreateFrameworkViewCreateFrameworkMutation$data = { +export type NewFrameworkViewCreateFrameworkMutation$data = { readonly createFramework: { readonly frameworkEdge: { readonly node: { @@ -29,9 +29,9 @@ export type CreateFrameworkViewCreateFrameworkMutation$data = { }; }; }; -export type CreateFrameworkViewCreateFrameworkMutation = { - response: CreateFrameworkViewCreateFrameworkMutation$data; - variables: CreateFrameworkViewCreateFrameworkMutation$variables; +export type NewFrameworkViewCreateFrameworkMutation = { + response: NewFrameworkViewCreateFrameworkMutation$data; + variables: NewFrameworkViewCreateFrameworkMutation$variables; }; const node: ConcreteRequest = (function(){ @@ -103,7 +103,7 @@ return { ], "kind": "Fragment", "metadata": null, - "name": "CreateFrameworkViewCreateFrameworkMutation", + "name": "NewFrameworkViewCreateFrameworkMutation", "selections": [ { "alias": null, @@ -128,7 +128,7 @@ return { (v0/*: any*/) ], "kind": "Operation", - "name": "CreateFrameworkViewCreateFrameworkMutation", + "name": "NewFrameworkViewCreateFrameworkMutation", "selections": [ { "alias": null, @@ -161,16 +161,16 @@ return { ] }, "params": { - "cacheID": "7502bf40a1731a4b7fd1a019ac438b39", + "cacheID": "5b039fa77c4cfe00ce1001680520d9a9", "id": null, "metadata": {}, - "name": "CreateFrameworkViewCreateFrameworkMutation", + "name": "NewFrameworkViewCreateFrameworkMutation", "operationKind": "mutation", - "text": "mutation CreateFrameworkViewCreateFrameworkMutation(\n $input: CreateFrameworkInput!\n) {\n createFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n description\n }\n }\n }\n}\n" + "text": "mutation NewFrameworkViewCreateFrameworkMutation(\n $input: CreateFrameworkInput!\n) {\n createFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n description\n }\n }\n }\n}\n" } }; })(); -(node as any).hash = "cb800b9880232714d34698beb7bf8d84"; +(node as any).hash = "acf050994ea381c40d642a8d21e5bf98"; export default node;