Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: fixed all ts url errors

=48ac6b4affa5
diff --git a/frontend/src/components/navigation/NavHeader.tsx b/frontend/src/components/navigation/NavHeader.tsx
index 99f5fbdd28..ba25fd8473 100644
--- a/frontend/src/components/navigation/NavHeader.tsx
+++ b/frontend/src/components/navigation/NavHeader.tsx
@@ -93,7 +93,7 @@ export default function NavHeader({
<FontAwesomeIcon icon={faAngleRight} className="ml-3 mr-3 text-sm text-gray-400" />
{pageName === "Secrets" ? (
<Link
- to={`/${ProjectType.SecretManager}/$projectId/overview` as const}
+ to="/projects/$projectId/secret-manager/overview"
params={{ projectId: currentWorkspace.id }}
className="text-sm font-semibold text-primary/80 hover:text-primary"
>
@@ -129,7 +129,7 @@ export default function NavHeader({
<div className="flex items-center space-x-3">
<FontAwesomeIcon icon={faAngleRight} className="ml-3 mr-1.5 text-xs text-gray-400" />
<Link
- to={`/${ProjectType.SecretManager}/$projectId/secrets/$envSlug` as const}
+ to={`/projects/$projectId/${ProjectType.SecretManager}/secrets/$envSlug` as const}
params={{ projectId: currentWorkspace.id, envSlug: routerEnvSlug }}
className="text-sm font-semibold text-primary/80 hover:text-primary"
>
@@ -191,7 +191,7 @@ export default function NavHeader({
</div>
) : (
<Link
- to={`/${ProjectType.SecretManager}/$projectId/secrets/$envSlug` as const}
+ to={`/projects/$projectId/${ProjectType.SecretManager}/secrets/$envSlug` as const}
params={{
projectId: currentWorkspace.id,
envSlug: routerEnvSlug || ""
diff --git a/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx b/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
index 31a6268662..15a1eb7bdb 100644
--- a/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
+++ b/frontend/src/components/navigation/SecretDashboardPathBreadcrumb.tsx
@@ -70,7 +70,7 @@ export const SecretDashboardPathBreadcrumb = ({
</div>
) : (
<Link
- to={`/${ProjectType.SecretManager}/$projectId/secrets/$envSlug` as const}
+ to={`/projects/$projectId/${ProjectType.SecretManager}/secrets/$envSlug` as const}
params={{
projectId,
envSlug: environmentSlug
diff --git a/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx b/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
index d4564ab6f4..23c3fe6a53 100644
--- a/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
+++ b/frontend/src/components/organization/CreateOrgModal/CreateOrgModal.tsx
@@ -7,7 +7,6 @@ import z from "zod";
import { createNotification } from "@app/components/notifications";
import { Button, FormControl, Input, Modal, ModalContent } from "@app/components/v2";
import { useCreateOrg, useSelectOrganization } from "@app/hooks/api";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { GenericResourceNameSchema } from "@app/lib/schemas";
const schema = z
diff --git a/frontend/src/components/projects/NewProjectModal.tsx b/frontend/src/components/projects/NewProjectModal.tsx
index b47a251c3f..f64b64a21a 100644
--- a/frontend/src/components/projects/NewProjectModal.tsx
+++ b/frontend/src/components/projects/NewProjectModal.tsx
@@ -120,7 +120,7 @@ const NewProjectForm = ({ onOpenChange }: NewProjectFormProps) => {
createNotification({ text: "Project created", type: "success" });
reset();
onOpenChange(false);
- navigate({ to: getProjectHomePage(project), params: { projectId: project.id } });
+ navigate({ to: getProjectHomePage(project.defaultType), params: { projectId: project.id } });
} catch (err) {
console.error(err);
createNotification({ text: "Failed to create project", type: "error" });
diff --git a/frontend/src/components/utilities/ShouldWrapComponent.tsx b/frontend/src/components/utilities/ShouldWrapComponent.tsx
index f6503d35df..25f5d16597 100644
--- a/frontend/src/components/utilities/ShouldWrapComponent.tsx
+++ b/frontend/src/components/utilities/ShouldWrapComponent.tsx
@@ -1,4 +1,4 @@
-import { ReactNode, ComponentType } from "react";
+import { ComponentType, ReactNode } from "react";
type ShouldWrapProps<T extends Record<string, any>> = {
children: ReactNode;
diff --git a/frontend/src/components/v2/index.tsx b/frontend/src/components/v2/index.tsx
index 202e5ecf8b..1256cf0055 100644
--- a/frontend/src/components/v2/index.tsx
+++ b/frontend/src/components/v2/index.tsx
@@ -8,9 +8,9 @@ export * from "./Card";
export * from "./Checkbox";
export * from "./ConfirmActionModal";
export * from "./ContentLoader";
-export * from "./Divider";
export * from "./DatePicker";
export * from "./DeleteActionModal";
+export * from "./Divider";
export * from "./Drawer";
export * from "./Dropdown";
export * from "./Editor";
diff --git a/frontend/src/helpers/project.ts b/frontend/src/helpers/project.ts
index bc5f844f7d..e75bb63dea 100644
--- a/frontend/src/helpers/project.ts
+++ b/frontend/src/helpers/project.ts
@@ -1,6 +1,6 @@
import { apiRequest } from "@app/config/request";
import { createWorkspace } from "@app/hooks/api/workspace/queries";
-import { ProjectType, Workspace } from "@app/hooks/api/workspace/types";
+import { ProjectType } from "@app/hooks/api/workspace/types";
const secretsToBeAdded = [
{
diff --git a/frontend/src/hooks/api/identities/types.ts b/frontend/src/hooks/api/identities/types.ts
index 1af1cc24c0..b233738d8f 100644
--- a/frontend/src/hooks/api/identities/types.ts
+++ b/frontend/src/hooks/api/identities/types.ts
@@ -51,7 +51,7 @@ export type IdentityMembershipOrg = {
export type IdentityMembership = {
id: string;
identity: Identity;
- project: Pick<Workspace, "id" | "name" | "type">;
+ project: Pick<Workspace, "id" | "name" | "defaultType">;
roles: Array<
{
id: string;
diff --git a/frontend/src/layouts/AdminLayout/Sidebar.tsx b/frontend/src/layouts/AdminLayout/Sidebar.tsx
index 60240f72f8..df2ab9c687 100644
--- a/frontend/src/layouts/AdminLayout/Sidebar.tsx
+++ b/frontend/src/layouts/AdminLayout/Sidebar.tsx
@@ -85,9 +85,7 @@ export const AdminSidebar = () => {
const isActive = matchRoute({ to: tab.link, fuzzy: false });
return (
<Link key={tab.link} to={tab.link}>
- <MenuItem isSelected={Boolean(isActive)} icon={tab.icon}>
- {tab.label}
- </MenuItem>
+ <MenuItem isSelected={Boolean(isActive)}>{tab.label}</MenuItem>
</Link>
);
})}
@@ -97,9 +95,7 @@ export const AdminSidebar = () => {
const isActive = matchRoute({ to: tab.link, fuzzy: false });
return (
<Link key={tab.link} to={tab.link}>
- <MenuItem isSelected={Boolean(isActive)} icon={tab.icon}>
- {tab.label}
- </MenuItem>
+ <MenuItem isSelected={Boolean(isActive)}>{tab.label}</MenuItem>
</Link>
);
})}
diff --git a/frontend/src/layouts/KmsLayout/KmsLayout.tsx b/frontend/src/layouts/KmsLayout/KmsLayout.tsx
index fcf6af23eb..ba31e870d2 100644
--- a/frontend/src/layouts/KmsLayout/KmsLayout.tsx
+++ b/frontend/src/layouts/KmsLayout/KmsLayout.tsx
@@ -59,4 +59,3 @@ export const KmsLayout = () => {
</div>
);
};
-
diff --git a/frontend/src/layouts/KmsLayout/index.tsx b/frontend/src/layouts/KmsLayout/index.tsx
index 3846a52e62..7ec3e20bc8 100644
--- a/frontend/src/layouts/KmsLayout/index.tsx
+++ b/frontend/src/layouts/KmsLayout/index.tsx
@@ -1 +1 @@
-export { KmsLayout } from "./KmsLayout";
\ No newline at end of file
+export { KmsLayout } from "./KmsLayout";
diff --git a/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx b/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
index 69ea006dce..7f82f2993d 100644
--- a/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
+++ b/frontend/src/layouts/OrganizationLayout/OrganizationLayout.tsx
@@ -1,33 +1,25 @@
import { useTranslation } from "react-i18next";
import { faMobile } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { Outlet, useLocation, useParams, useSearch } from "@tanstack/react-router";
+import { Outlet, useParams } from "@tanstack/react-router";
+import { twMerge } from "tailwind-merge";
import { CreateOrgModal } from "@app/components/organization/CreateOrgModal";
import { Banner } from "@app/components/page-frames/Banner";
-import { OrgPermissionSubjects, useOrgPermission, useServerConfig } from "@app/context";
-import { OrgPermissionSecretShareAction } from "@app/context/OrgPermissionContext/types";
+import { useServerConfig } from "@app/context";
import { usePopUp } from "@app/hooks";
import { InsecureConnectionBanner } from "./components/InsecureConnectionBanner";
-import { OrgSidebar } from "./components/OrgSidebar";
import { Navbar } from "./components/NavBar";
-import { twMerge } from "tailwind-merge";
+import { OrgSidebar } from "./components/OrgSidebar";
export const OrganizationLayout = () => {
const { config } = useServerConfig();
- const { permission } = useOrgPermission();
const projectId = useParams({
strict: false,
select: (el) => el?.projectId
});
const isInsideProject = Boolean(projectId);
- console.log(isInsideProject);
-
- const shouldShowProductsSidebar = permission.can(
- OrgPermissionSecretShareAction.ManageSettings,
- OrgPermissionSubjects.SecretShare
- );
const { popUp, handlePopUpToggle } = usePopUp(["createOrg"] as const);
diff --git a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/DefaultSideBar.tsx b/frontend/src/layouts/OrganizationLayout/ProductsSideBar/DefaultSideBar.tsx
deleted file mode 100644
index 4d55edb58f..0000000000
--- a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/DefaultSideBar.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-import { Link } from "@tanstack/react-router";
-
-import { Menu, MenuGroup, MenuItem } from "@app/components/v2";
-
-export const DefaultSideBar = () => (
- <Menu>
- <MenuGroup title="Organization Control">
- <Link to="/organization/access-management">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="groups">
- Access Control
- </MenuItem>
- )}
- </Link>
- <Link to="/organization/app-connections">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="jigsaw-puzzle">
- App Connections
- </MenuItem>
- )}
- </Link>
- <Link to="/organization/gateways">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="gateway" iconMode="reverse">
- Gateways
- </MenuItem>
- )}
- </Link>
- <Link to="/organization/sso">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="check">
- Single Sign-On (SSO)
- </MenuItem>
- )}
- </Link>
- </MenuGroup>
- <MenuGroup title="Other">
- <Link to="/organization/audit-logs">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="moving-block">
- Audit Logs
- </MenuItem>
- )}
- </Link>
- <Link to="/organization/billing">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="spinning-coin">
- Usage & Billing
- </MenuItem>
- )}
- </Link>
- <Link to="/organization/settings">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="toggle-settings">
- Organization Settings
- </MenuItem>
- )}
- </Link>
- </MenuGroup>
- </Menu>
-);
diff --git a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/ProjectOverviewSideBar.tsx b/frontend/src/layouts/OrganizationLayout/ProductsSideBar/ProjectOverviewSideBar.tsx
deleted file mode 100644
index 48678625d1..0000000000
--- a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/ProjectOverviewSideBar.tsx
+++ /dev/null
@@ -1,99 +0,0 @@
-import { faArrowUpRightFromSquare } from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { Link, useMatchRoute } from "@tanstack/react-router";
-
-import { Menu, MenuGroup, MenuItem } from "@app/components/v2";
-import { ProjectType } from "@app/hooks/api/workspace/types";
-
-type TProjectOverviewSideBarProps = {
- type: ProjectType;
-};
-
-export const ProjectOverviewSideBar = ({ type }: TProjectOverviewSideBarProps) => {
- const matchRoute = useMatchRoute();
-
- const isOverviewActive = !!matchRoute({
- to: "/organization/projects",
- fuzzy: false
- });
-
- let label: string;
- let icon: string;
- let link: string;
-
- switch (type) {
- case ProjectType.CertificateManager:
- label = "Cert Management";
- icon = "note";
- link = "https://infisical.com/docs/documentation/platform/pki/overview";
- break;
- case ProjectType.SecretManager:
- label = "Secret Management";
- icon = "sliding-carousel";
- link = "https://infisical.com/docs/documentation/getting-started/introduction";
- break;
- case ProjectType.KMS:
- label = "KMS";
- icon = "unlock";
- link = "https://infisical.com/docs/documentation/platform/kms/overview";
- break;
- case ProjectType.SSH:
- label = "SSH";
- icon = "verified";
- link = "https://infisical.com/docs/documentation/platform/ssh/overview";
- break;
- case ProjectType.SecretScanning:
- label = "Secret Scanning";
- icon = "secret-scan";
- link = "https://infisical.com/docs/documentation/platform/secret-scanning/overview";
- break;
- default:
- throw new Error("Unknown project type");
- }
-
- return (
- <>
- <div className="p-2 pt-3">
- <a
- target="_blank"
- rel="noopener noreferrer"
- href={link}
- className="flex w-full items-center rounded-md border border-mineshaft-600 p-2 pl-3 transition-all duration-150 hover:bg-mineshaft-700"
- >
- <div className="mr-2 flex h-6 w-6 items-center justify-center rounded-md bg-mineshaft-500 p-4">
- <FontAwesomeIcon
- icon={faArrowUpRightFromSquare}
- className="h-3.5 w-3.5 text-mineshaft-300"
- />
- </div>
- <div className="-mt-1 flex flex-grow flex-col text-white">
- <div className="max-w-36 truncate text-ellipsis text-sm font-medium capitalize">
- Infisical Docs
- </div>
- <div className="text-xs leading-[10px] text-mineshaft-400">
- {type === ProjectType.SecretManager ? "Get Started" : `${label} Overview`}
- </div>
- </div>
- </a>
- </div>
- <Menu>
- <MenuGroup title="Overview">
- <Link to={`/organization/${type}/overview`}>
- <MenuItem isSelected={isOverviewActive} icon={icon}>
- {label}
- </MenuItem>
- </Link>
- </MenuGroup>
- <MenuGroup title="Other">
- <Link to={`/organization/${type}/settings`}>
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="toggle-settings">
- Settings
- </MenuItem>
- )}
- </Link>
- </MenuGroup>
- </Menu>
- </>
- );
-};
diff --git a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/SecretSharingSideBar.tsx b/frontend/src/layouts/OrganizationLayout/ProductsSideBar/SecretSharingSideBar.tsx
deleted file mode 100644
index fbfc018c0c..0000000000
--- a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/SecretSharingSideBar.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { Link, useMatchRoute } from "@tanstack/react-router";
-
-import { Menu, MenuGroup, MenuItem } from "@app/components/v2";
-
-export const SecretSharingSideBar = () => {
- const matchRoute = useMatchRoute();
- const isOverviewActive = !!matchRoute({
- to: "/organization/secret-sharing",
- fuzzy: false
- });
-
- return (
- <Menu>
- <MenuGroup title="Overview">
- <Link to="/organization/secret-sharing">
- {() => (
- <MenuItem isSelected={isOverviewActive} icon="lock-closed">
- Secret Sharing
- </MenuItem>
- )}
- </Link>
- </MenuGroup>
- <MenuGroup title="Other">
- <Link to="/organization/secret-sharing/settings">
- {({ isActive }) => (
- <MenuItem isSelected={isActive} icon="toggle-settings">
- Settings
- </MenuItem>
- )}
- </Link>
- </MenuGroup>
- </Menu>
- );
-};
diff --git a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/index.ts b/frontend/src/layouts/OrganizationLayout/ProductsSideBar/index.ts
deleted file mode 100644
index 057f5fe6b4..0000000000
--- a/frontend/src/layouts/OrganizationLayout/ProductsSideBar/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export * from "./DefaultSideBar";
-export * from "./ProjectOverviewSideBar";
-export * from "./SecretSharingSideBar";
diff --git a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
index 10f45feb36..92d1f97a7c 100644
--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx
@@ -1,5 +1,6 @@
import { useState } from "react";
import { faGithub, faSlack } from "@fortawesome/free-brands-svg-icons";
+import { faCircleQuestion } from "@fortawesome/free-regular-svg-icons";
import {
faArrowUpRightFromSquare,
faBook,
@@ -13,7 +14,6 @@ import {
faUser,
faUsers
} from "@fortawesome/free-solid-svg-icons";
-import { faCircleQuestion } from "@fortawesome/free-regular-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useQueryClient } from "@tanstack/react-query";
import { Link, useNavigate, useRouter, useRouterState } from "@tanstack/react-router";
@@ -29,6 +29,8 @@ import {
DropdownMenuTrigger,
IconButton,
Lottie,
+ Modal,
+ ModalContent,
TBreadcrumbFormat
} from "@app/components/v2";
import { envConfig } from "@app/config/env";
@@ -42,6 +44,8 @@ import { SubscriptionPlan } from "@app/hooks/api/types";
import { AuthMethod } from "@app/hooks/api/users/types";
import { navigateUserToOrg } from "@app/pages/auth/LoginPage/Login.utils";
+import { ServerAdminsPanel } from "../ServerAdminsPanel/ServerAdminsPanel";
+
const getPlan = (subscription: SubscriptionPlan) => {
if (subscription.groups) return "Enterprise";
if (subscription.pitRecovery) return "Pro";
@@ -82,6 +86,7 @@ export const Navbar = () => {
const { currentOrg } = useOrganization();
const [openSupport, setOpenSupport] = useState(false);
const [openUser, setOpenUser] = useState(false);
+ const [showAdminsModal, setShowAdminsModal] = useState(false);
const { data: orgs } = useGetOrganizations();
const navigate = useNavigate();
@@ -366,6 +371,13 @@ export const Navbar = () => {
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
+ <Modal isOpen={showAdminsModal} onOpenChange={setShowAdminsModal}>
+ <ModalContent title="Server Administrators" subTitle="View all server administrators">
+ <div className="mb-2">
+ <ServerAdminsPanel />
+ </div>
+ </ModalContent>
+ </Modal>
</div>
);
};
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/Copy.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/Copy.tsx
index 4ddcce662a..1d37d29952 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/Copy.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/Copy.tsx
@@ -284,7 +284,7 @@ export const OrgSidebar = () => {
</div>
<div className="space-y-1">
{currentOrg.secretsProductEnabled && (
- <Link to="/organization/secret-manager/overview">
+ <Link to="/organization/projects">
{({ isActive }) => (
<MenuIconButton
isSelected={
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSidebar.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSidebar.tsx
index bc93eedc1c..24ec704fe2 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSidebar.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgSidebar.tsx
@@ -1,34 +1,32 @@
-import { useState } from "react";
import {
faBook,
faCheckCircle,
faCog,
+ faCubes,
faDoorClosed,
faInfinity,
faMoneyBill,
faPlug,
+ faShare,
faUserCog,
faUsers
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link } from "@tanstack/react-router";
+import { AnimatePresence, motion } from "framer-motion";
import { CreateOrgModal } from "@app/components/organization/CreateOrgModal";
-import { Menu, MenuGroup, MenuItem, Modal, ModalContent, Tooltip } from "@app/components/v2";
+import { Menu, MenuGroup, MenuItem, Tooltip } from "@app/components/v2";
import { useOrganization, useSubscription, useUser } from "@app/context";
import { usePopUp } from "@app/hooks";
import { useGetOrgTrialUrl } from "@app/hooks/api";
-import { ServerAdminsPanel } from "../ServerAdminsPanel/ServerAdminsPanel";
-import { AnimatePresence, motion } from "framer-motion";
-
type Props = {
isHidden?: boolean;
};
export const OrgSidebar = ({ isHidden }: Props) => {
const { subscription } = useSubscription();
- const [showAdminsModal, setShowAdminsModal] = useState(false);
const { user } = useUser();
const { mutateAsync } = useGetOrgTrialUrl();
@@ -55,8 +53,11 @@ export const OrgSidebar = ({ isHidden }: Props) => {
<MenuGroup title="Overview">
<Link to="/organization/projects">
{({ isActive }) => (
- <MenuItem isSelected={isActive} icon="notification-bell">
- Projects
+ <MenuItem isSelected={isActive}>
+ <div className="mx-1">
+ <FontAwesomeIcon icon={faCubes} className="mr-4" />
+ Projects
+ </div>
</MenuItem>
)}
</Link>
@@ -136,8 +137,11 @@ export const OrgSidebar = ({ isHidden }: Props) => {
<MenuGroup title="Others">
<Link to="/organization/secret-sharing">
{({ isActive }) => (
- <MenuItem isSelected={isActive} icon="lock-closed">
- Share Secret
+ <MenuItem isSelected={isActive}>
+ <div className="mx-1">
+ <FontAwesomeIcon icon={faShare} className="mr-4" />
+ Share Secret
+ </div>
</MenuItem>
)}
</Link>
@@ -208,13 +212,7 @@ export const OrgSidebar = ({ isHidden }: Props) => {
</motion.aside>
)}
</AnimatePresence>
- <Modal isOpen={showAdminsModal} onOpenChange={setShowAdminsModal}>
- <ModalContent title="Server Administrators" subTitle="View all server administrators">
- <div className="mb-2">
- <ServerAdminsPanel />
- </div>
- </ModalContent>
- </Modal>
+
<CreateOrgModal
isOpen={popUp?.createOrg?.isOpen}
onClose={() => handlePopUpToggle("createOrg", false)}
diff --git a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
index bc75659dd5..e1be17a350 100644
--- a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx
@@ -99,4 +99,3 @@ export const PkiManagerLayout = () => {
</>
);
};
-
diff --git a/frontend/src/layouts/PkiManagerLayout/index.tsx b/frontend/src/layouts/PkiManagerLayout/index.tsx
index caf250f0d2..6de729cf01 100644
--- a/frontend/src/layouts/PkiManagerLayout/index.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/index.tsx
@@ -1 +1 @@
-export { PkiManagerLayout } from "./PkiManagerLayout";
\ No newline at end of file
+export { PkiManagerLayout } from "./PkiManagerLayout";
diff --git a/frontend/src/layouts/ProjectGeneralLayout/ProjectGeneralLayout.tsx b/frontend/src/layouts/ProjectGeneralLayout/ProjectGeneralLayout.tsx
index fe9e88f74c..c248d7ff39 100644
--- a/frontend/src/layouts/ProjectGeneralLayout/ProjectGeneralLayout.tsx
+++ b/frontend/src/layouts/ProjectGeneralLayout/ProjectGeneralLayout.tsx
@@ -51,4 +51,3 @@ export const ProjectGeneralLayout = () => {
</div>
);
};
-
diff --git a/frontend/src/layouts/ProjectGeneralLayout/index.tsx b/frontend/src/layouts/ProjectGeneralLayout/index.tsx
index 56a93994a7..d048fbebc7 100644
--- a/frontend/src/layouts/ProjectGeneralLayout/index.tsx
+++ b/frontend/src/layouts/ProjectGeneralLayout/index.tsx
@@ -1,2 +1 @@
export { ProjectGeneralLayout } from "./ProjectGeneralLayout";
-
diff --git a/frontend/src/layouts/ProjectLayout/Copy.tsx b/frontend/src/layouts/ProjectLayout/Copy.tsx
index 86fc39300b..687c0377ea 100644
--- a/frontend/src/layouts/ProjectLayout/Copy.tsx
+++ b/frontend/src/layouts/ProjectLayout/Copy.tsx
@@ -225,7 +225,7 @@ export const ProjectLayout = () => {
{isSSH && (
<>
<Link
- to={`/${ProjectType.SSH}/$projectId/overview` as const}
+ to={`/projects/$projectId/${ProjectType.SSH}/overview` as const}
params={{
projectId: currentWorkspace.id
}}
@@ -237,7 +237,7 @@ export const ProjectLayout = () => {
)}
</Link>
{/* <Link
- to={`/${ProjectType.SSH}/$projectId/certificates` as const}
+ to={`/projects/$projectId/${ProjectType.SSH}/certificates` as const}
params={{
projectId: currentWorkspace.id
}}
@@ -255,7 +255,7 @@ export const ProjectLayout = () => {
{(isAllowed) =>
isAllowed && (
<Link
- to={`/${ProjectType.SSH}/$projectId/cas` as const}
+ to={`/projects/$projectId/${ProjectType.SSH}/cas` as const}
params={{
projectId: currentWorkspace.id
}}
diff --git a/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx b/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx
index de9f1ab266..8fed0dc61e 100644
--- a/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx
+++ b/frontend/src/layouts/ProjectLayout/ProjectLayout.tsx
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, Outlet, useLocation } from "@tanstack/react-router";
import { motion } from "framer-motion";
+import { ShouldWrap } from "@app/components/utilities/ShouldWrapComponent";
import {
Divider,
DropdownMenu,
@@ -16,13 +17,12 @@ import {
Tooltip
} from "@app/components/v2";
import { useProjectPermission, useWorkspace } from "@app/context";
-
-import { AssumePrivilegeModeBanner } from "./components/AssumePrivilegeModeBanner";
-import { useLocalStorageState } from "@app/hooks";
-import { ShouldWrap } from "@app/components/utilities/ShouldWrapComponent";
import { getCurrentProductFromUrl } from "@app/helpers/project";
+import { useLocalStorageState } from "@app/hooks";
import { ProjectType } from "@app/hooks/api/workspace/types";
+import { AssumePrivilegeModeBanner } from "./components/AssumePrivilegeModeBanner";
+
enum SidebarStyle {
Expanded = "expanded",
Collapsed = "collapsed",
diff --git a/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx b/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx
index da4b4e8195..e1bc5ce58d 100644
--- a/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx
@@ -6,6 +6,7 @@ import { useProjectPermission, useWorkspace } from "@app/context";
import { useRemoveAssumeProjectPrivilege } from "@app/hooks/api";
import { ActorType } from "@app/hooks/api/auditLogs/enums";
import { ProjectType } from "@app/hooks/api/workspace/types";
+import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
export const AssumePrivilegeModeBanner = () => {
const { currentWorkspace } = useWorkspace();
@@ -36,20 +37,11 @@ export const AssumePrivilegeModeBanner = () => {
},
{
onSuccess: () => {
- let page: string;
+ const url = getProjectHomePage(
+ getCurrentProductFromUrl(window.location.href) || ProjectType.SecretManager
+ );
- switch (currentWorkspace.type) {
- case ProjectType.SecretScanning:
- page = "data-sources";
- break;
- case ProjectType.CertificateManager:
- page = "subscribers";
- break;
- default:
- page = "overview";
- }
-
- window.location.href = `/${currentWorkspace.type}/${currentWorkspace.id}/${page}`;
+ window.location.href = url.replace("$projectId", currentWorkspace.id);
}
}
);
diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
index 63e9f5260a..d91418cecc 100644
--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
@@ -4,17 +4,17 @@ import {
faCheck,
faCube,
faPlus,
- faStar as faSolidStar,
- faSort
+ faSort,
+ faStar as faSolidStar
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { Link, linkOptions } from "@tanstack/react-router";
import { UpgradePlanModal } from "@app/components/license/UpgradePlanModal";
import { createNotification } from "@app/components/notifications";
import { OrgPermissionCan } from "@app/components/permissions";
import { NewProjectModal } from "@app/components/projects";
import {
- Button,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
@@ -28,13 +28,12 @@ import {
useSubscription,
useWorkspace
} from "@app/context";
+import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
import { usePopUp } from "@app/hooks";
import { useGetUserWorkspaces } from "@app/hooks/api";
import { useUpdateUserProjectFavorites } from "@app/hooks/api/users/mutation";
import { useGetUserProjectFavorites } from "@app/hooks/api/users/queries";
import { ProjectType, Workspace } from "@app/hooks/api/workspace/types";
-import { Link, linkOptions } from "@tanstack/react-router";
-import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
// TODO(pta): add search to project select
export const ProjectSelect = () => {
diff --git a/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx b/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
index 62f8abfd5a..1e18e9a4b9 100644
--- a/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
+++ b/frontend/src/layouts/SecretManagerLayout/SecretManagerLayout.tsx
@@ -105,7 +105,7 @@ export const SecretManagerLayout = () => {
)}
</Link>
<Link
- to={`/${currentWorkspace.type}/$projectId/settings` as const}
+ to="/projects/$projectId/secret-manager/settings"
params={{
projectId: currentWorkspace.id
}}
diff --git a/frontend/src/layouts/SecretScanningLayout/SecretScanningLayout.tsx b/frontend/src/layouts/SecretScanningLayout/SecretScanningLayout.tsx
index 8888ad8beb..c948d50915 100644
--- a/frontend/src/layouts/SecretScanningLayout/SecretScanningLayout.tsx
+++ b/frontend/src/layouts/SecretScanningLayout/SecretScanningLayout.tsx
@@ -59,4 +59,3 @@ export const SecretScanningLayout = () => {
</div>
);
};
-
diff --git a/frontend/src/layouts/SecretScanningLayout/index.tsx b/frontend/src/layouts/SecretScanningLayout/index.tsx
index 0bf5eaede6..0d27a555d1 100644
--- a/frontend/src/layouts/SecretScanningLayout/index.tsx
+++ b/frontend/src/layouts/SecretScanningLayout/index.tsx
@@ -1 +1 @@
-export { SecretScanningLayout } from "./SecretScanningLayout";
\ No newline at end of file
+export { SecretScanningLayout } from "./SecretScanningLayout";
diff --git a/frontend/src/layouts/SshLayout/SshLayout.tsx b/frontend/src/layouts/SshLayout/SshLayout.tsx
index b7eeed7263..124af7519d 100644
--- a/frontend/src/layouts/SshLayout/SshLayout.tsx
+++ b/frontend/src/layouts/SshLayout/SshLayout.tsx
@@ -1,9 +1,9 @@
import { Link, Outlet } from "@tanstack/react-router";
import { motion } from "framer-motion";
+import { ProjectPermissionCan } from "@app/components/permissions";
import { Menu, MenuItem } from "@app/components/v2";
import { ProjectPermissionActions, ProjectPermissionSub, useWorkspace } from "@app/context";
-import { ProjectPermissionCan } from "@app/components/permissions";
export const SshLayout = () => {
const { currentWorkspace } = useWorkspace();
@@ -97,4 +97,3 @@ export const SshLayout = () => {
</div>
);
};
-
diff --git a/frontend/src/layouts/SshLayout/index.tsx b/frontend/src/layouts/SshLayout/index.tsx
index de907b09be..3652c45cb3 100644
--- a/frontend/src/layouts/SshLayout/index.tsx
+++ b/frontend/src/layouts/SshLayout/index.tsx
@@ -1 +1 @@
-export { SshLayout } from "./SshLayout";
\ No newline at end of file
+export { SshLayout } from "./SshLayout";
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
index 29e4a5953e..bca796fc94 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
@@ -12,7 +12,6 @@ import {
useGetPkiCollectionById,
useUpdatePkiCollection
} from "@app/hooks/api";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { UsePopUpState } from "@app/hooks/usePopUp";
const schema = z.object({
@@ -83,7 +82,7 @@ export const PkiCollectionModal = ({ popUp, handlePopUpToggle }: Props) => {
});
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/pki-collections/$collectionId` as const,
+ to: "/projects/$projectId/cert-manager/pki-collections/$collectionId",
params: {
projectId,
collectionId
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
index 8a3e6ffe5e..1a6e613b6c 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionTable.tsx
@@ -61,7 +61,7 @@ export const PkiCollectionTable = ({ handlePopUpOpen }: Props) => {
key={`pki-collection-${pkiCollection.id}`}
onClick={() =>
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/pki-collections/$collectionId` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/pki-collections/$collectionId` as const,
params: {
projectId,
collectionId: pkiCollection.id
diff --git a/frontend/src/pages/cert-manager/AlertingPage/route.tsx b/frontend/src/pages/cert-manager/AlertingPage/route.tsx
index 359b7e53b8..0b402699f4 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/route.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { AlertingPage } from './AlertingPage'
+import { AlertingPage } from "./AlertingPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/alerting',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/alerting"
)({
component: AlertingPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Alerting',
- },
- ],
- }
- },
-})
+ label: "Alerting"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
index bd1a9318d8..17a9fb8bf1 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
@@ -71,7 +71,7 @@ const Page = () => {
handlePopUpClose("deleteCa");
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/certificate-authorities` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/certificate-authorities` as const,
params: {
projectId
}
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
index b17768b26b..10620b3252 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { CertAuthDetailsByIDPage } from './CertAuthDetailsByIDPage'
+import { CertAuthDetailsByIDPage } from "./CertAuthDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/ca/$caName',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/ca/$caName"
)({
component: CertAuthDetailsByIDPage,
beforeLoad: ({ context, params }) => {
@@ -11,15 +11,15 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Certificate Authorities',
+ label: "Certificate Authorities",
link: linkOptions({
- to: '/cert-manager/$projectId/certificate-authorities',
+ to: "/projects/$projectId/cert-manager/certificate-authorities",
params: {
- projectId: params.projectId,
- },
- }),
- },
- ],
- }
- },
-})
+ projectId: params.projectId
+ }
+ })
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaTable.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaTable.tsx
index 33bae14bd9..e0b91a239b 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaTable.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaTable.tsx
@@ -79,7 +79,7 @@ export const CaTable = ({ handlePopUpOpen }: Props) => {
key={`ca-${ca.id}`}
onClick={() =>
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/ca/$caName` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/ca/$caName` as const,
params: {
projectId: currentWorkspace.id,
caName: ca.name
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/route.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/route.tsx
index a1dd188459..36baa6e9e4 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/route.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { CertificateAuthoritiesPage } from './CertificateAuthoritiesPage'
+import { CertificateAuthoritiesPage } from "./CertificateAuthoritiesPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificate-authorities',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificate-authorities"
)({
component: CertificateAuthoritiesPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Certificate Authorities',
- },
- ],
- }
- },
-})
+ label: "Certificate Authorities"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/route.tsx b/frontend/src/pages/cert-manager/CertificatesPage/route.tsx
index b78cd68506..1a9a29da02 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/route.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { CertificatesPage } from './CertificatesPage'
+import { CertificatesPage } from "./CertificatesPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificates',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificates"
)({
- component: CertificatesPage,
-})
+ component: CertificatesPage
+});
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
index b95ff4d5f1..33c4808fdc 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/PkiCollectionDetailsByIDPage.tsx
@@ -57,7 +57,7 @@ export const PkiCollectionPage = () => {
});
handlePopUpClose("deletePkiCollection");
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/certificates` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/certificates` as const,
params: {
projectId
}
diff --git a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/routes.tsx b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/routes.tsx
index b6f5fc259d..af8f27602b 100644
--- a/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/routes.tsx
+++ b/frontend/src/pages/cert-manager/PkiCollectionDetailsByIDPage/routes.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { PkiCollectionDetailsByIDPage } from './PkiCollectionDetailsByIDPage'
+import { PkiCollectionDetailsByIDPage } from "./PkiCollectionDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/pki-collections/$collectionId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/pki-collections/$collectionId"
)({
component: PkiCollectionDetailsByIDPage,
beforeLoad: ({ context, params }) => {
@@ -11,15 +11,15 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Certificate Collections',
+ label: "Certificate Collections",
link: linkOptions({
- to: '/cert-manager/$projectId/certificates',
+ to: "/projects/$projectId/cert-manager/certificates",
params: {
- projectId: params.projectId,
- },
- }),
- },
- ],
- }
- },
-})
+ projectId: params.projectId
+ }
+ })
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
index ad6e88adf5..6f7e1362c2 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/PkiSubscriberDetailsByIDPage.tsx
@@ -61,7 +61,7 @@ const Page = () => {
handlePopUpClose("deletePkiSubscriber");
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/subscribers` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/subscribers` as const,
params: {
projectId
}
diff --git a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/route.tsx b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/route.tsx
index 78fc5a8f75..dbec32faa9 100644
--- a/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscriberDetailsByIDPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { PkiSubscriberDetailsByIDPage } from './PkiSubscriberDetailsByIDPage'
+import { PkiSubscriberDetailsByIDPage } from "./PkiSubscriberDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/subscribers/$subscriberName',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/subscribers/$subscriberName"
)({
component: PkiSubscriberDetailsByIDPage,
beforeLoad: ({ context, params }) => {
@@ -11,15 +11,15 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Subscribers',
+ label: "Subscribers",
link: linkOptions({
- to: '/cert-manager/$projectId/subscribers',
+ to: "/projects/$projectId/cert-manager/subscribers",
params: {
- projectId: params.projectId,
- },
- }),
- },
- ],
- }
- },
-})
+ projectId: params.projectId
+ }
+ })
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
index 3ba4739853..eead0371a2 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/components/PkiSubscribersTable.tsx
@@ -76,7 +76,7 @@ export const PkiSubscribersTable = ({ handlePopUpOpen }: Props) => {
key={`pki-subscriber-${subscriber.id}`}
onClick={() =>
navigate({
- to: `/${ProjectType.CertificateManager}/$projectId/subscribers/$subscriberName` as const,
+ to: `/projects/$projectId/${ProjectType.CertificateManager}/subscribers/$subscriberName` as const,
params: {
projectId: currentWorkspace.id,
subscriberName: subscriber.name
diff --git a/frontend/src/pages/cert-manager/PkiSubscribersPage/route.tsx b/frontend/src/pages/cert-manager/PkiSubscribersPage/route.tsx
index ec49047368..7b57a80c39 100644
--- a/frontend/src/pages/cert-manager/PkiSubscribersPage/route.tsx
+++ b/frontend/src/pages/cert-manager/PkiSubscribersPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { PkiSubscribersPage } from './PkiSubscribersPage'
+import { PkiSubscribersPage } from "./PkiSubscribersPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/subscribers/',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/subscribers/"
)({
- component: PkiSubscribersPage,
-})
+ component: PkiSubscribersPage
+});
diff --git a/frontend/src/pages/cert-manager/PkiTemplateListPage/route.tsx b/frontend/src/pages/cert-manager/PkiTemplateListPage/route.tsx
index 7221e1e8b4..84e24041b3 100644
--- a/frontend/src/pages/cert-manager/PkiTemplateListPage/route.tsx
+++ b/frontend/src/pages/cert-manager/PkiTemplateListPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { PkiTemplateListPage } from './PkiTemplateListPage'
+import { PkiTemplateListPage } from "./PkiTemplateListPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificate-templates/',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/certificate-templates/"
)({
- component: PkiTemplateListPage,
-})
+ component: PkiTemplateListPage
+});
diff --git a/frontend/src/pages/cert-manager/SettingsPage/route.tsx b/frontend/src/pages/cert-manager/SettingsPage/route.tsx
index 73a93a6687..dc89220922 100644
--- a/frontend/src/pages/cert-manager/SettingsPage/route.tsx
+++ b/frontend/src/pages/cert-manager/SettingsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SettingsPage } from './SettingsPage'
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/cert-manager/_cert-manager-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Settings',
- },
- ],
- }
- },
-})
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/kms/KmipPage/route.tsx b/frontend/src/pages/kms/KmipPage/route.tsx
index b3caa471b6..111356c299 100644
--- a/frontend/src/pages/kms/KmipPage/route.tsx
+++ b/frontend/src/pages/kms/KmipPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { KmipPage } from './KmipPage'
+import { KmipPage } from "./KmipPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/kmip',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/kmip"
)({
- component: KmipPage,
-})
+ component: KmipPage
+});
diff --git a/frontend/src/pages/kms/OverviewPage/route.tsx b/frontend/src/pages/kms/OverviewPage/route.tsx
index b7af147c78..79a27f6682 100644
--- a/frontend/src/pages/kms/OverviewPage/route.tsx
+++ b/frontend/src/pages/kms/OverviewPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { OverviewPage } from './OverviewPage'
+import { OverviewPage } from "./OverviewPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/overview',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/overview"
)({
- component: OverviewPage,
-})
+ component: OverviewPage
+});
diff --git a/frontend/src/pages/kms/SettingsPage/route.tsx b/frontend/src/pages/kms/SettingsPage/route.tsx
index ec315f6ce6..8dd90bbddf 100644
--- a/frontend/src/pages/kms/SettingsPage/route.tsx
+++ b/frontend/src/pages/kms/SettingsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SettingsPage } from './SettingsPage'
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/kms/_kms-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Settings',
- },
- ],
- }
- },
-})
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/middlewares/restrict-login-signup.tsx b/frontend/src/pages/middlewares/restrict-login-signup.tsx
index 68d3f0892f..c3d58f248b 100644
--- a/frontend/src/pages/middlewares/restrict-login-signup.tsx
+++ b/frontend/src/pages/middlewares/restrict-login-signup.tsx
@@ -12,7 +12,6 @@ import { SessionStorageKeys } from "@app/const";
import { useServerConfig } from "@app/context";
import { authKeys, fetchAuthToken } from "@app/hooks/api/auth/queries";
import { setAuthToken } from "@app/hooks/api/reactQuery";
-import { ProjectType } from "@app/hooks/api/workspace/types";
const QueryParamsSchema = z.object({
callback_port: z.coerce.number().optional().catch(undefined),
diff --git a/frontend/src/pages/organization/AdminPage/components/OrgAdminProjects/OrgAdminProjects.tsx b/frontend/src/pages/organization/AdminPage/components/OrgAdminProjects/OrgAdminProjects.tsx
index dc9c9953b7..c2ca92575c 100644
--- a/frontend/src/pages/organization/AdminPage/components/OrgAdminProjects/OrgAdminProjects.tsx
+++ b/frontend/src/pages/organization/AdminPage/components/OrgAdminProjects/OrgAdminProjects.tsx
@@ -33,6 +33,7 @@ import { withPermission } from "@app/hoc";
import { useDebounce } from "@app/hooks";
import { useOrgAdminAccessProject, useOrgAdminGetProjects } from "@app/hooks/api";
import { ProjectType } from "@app/hooks/api/workspace/types";
+import { getProjectHomePage } from "@app/helpers/project";
export const OrgAdminProjects = withPermission(
() => {
@@ -58,26 +59,8 @@ export const OrgAdminProjects = withPermission(
await orgAdminAccessProject.mutateAsync({
projectId
});
- if (type === ProjectType.CertificateManager) {
- await navigate({
- to: "/cert-manager/$projectId/subscribers" as const,
- params: {
- projectId
- }
- });
- return;
- }
- if (type === ProjectType.SecretScanning) {
- await navigate({
- to: "/secret-scanning/$projectId/data-sources" as const,
- params: {
- projectId
- }
- });
- return;
- }
await navigate({
- to: `/${type}/$projectId/overview` as const,
+ to: getProjectHomePage(type),
params: {
projectId
}
@@ -122,7 +105,7 @@ export const OrgAdminProjects = withPermission(
<TBody>
{isProjectsLoading && <TableSkeleton columns={4} innerKey="projects" />}
{!isProjectsLoading &&
- projects?.map(({ name, slug, createdAt, type, id }) => (
+ projects?.map(({ name, slug, createdAt, id, defaultType }) => (
<Tr key={`project-${id}`} className="group w-full">
<Td>{name}</Td>
<Td>{slug}</Td>
@@ -143,7 +126,7 @@ export const OrgAdminProjects = withPermission(
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
- handleAccessProject(type, id);
+ handleAccessProject(defaultType, id);
}}
icon={<FontAwesomeIcon icon={faSignIn} />}
disabled={
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
index b015e0679c..0ba1873416 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsFilter.tsx
@@ -418,10 +418,10 @@ export const LogsFilter = ({
onChange(e);
}}
placeholder="All projects"
- options={workspacesInOrg.map(({ name, id, type }) => ({
+ options={workspacesInOrg.map(({ name, id, defaultType }) => ({
name,
id,
- type
+ type: defaultType
}))}
getOptionValue={(option) => option.id}
getOptionLabel={(option) => option.name}
diff --git a/frontend/src/pages/organization/BillingPage/BillingPage.tsx b/frontend/src/pages/organization/BillingPage/BillingPage.tsx
index a58a7f14df..e49314f131 100644
--- a/frontend/src/pages/organization/BillingPage/BillingPage.tsx
+++ b/frontend/src/pages/organization/BillingPage/BillingPage.tsx
@@ -2,10 +2,10 @@ import { Helmet } from "react-helmet";
import { useTranslation } from "react-i18next";
import { OrgPermissionCan } from "@app/components/permissions";
+import { PageHeader } from "@app/components/v2";
import { OrgPermissionBillingActions, OrgPermissionSubjects } from "@app/context";
import { BillingTabGroup } from "./components";
-import { PageHeader } from "@app/components/v2";
export const BillingPage = () => {
const { t } = useTranslation();
diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectRow.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectRow.tsx
index da89d47d80..8d8d454459 100644
--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectRow.tsx
+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityProjectsSection/IdentityProjectRow.tsx
@@ -5,7 +5,7 @@ import { useNavigate } from "@tanstack/react-router";
import { format } from "date-fns";
import { createNotification } from "@app/components/notifications";
-import { IconButton, Tag, Td, Tooltip, Tr } from "@app/components/v2";
+import { IconButton, Td, Tooltip, Tr } from "@app/components/v2";
import { formatProjectRoleName } from "@app/helpers/roles";
import { useGetUserWorkspaces } from "@app/hooks/api";
import { IdentityMembership } from "@app/hooks/api/identities/types";
@@ -50,7 +50,7 @@ export const IdentityProjectRow = ({
onClick={() => {
if (isAccessible) {
navigate({
- to: `/${project?.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
params: {
projectId: project.id
},
@@ -68,9 +68,6 @@ export const IdentityProjectRow = ({
}}
>
<Td className="max-w-0 truncate">{project.name}</Td>
- <Td>
- <Tag size="xs">{project.type}</Tag>
- </Td>
<Td>{`${formatProjectRoleName(roles[0].role, roles[0].customRoleName)}${
roles.length > 1 ? ` (+${roles.length - 1})` : ""
}`}</Td>
diff --git a/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx b/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx
index daea793749..0a1bd73649 100644
--- a/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/components/AllProjectView.tsx
@@ -222,7 +222,7 @@ export const AllProjectView = ({
onKeyDown={(evt) => {
if (evt.key === "Enter" && workspace.isMember) {
navigate({
- to: getProjectHomePage(workspace),
+ to: getProjectHomePage(workspace.defaultType),
params: {
projectId: workspace.id
}
@@ -232,7 +232,7 @@ export const AllProjectView = ({
onClick={() => {
if (workspace.isMember) {
navigate({
- to: getProjectHomePage(workspace),
+ to: getProjectHomePage(workspace.defaultType),
params: {
projectId: workspace.id
}
diff --git a/frontend/src/pages/organization/ProjectsPage/components/MyProjectView.tsx b/frontend/src/pages/organization/ProjectsPage/components/MyProjectView.tsx
index 9bd7bfb680..f315215e71 100644
--- a/frontend/src/pages/organization/ProjectsPage/components/MyProjectView.tsx
+++ b/frontend/src/pages/organization/ProjectsPage/components/MyProjectView.tsx
@@ -215,7 +215,7 @@ export const MyProjectView = ({
<div
onClick={() => {
navigate({
- to: getProjectHomePage(workspace),
+ to: getProjectHomePage(workspace.defaultType),
params: {
projectId: workspace.id
}
diff --git a/frontend/src/pages/organization/SecretManagerSettingsPage/route.tsx b/frontend/src/pages/organization/SecretManagerSettingsPage/route.tsx
index 83f6d09925..e03aa627e0 100644
--- a/frontend/src/pages/organization/SecretManagerSettingsPage/route.tsx
+++ b/frontend/src/pages/organization/SecretManagerSettingsPage/route.tsx
@@ -10,7 +10,7 @@ export const Route = createFileRoute(
breadcrumbs: [
{
label: "Secret Management",
- link: linkOptions({ to: "/organization/secret-manager/overview" })
+ link: linkOptions({ to: "/organization/projects" })
},
{
label: "Settings"
diff --git a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectRow.tsx b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectRow.tsx
index b3581183c9..db8d570cd2 100644
--- a/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectRow.tsx
+++ b/frontend/src/pages/organization/UserDetailsByIDPage/components/UserProjectsSection/UserProjectRow.tsx
@@ -43,7 +43,7 @@ export const UserProjectRow = ({
onClick={() => {
if (isAccessible) {
navigate({
- to: `/${project.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
params: {
projectId: project.id
},
diff --git a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
index d01d45c2d0..096514b691 100644
--- a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
+++ b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
@@ -4,7 +4,6 @@ import { useNavigate, useSearch } from "@tanstack/react-router";
import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { useWorkspace } from "@app/context";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { ProjectAccessControlTabs } from "@app/types/project";
import {
@@ -25,7 +24,7 @@ const Page = () => {
const updateSelectedTab = (tab: string) => {
navigate({
- to: `/${currentWorkspace.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
search: (prev) => ({ ...prev, selectedTab: tab }),
params: {
projectId: currentWorkspace.id
@@ -49,9 +48,7 @@ const Page = () => {
<p>Machine Identities</p>
</div>
</Tab>
- {currentWorkspace?.type === ProjectType.SecretManager && (
- <Tab value={ProjectAccessControlTabs.ServiceTokens}>Service Tokens</Tab>
- )}
+ <Tab value={ProjectAccessControlTabs.ServiceTokens}>Service Tokens</Tab>
<Tab value={ProjectAccessControlTabs.Roles}>Project Roles</Tab>
</TabList>
<TabPanel value={ProjectAccessControlTabs.Member}>
@@ -63,11 +60,9 @@ const Page = () => {
<TabPanel value={ProjectAccessControlTabs.Identities}>
<IdentityTab />
</TabPanel>
- {currentWorkspace?.type === ProjectType.SecretManager && (
- <TabPanel value={ProjectAccessControlTabs.ServiceTokens}>
- <ServiceTokenTab />
- </TabPanel>
- )}
+ <TabPanel value={ProjectAccessControlTabs.ServiceTokens}>
+ <ServiceTokenTab />
+ </TabPanel>
<TabPanel value={ProjectAccessControlTabs.Roles}>
<ProjectRoleListTab />
</TabPanel>
diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
index 2a08a250cf..37816ceb92 100644
--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
@@ -158,7 +158,7 @@ export const GroupTable = ({ handlePopUpOpen }: Props) => {
onKeyDown={(evt) => {
if (evt.key === "Enter") {
navigate({
- to: `/${currentWorkspace.type}/$projectId/groups/$groupId` as const,
+ to: "/projects/$projectId/groups/$groupId",
params: {
projectId: currentWorkspace.id,
groupId: id
@@ -168,7 +168,7 @@ export const GroupTable = ({ handlePopUpOpen }: Props) => {
}}
onClick={() =>
navigate({
- to: `/${currentWorkspace.type}/$projectId/groups/$groupId` as const,
+ to: "/projects/$projectId/groups/$groupId",
params: {
projectId: currentWorkspace.id,
groupId: id
diff --git a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
index 57adf845ca..52ac3b349c 100644
--- a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
@@ -260,7 +260,7 @@ export const IdentityTab = withProjectPermission(
onKeyDown={(evt) => {
if (evt.key === "Enter") {
navigate({
- to: `/${currentWorkspace?.type}/$projectId/identities/$identityId` as const,
+ to: "/projects/$projectId/identities/$identityId",
params: {
projectId: currentWorkspace.id,
identityId: id
@@ -270,7 +270,7 @@ export const IdentityTab = withProjectPermission(
}}
onClick={() =>
navigate({
- to: `/${currentWorkspace?.type}/$projectId/identities/$identityId` as const,
+ to: "/projects/$projectId/identities/$identityId",
params: {
projectId: currentWorkspace.id,
identityId: id
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MemberRoleForm/MemberRoleForm.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MemberRoleForm/MemberRoleForm.tsx
index 93839337b0..ba4e0fac40 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MemberRoleForm/MemberRoleForm.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MemberRoleForm/MemberRoleForm.tsx
@@ -21,7 +21,7 @@ export const MemberRoleForm = ({ projectMember, onOpenUpgradeModal }: Props) =>
>
<AlertDescription>
<Link
- to={`/${currentWorkspace.type}/$projectId/members/$membershipId` as const}
+ to="/projects/$projectId/members/$membershipId"
params={{
projectId: currentWorkspace.id,
membershipId: projectMember.id
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
index 08d9317907..d5277cc0e9 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
@@ -311,7 +311,7 @@ export const MembersTable = ({ handlePopUpOpen }: Props) => {
onKeyDown={(evt) => {
if (evt.key === "Enter") {
navigate({
- to: `/${currentWorkspace.type}/$projectId/members/$membershipId` as const,
+ to: "/projects/$projectId/members/$membershipId",
params: {
projectId: workspaceId,
membershipId
@@ -321,7 +321,7 @@ export const MembersTable = ({ handlePopUpOpen }: Props) => {
}}
onClick={() =>
navigate({
- to: `/${currentWorkspace.type}/$projectId/members/$membershipId` as const,
+ to: "/projects/$projectId/members/$membershipId",
params: {
projectId: workspaceId,
membershipId
diff --git a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
index b29bf469b5..2a01764b06 100644
--- a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
@@ -249,7 +249,7 @@ export const ProjectRoleList = () => {
className="h-10 cursor-pointer transition-colors duration-100 hover:bg-mineshaft-700"
onClick={() =>
navigate({
- to: `/${currentWorkspace?.type}/$projectId/roles/$roleSlug` as const,
+ to: "/projects/$projectId/roles/$roleSlug",
params: {
projectId: currentWorkspace.id,
roleSlug: slug
@@ -291,7 +291,7 @@ export const ProjectRoleList = () => {
onClick={(e) => {
e.stopPropagation();
navigate({
- to: `/${currentWorkspace?.type}/$projectId/roles/$roleSlug` as const,
+ to: "/projects/$projectId/roles/$roleSlug",
params: {
projectId: currentWorkspace.id,
roleSlug: slug
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
index 4f1dcb5865..b23cfdad16 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
@@ -46,7 +46,13 @@ export const GroupDetailsSection = ({ groupMembership }: Props) => {
});
navigate({
- to: `/${currentWorkspace.type}/${currentWorkspace.id}/access-management?selectedTab=groups`
+ to: "/projects/$projectId/access-management",
+ params: {
+ projectId: currentWorkspace.id
+ },
+ search: {
+ selectedTab: "groups"
+ }
});
handlePopUpClose("deleteGroup");
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
index c0639260a0..681deea425 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx
@@ -24,6 +24,7 @@ import {
Tr
} from "@app/components/v2";
import { useWorkspace } from "@app/context";
+import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
import {
getUserTablePreference,
PreferenceKey,
@@ -136,20 +137,10 @@ export const GroupMembersTable = ({ groupMembership }: Props) => {
text: "User privilege assumption has started"
});
- let overviewPage: string;
-
- switch (currentWorkspace.type) {
- case ProjectType.SecretScanning:
- overviewPage = "data-sources";
- break;
- case ProjectType.CertificateManager:
- overviewPage = "subscribers";
- break;
- default:
- overviewPage = "overview";
- }
-
- window.location.href = `/${currentWorkspace.type}/${currentWorkspace.id}/${overviewPage}`;
+ const url = getProjectHomePage(
+ getCurrentProductFromUrl(window.location.href) || ProjectType.SecretManager
+ );
+ window.location.href = url.replace("$projectId", currentWorkspace.id);
}
}
);
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/route.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/route.tsx
index 8406637e43..aac99921c5 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/route.tsx
@@ -1,14 +1,14 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { GroupDetailsByIDPage } from './GroupDetailsByIDPage'
+import { GroupDetailsByIDPage } from "./GroupDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/groups/$groupId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/groups/$groupId"
)({
component: GroupDetailsByIDPage,
beforeLoad: ({ context }) => {
return {
- breadcrumbs: [],
- }
- },
-})
+ breadcrumbs: []
+ };
+ }
+});
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
index 81182f2ec2..bc4ae078f1 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
@@ -20,6 +20,7 @@ import {
ProjectPermissionSub,
useWorkspace
} from "@app/context";
+import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
import { usePopUp } from "@app/hooks";
import {
useAssumeProjectPrivileges,
@@ -27,6 +28,7 @@ import {
useGetWorkspaceIdentityMembershipDetails
} from "@app/hooks/api";
import { ActorType } from "@app/hooks/api/auditLogs/enums";
+import { ProjectType } from "@app/hooks/api/workspace/types";
import { IdentityProjectAdditionalPrivilegeSection } from "./components/IdentityProjectAdditionalPrivilegeSection";
import { IdentityRoleDetailsSection } from "./components/IdentityRoleDetailsSection";
@@ -66,7 +68,10 @@ const Page = () => {
type: "success",
text: "Identity privilege assumption has started"
});
- window.location.href = `/${currentWorkspace.type}/${currentWorkspace.id}/overview`;
+ const url = getProjectHomePage(
+ getCurrentProductFromUrl(window.location.href) || ProjectType.SecretManager
+ );
+ window.location.href = url.replace("$projectId", currentWorkspace.id);
}
}
);
@@ -84,7 +89,7 @@ const Page = () => {
});
handlePopUpClose("deleteIdentity");
navigate({
- to: `/${currentWorkspace.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
params: {
projectId: workspaceId
},
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/route.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/route.tsx
index 7cc1ffd934..672b11c0c3 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/route.tsx
@@ -1,14 +1,14 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { IdentityDetailsByIDPage } from './IdentityDetailsByIDPage'
+import { IdentityDetailsByIDPage } from "./IdentityDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/identities/$identityId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/identities/$identityId"
)({
component: IdentityDetailsByIDPage,
beforeLoad: ({ context }) => {
return {
- breadcrumbs: [],
- }
- },
-})
+ breadcrumbs: []
+ };
+ }
+});
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
index 94666e0f56..f84e0ea369 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
@@ -21,6 +21,7 @@ import {
useOrganization,
useWorkspace
} from "@app/context";
+import { getCurrentProductFromUrl, getProjectHomePage } from "@app/helpers/project";
import { usePopUp } from "@app/hooks";
import {
useAssumeProjectPrivileges,
@@ -72,20 +73,10 @@ export const Page = () => {
text: "User privilege assumption has started"
});
- let page: string;
-
- switch (currentWorkspace.type) {
- case ProjectType.SecretScanning:
- page = "data-sources";
- break;
- case ProjectType.CertificateManager:
- page = "subscribers";
- break;
- default:
- page = "overview";
- }
-
- window.location.href = `/${currentWorkspace.type}/${currentWorkspace.id}/${page}`;
+ const url = getProjectHomePage(
+ getCurrentProductFromUrl(window.location.href) || ProjectType.SecretManager
+ );
+ window.location.href = url.replace("$projectId", currentWorkspace.id);
}
}
);
@@ -105,7 +96,7 @@ export const Page = () => {
type: "success"
});
navigate({
- to: `/${currentWorkspace.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
params: {
projectId: currentWorkspace.id
}
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/route.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/route.tsx
index 878fb29432..007abbe8ff 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/route.tsx
@@ -1,14 +1,14 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { MemberDetailsByIDPage } from './MemberDetailsByIDPage'
+import { MemberDetailsByIDPage } from "./MemberDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/members/$membershipId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/members/$membershipId"
)({
component: MemberDetailsByIDPage,
beforeLoad: ({ context }) => {
return {
- breadcrumbs: [],
- }
- },
-})
+ breadcrumbs: []
+ };
+ }
+});
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
index 9579ab5111..af062aa133 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
@@ -60,7 +60,7 @@ const Page = () => {
});
handlePopUpClose("deleteRole");
navigate({
- to: `/${currentWorkspace?.type}/$projectId/access-management` as const,
+ to: "/projects/$projectId/access-management",
params: {
projectId
},
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx
index 16be01b675..ccc3e4ea56 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/DuplicateProjectRoleModal.tsx
@@ -80,7 +80,7 @@ const Content = ({ role, onClose }: ContentProps) => {
});
navigate({
- to: `/${currentWorkspace.type}/$projectId/roles/$roleSlug` as const,
+ to: "/projects/$projectId/roles/$roleSlug",
params: {
roleSlug: newRole.slug,
projectId: currentWorkspace.id
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx
index 2e51de9b75..0f1433af34 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/RoleModal.tsx
@@ -100,7 +100,7 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {
});
navigate({
- to: `/${currentWorkspace.type}/$projectId/roles/$roleSlug` as const,
+ to: "/projects/$projectId/roles/$roleSlug",
params: {
roleSlug: newRole.slug,
projectId
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/route.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/route.tsx
index 978a6ba183..55b14de600 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/route.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/route.tsx
@@ -1,14 +1,14 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { RoleDetailsBySlugPage } from './RoleDetailsBySlugPage'
+import { RoleDetailsBySlugPage } from "./RoleDetailsBySlugPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/roles/$roleSlug',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/roles/$roleSlug"
)({
component: RoleDetailsBySlugPage,
- beforeLoad: ({ context }) => {
+ beforeLoad: ({}) => {
return {
- breadcrumbs: [],
- }
- },
-})
+ breadcrumbs: []
+ };
+ }
+});
diff --git a/frontend/src/pages/project/SettingsPage/route.tsx b/frontend/src/pages/project/SettingsPage/route.tsx
index 767eb6b5b4..13058630a5 100644
--- a/frontend/src/pages/project/SettingsPage/route.tsx
+++ b/frontend/src/pages/project/SettingsPage/route.tsx
@@ -1,14 +1,15 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { SettingsPage } from './SettingsPage'
+import { createFileRoute } from "@tanstack/react-router";
+
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
- ...context.breadcrumbs,
+ ...context.breadcrumbs
// {
// label: "Access Control",
// link: linkOptions({
@@ -18,7 +19,7 @@ export const Route = createFileRoute(
// }
// })
// }
- ],
- }
- },
-})
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/project/layout-general.tsx b/frontend/src/pages/project/layout-general.tsx
index ee99716aba..ae2f764d04 100644
--- a/frontend/src/pages/project/layout-general.tsx
+++ b/frontend/src/pages/project/layout-general.tsx
@@ -1,8 +1,9 @@
-import { ProjectGeneralLayout } from '@app/layouts/ProjectGeneralLayout'
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
+
+import { ProjectGeneralLayout } from "@app/layouts/ProjectGeneralLayout";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/_project-general-layout"
)({
- component: ProjectGeneralLayout,
-})
+ component: ProjectGeneralLayout
+});
diff --git a/frontend/src/pages/project/layout.tsx b/frontend/src/pages/project/layout.tsx
index 798216d7a1..8f85cb1a51 100644
--- a/frontend/src/pages/project/layout.tsx
+++ b/frontend/src/pages/project/layout.tsx
@@ -1,10 +1,10 @@
import { createFileRoute } from "@tanstack/react-router";
+
+import { BreadcrumbTypes } from "@app/components/v2";
import { workspaceKeys } from "@app/hooks/api";
import { fetchUserProjectPermissions, roleQueryKeys } from "@app/hooks/api/roles/queries";
import { fetchWorkspaceById } from "@app/hooks/api/workspace/queries";
-
import { ProjectLayout } from "@app/layouts/ProjectLayout";
-import { BreadcrumbTypes } from "@app/components/v2";
import { ProjectSelect } from "@app/layouts/ProjectLayout/components/ProjectSelect";
export const Route = createFileRoute(
diff --git a/frontend/src/pages/public/ErrorPage/ErrorPage.tsx b/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
index c20533915a..1910eb891d 100644
--- a/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
+++ b/frontend/src/pages/public/ErrorPage/ErrorPage.tsx
@@ -31,7 +31,7 @@ export const ErrorPage = ({ error }: ErrorComponentProps) => {
</a>{" "}
if the issue persists.
</p>
- <Link to="/organization/secret-manager/overview">
+ <Link to="/organization/projects">
<Button className="mt-4" size="xs">
<FontAwesomeIcon icon={faHome} className="mr-2" />
Back To Home
diff --git a/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx b/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
index fa61921cfd..c26876f73e 100644
--- a/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
+++ b/frontend/src/pages/public/NotFoundPage/NotFoundPage.tsx
@@ -16,7 +16,7 @@ export const NotFoundPage = () => {
</a>{" "}
and we`ll fix it!{" "}
</p>
- <Link to="/organization/secret-manager/overview">
+ <Link to="/organization/projects">
<div className="diration-200 mt-8 cursor-default rounded-md bg-mineshaft-500 px-4 py-2 font-semibold hover:bg-primary hover:text-black">
Go to Dashboard
</div>
diff --git a/frontend/src/pages/secret-manager/CommitDetailsPage/CommitDetailsPage.tsx b/frontend/src/pages/secret-manager/CommitDetailsPage/CommitDetailsPage.tsx
index 28955901b2..05a3c72310 100644
--- a/frontend/src/pages/secret-manager/CommitDetailsPage/CommitDetailsPage.tsx
+++ b/frontend/src/pages/secret-manager/CommitDetailsPage/CommitDetailsPage.tsx
@@ -7,7 +7,6 @@ import {
ProjectPermissionCommitsActions,
ProjectPermissionSub
} from "@app/context/ProjectPermissionContext/types";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { CommitDetailsTab } from "./components/CommitDetailsTab";
@@ -35,7 +34,7 @@ export const CommitDetailsPage = () => {
const handleGoBackToHistory = () => {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/commits/$environment/$folderId` as const,
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: currentWorkspace.id,
folderId,
@@ -50,7 +49,7 @@ export const CommitDetailsPage = () => {
const handleGoToRollbackPreview = () => {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/commits/$environment/$folderId/$commitId/restore` as const,
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId/$commitId/restore",
params: {
projectId: currentWorkspace.id,
folderId,
diff --git a/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/RollbackPreviewTab.tsx b/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/RollbackPreviewTab.tsx
index 820e0e4a26..b14a5fe949 100644
--- a/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/RollbackPreviewTab.tsx
+++ b/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/RollbackPreviewTab.tsx
@@ -24,7 +24,6 @@ import {
} from "@app/context/ProjectPermissionContext/types";
import { usePopUp } from "@app/hooks";
import { useCommitRollback, useGetRollbackPreview } from "@app/hooks/api/folderCommits/queries";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { SecretVersionDiffView } from "../SecretVersionDiffView";
@@ -103,7 +102,7 @@ export const RollbackPreviewTab = (): JSX.Element => {
const goBackToHistory = () => {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/commits/$environment/$folderId` as const,
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: currentWorkspace.id,
folderId,
diff --git a/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/route.tsx b/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/route.tsx
index 2c63a5b655..d0d3aead05 100644
--- a/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/route.tsx
+++ b/frontend/src/pages/secret-manager/CommitDetailsPage/components/RollbackPreviewTab/route.tsx
@@ -1,30 +1,26 @@
-import {
- createFileRoute,
- linkOptions,
- stripSearchParams,
-} from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
-import { BreadcrumbTypes } from '@app/components/v2'
+import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
+import { BreadcrumbTypes } from "@app/components/v2";
-import { RollbackPreviewTab } from './RollbackPreviewTab'
+import { RollbackPreviewTab } from "./RollbackPreviewTab";
const RollbackPreviewTabQueryParamsSchema = z.object({
- secretPath: z.string().catch('/'),
-})
+ secretPath: z.string().catch("/")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/restore',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/restore"
)({
component: RollbackPreviewTab,
validateSearch: zodValidator(RollbackPreviewTabQueryParamsSchema),
search: {
- middlewares: [stripSearchParams({ secretPath: '/' })],
+ middlewares: [stripSearchParams({ secretPath: "/" })]
},
beforeLoad: ({ context, params, search }) => {
- const secretPathSegments = search.secretPath.split('/').filter(Boolean)
+ const secretPathSegments = search.secretPath.split("/").filter(Boolean);
return {
breadcrumbs: [
@@ -32,20 +28,18 @@ export const Route = createFileRoute(
{
type: BreadcrumbTypes.Dropdown,
label:
- context.project.environments.find(
- (el) => el.slug === params.environment,
- )?.name || '',
- dropdownTitle: 'Environments',
+ context.project.environments.find((el) => el.slug === params.environment)?.name || "",
+ dropdownTitle: "Environments",
links: context.project.environments.map((el) => ({
label: el.name,
link: linkOptions({
- to: '/secret-manager/$projectId/secrets/$envSlug',
+ to: "/projects/$projectId/secret-manager/secrets/$envSlug",
params: {
projectId: params.projectId,
- envSlug: el.slug,
- },
- }),
- })),
+ envSlug: el.slug
+ }
+ })
+ }))
},
...secretPathSegments.map((_, index) => ({
type: BreadcrumbTypes.Component,
@@ -57,41 +51,41 @@ export const Route = createFileRoute(
projectId={params.projectId}
disableCopy
/>
- ),
+ )
})),
{
- label: 'Commits',
+ label: "Commits",
link: linkOptions({
- to: '/secret-manager/$projectId/commits/$environment/$folderId',
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: params.projectId,
environment: params.environment,
- folderId: params.folderId,
+ folderId: params.folderId
},
search: {
- secretPath: search.secretPath,
- },
- }),
+ secretPath: search.secretPath
+ }
+ })
},
{
label: params.commitId,
link: linkOptions({
- to: '/secret-manager/$projectId/commits/$environment/$folderId/$commitId',
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId/$commitId",
params: {
projectId: params.projectId,
environment: params.environment,
folderId: params.folderId,
- commitId: params.commitId,
+ commitId: params.commitId
},
search: {
- secretPath: search.secretPath,
- },
- }),
+ secretPath: search.secretPath
+ }
+ })
},
{
- label: 'Restore',
- },
- ],
- }
- },
-})
+ label: "Restore"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/CommitDetailsPage/route.tsx b/frontend/src/pages/secret-manager/CommitDetailsPage/route.tsx
index d7411915a3..623b420509 100644
--- a/frontend/src/pages/secret-manager/CommitDetailsPage/route.tsx
+++ b/frontend/src/pages/secret-manager/CommitDetailsPage/route.tsx
@@ -1,30 +1,26 @@
-import {
- createFileRoute,
- linkOptions,
- stripSearchParams,
-} from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
-import { BreadcrumbTypes } from '@app/components/v2'
+import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
+import { BreadcrumbTypes } from "@app/components/v2";
-import { CommitDetailsPage } from './CommitDetailsPage'
+import { CommitDetailsPage } from "./CommitDetailsPage";
const CommitDetailsPageQueryParamsSchema = z.object({
- secretPath: z.string().catch('/'),
-})
+ secretPath: z.string().catch("/")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/"
)({
component: CommitDetailsPage,
validateSearch: zodValidator(CommitDetailsPageQueryParamsSchema),
search: {
- middlewares: [stripSearchParams({ secretPath: '/' })],
+ middlewares: [stripSearchParams({ secretPath: "/" })]
},
beforeLoad: ({ context, params, search }) => {
- const secretPathSegments = search.secretPath.split('/').filter(Boolean)
+ const secretPathSegments = search.secretPath.split("/").filter(Boolean);
return {
breadcrumbs: [
@@ -32,20 +28,18 @@ export const Route = createFileRoute(
{
type: BreadcrumbTypes.Dropdown,
label:
- context.project.environments.find(
- (el) => el.slug === params.environment,
- )?.name || '',
- dropdownTitle: 'Environments',
+ context.project.environments.find((el) => el.slug === params.environment)?.name || "",
+ dropdownTitle: "Environments",
links: context.project.environments.map((el) => ({
label: el.name,
link: linkOptions({
- to: '/secret-manager/$projectId/secrets/$envSlug',
+ to: "/projects/$projectId/secret-manager/secrets/$envSlug",
params: {
projectId: params.projectId,
- envSlug: el.slug,
- },
- }),
- })),
+ envSlug: el.slug
+ }
+ })
+ }))
},
...secretPathSegments.map((_, index) => ({
type: BreadcrumbTypes.Component,
@@ -57,26 +51,26 @@ export const Route = createFileRoute(
projectId={params.projectId}
disableCopy
/>
- ),
+ )
})),
{
- label: 'Commits',
+ label: "Commits",
link: linkOptions({
- to: '/secret-manager/$projectId/commits/$environment/$folderId',
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: params.projectId,
environment: params.environment,
- folderId: params.folderId,
+ folderId: params.folderId
},
search: {
- secretPath: search.secretPath,
- },
- }),
+ secretPath: search.secretPath
+ }
+ })
},
{
- label: params.commitId,
- },
- ],
- }
- },
-})
+ label: params.commitId
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/CommitsPage/CommitsPage.tsx b/frontend/src/pages/secret-manager/CommitsPage/CommitsPage.tsx
index c921d89c43..406a1b112b 100644
--- a/frontend/src/pages/secret-manager/CommitsPage/CommitsPage.tsx
+++ b/frontend/src/pages/secret-manager/CommitsPage/CommitsPage.tsx
@@ -9,7 +9,6 @@ import {
ProjectPermissionCommitsActions,
ProjectPermissionSub
} from "@app/context/ProjectPermissionContext/types";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { CommitHistoryTab } from "./components/CommitHistoryTab";
@@ -32,7 +31,7 @@ export const CommitsPage = () => {
const handleSelectCommit = (commitId: string) => {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/commits/$environment/$folderId/$commitId` as const,
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId/$commitId",
params: {
projectId: currentWorkspace.id,
folderId,
diff --git a/frontend/src/pages/secret-manager/CommitsPage/route.tsx b/frontend/src/pages/secret-manager/CommitsPage/route.tsx
index be0ddb6782..e98fcc8426 100644
--- a/frontend/src/pages/secret-manager/CommitsPage/route.tsx
+++ b/frontend/src/pages/secret-manager/CommitsPage/route.tsx
@@ -1,31 +1,27 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
-import {
- createFileRoute,
- linkOptions,
- stripSearchParams,
-} from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
-import { BreadcrumbTypes } from '@app/components/v2'
+import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
+import { BreadcrumbTypes } from "@app/components/v2";
-import { CommitsPage } from './CommitsPage'
+import { CommitsPage } from "./CommitsPage";
const CommitsPageQueryParamsSchema = z.object({
- secretPath: z.string().catch('/'),
-})
+ secretPath: z.string().catch("/")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/"
)({
component: CommitsPage,
validateSearch: zodValidator(CommitsPageQueryParamsSchema),
search: {
- middlewares: [stripSearchParams({ secretPath: '/' })],
+ middlewares: [stripSearchParams({ secretPath: "/" })]
},
beforeLoad: ({ context, params, search }) => {
- const secretPathSegments = search.secretPath.split('/').filter(Boolean)
+ const secretPathSegments = search.secretPath.split("/").filter(Boolean);
return {
breadcrumbs: [
@@ -33,20 +29,18 @@ export const Route = createFileRoute(
{
type: BreadcrumbTypes.Dropdown,
label:
- context.project.environments.find(
- (el) => el.slug === params.environment,
- )?.name || '',
- dropdownTitle: 'Environments',
+ context.project.environments.find((el) => el.slug === params.environment)?.name || "",
+ dropdownTitle: "Environments",
links: context.project.environments.map((el) => ({
label: el.name,
link: linkOptions({
- to: '/secret-manager/$projectId/secrets/$envSlug',
+ to: "/projects/$projectId/secret-manager/secrets/$envSlug",
params: {
projectId: params.projectId,
- envSlug: el.slug,
- },
- }),
- })),
+ envSlug: el.slug
+ }
+ })
+ }))
},
...secretPathSegments.map((_, index) => ({
type: BreadcrumbTypes.Component,
@@ -58,20 +52,20 @@ export const Route = createFileRoute(
projectId={params.projectId}
disableCopy
/>
- ),
+ )
})),
{
- label: 'Commits',
+ label: "Commits",
link: linkOptions({
- to: '/secret-manager/$projectId/commits/$environment/$folderId',
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: params.projectId,
environment: params.environment,
- folderId: params.folderId,
- },
- }),
- },
- ],
- }
- },
-})
+ folderId: params.folderId
+ }
+ })
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/IPAllowlistPage/route.tsx b/frontend/src/pages/secret-manager/IPAllowlistPage/route.tsx
index 2dc4fcbc1a..16ede08113 100644
--- a/frontend/src/pages/secret-manager/IPAllowlistPage/route.tsx
+++ b/frontend/src/pages/secret-manager/IPAllowlistPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { IPAllowListPage } from './IPAllowlistPage'
+import { IPAllowListPage } from "./IPAllowlistPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/allowlist',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/allowlist"
)({
- component: () => IPAllowListPage,
-})
+ component: () => IPAllowListPage
+});
diff --git a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/route.tsx b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/route.tsx
index 0eeb6cbafd..4248354212 100644
--- a/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsDetailsByIDPage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { IntegrationDetailsByIDPage } from './IntegrationsDetailsByIDPage'
+import { IntegrationDetailsByIDPage } from "./IntegrationsDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/$integrationId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/$integrationId"
)({
component: IntegrationDetailsByIDPage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Details',
- },
- ],
- }
- },
-})
+ label: "Details"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx
index 03f0bf4021..7c78f8211f 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/IntegrationsListPage.utils.tsx
@@ -69,7 +69,7 @@ export const redirectForProviderAuth = (
switch (integrationOption.slug) {
case "gcp-secret-manager":
navigate({
- to: "/secret-manager/$projectId/integrations/gcp-secret-manager/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/gcp-secret-manager/authorize",
params: {
projectId
}
@@ -81,7 +81,7 @@ export const redirectForProviderAuth = (
return;
}
navigate({
- to: "/secret-manager/$projectId/integrations/azure-key-vault/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/azure-key-vault/authorize",
params: {
projectId
},
@@ -103,7 +103,7 @@ export const redirectForProviderAuth = (
}
case "aws-parameter-store":
navigate({
- to: "/secret-manager/$projectId/integrations/aws-parameter-store/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/aws-parameter-store/authorize",
params: {
projectId
}
@@ -111,7 +111,7 @@ export const redirectForProviderAuth = (
break;
case "aws-secret-manager":
navigate({
- to: "/secret-manager/$projectId/integrations/aws-secret-manager/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/aws-secret-manager/authorize",
params: {
projectId
}
@@ -147,7 +147,7 @@ export const redirectForProviderAuth = (
}
case "github":
navigate({
- to: "/secret-manager/$projectId/integrations/github/auth-mode-selection",
+ to: "/projects/$projectId/secret-manager/integrations/github/auth-mode-selection",
params: {
projectId
}
@@ -155,7 +155,7 @@ export const redirectForProviderAuth = (
break;
case "gitlab":
navigate({
- to: "/secret-manager/$projectId/integrations/gitlab/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/gitlab/authorize",
params: {
projectId
}
@@ -163,7 +163,7 @@ export const redirectForProviderAuth = (
break;
case "render":
navigate({
- to: "/secret-manager/$projectId/integrations/render/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/render/authorize",
params: {
projectId
}
@@ -171,7 +171,7 @@ export const redirectForProviderAuth = (
break;
case "flyio":
navigate({
- to: "/secret-manager/$projectId/integrations/flyio/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/flyio/authorize",
params: {
projectId
}
@@ -179,7 +179,7 @@ export const redirectForProviderAuth = (
break;
case "circleci":
navigate({
- to: "/secret-manager/$projectId/integrations/circleci/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/circleci/authorize",
params: {
projectId
}
@@ -187,7 +187,7 @@ export const redirectForProviderAuth = (
break;
case "databricks":
navigate({
- to: "/secret-manager/$projectId/integrations/databricks/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/databricks/authorize",
params: {
projectId
}
@@ -195,7 +195,7 @@ export const redirectForProviderAuth = (
break;
case "laravel-forge":
navigate({
- to: "/secret-manager/$projectId/integrations/laravel-forge/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/laravel-forge/authorize",
params: {
projectId
}
@@ -203,7 +203,7 @@ export const redirectForProviderAuth = (
break;
case "travisci":
navigate({
- to: "/secret-manager/$projectId/integrations/travisci/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/travisci/authorize",
params: {
projectId
}
@@ -211,7 +211,7 @@ export const redirectForProviderAuth = (
break;
case "supabase":
navigate({
- to: "/secret-manager/$projectId/integrations/supabase/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/supabase/authorize",
params: {
projectId
}
@@ -219,7 +219,7 @@ export const redirectForProviderAuth = (
break;
case "checkly":
navigate({
- to: "/secret-manager/$projectId/integrations/checkly/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/checkly/authorize",
params: {
projectId
}
@@ -227,7 +227,7 @@ export const redirectForProviderAuth = (
break;
case "qovery":
navigate({
- to: "/secret-manager/$projectId/integrations/qovery/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/qovery/authorize",
params: {
projectId
}
@@ -235,7 +235,7 @@ export const redirectForProviderAuth = (
break;
case "railway":
navigate({
- to: "/secret-manager/$projectId/integrations/railway/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/railway/authorize",
params: {
projectId
}
@@ -243,7 +243,7 @@ export const redirectForProviderAuth = (
break;
case "terraform-cloud":
navigate({
- to: "/secret-manager/$projectId/integrations/terraform-cloud/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/terraform-cloud/authorize",
params: {
projectId
}
@@ -251,7 +251,7 @@ export const redirectForProviderAuth = (
break;
case "hashicorp-vault":
navigate({
- to: "/secret-manager/$projectId/integrations/hashicorp-vault/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/hashicorp-vault/authorize",
params: {
projectId
}
@@ -259,7 +259,7 @@ export const redirectForProviderAuth = (
break;
case "cloudflare-pages":
navigate({
- to: "/secret-manager/$projectId/integrations/cloudflare-pages/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/cloudflare-pages/authorize",
params: {
projectId
}
@@ -267,7 +267,7 @@ export const redirectForProviderAuth = (
break;
case "cloudflare-workers":
navigate({
- to: "/secret-manager/$projectId/integrations/cloudflare-workers/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/cloudflare-workers/authorize",
params: {
projectId
}
@@ -284,7 +284,7 @@ export const redirectForProviderAuth = (
}
case "codefresh":
navigate({
- to: "/secret-manager/$projectId/integrations/codefresh/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/codefresh/authorize",
params: {
projectId
}
@@ -292,7 +292,7 @@ export const redirectForProviderAuth = (
break;
case "digital-ocean-app-platform":
navigate({
- to: "/secret-manager/$projectId/integrations/digital-ocean-app-platform/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/digital-ocean-app-platform/authorize",
params: {
projectId
}
@@ -300,7 +300,7 @@ export const redirectForProviderAuth = (
break;
case "cloud-66":
navigate({
- to: "/secret-manager/$projectId/integrations/cloud-66/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/cloud-66/authorize",
params: {
projectId
}
@@ -308,7 +308,7 @@ export const redirectForProviderAuth = (
break;
case "northflank":
navigate({
- to: "/secret-manager/$projectId/integrations/northflank/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/northflank/authorize",
params: {
projectId
}
@@ -316,7 +316,7 @@ export const redirectForProviderAuth = (
break;
case "windmill":
navigate({
- to: "/secret-manager/$projectId/integrations/windmill/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/windmill/authorize",
params: {
projectId
}
@@ -324,7 +324,7 @@ export const redirectForProviderAuth = (
break;
case "teamcity":
navigate({
- to: "/secret-manager/$projectId/integrations/teamcity/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/teamcity/authorize",
params: {
projectId
}
@@ -332,7 +332,7 @@ export const redirectForProviderAuth = (
break;
case "hasura-cloud":
navigate({
- to: "/secret-manager/$projectId/integrations/hasura-cloud/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/hasura-cloud/authorize",
params: {
projectId
}
@@ -340,7 +340,7 @@ export const redirectForProviderAuth = (
break;
case "rundeck":
navigate({
- to: "/secret-manager/$projectId/integrations/rundeck/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/rundeck/authorize",
params: {
projectId
}
@@ -348,7 +348,7 @@ export const redirectForProviderAuth = (
break;
case "azure-devops":
navigate({
- to: "/secret-manager/$projectId/integrations/azure-devops/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/azure-devops/authorize",
params: {
projectId
}
@@ -356,7 +356,7 @@ export const redirectForProviderAuth = (
break;
case "octopus-deploy":
navigate({
- to: "/secret-manager/$projectId/integrations/octopus-deploy/authorize",
+ to: "/projects/$projectId/secret-manager/integrations/octopus-deploy/authorize",
params: {
projectId
}
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
index fab6b50ac1..194c543d26 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/NativeIntegrationsTab/IntegrationRow.tsx
@@ -59,7 +59,7 @@ export const IntegrationRow = ({
<Tr
onClick={() =>
navigate({
- to: "/secret-manager/$projectId/integrations/$integrationId",
+ to: "/projects/$projectId/secret-manager/integrations/$integrationId",
params: {
integrationId: integration.id,
projectId: currentWorkspace.id
diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
index 4d981e7d22..c599564596 100644
--- a/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/route.tsx
@@ -36,7 +36,7 @@ export const Route = createFileRoute(
});
} catch {
throw redirect({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId
},
@@ -46,7 +46,7 @@ export const Route = createFileRoute(
if (secretSyncs.length) {
throw redirect({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId
},
@@ -62,7 +62,7 @@ export const Route = createFileRoute(
});
} catch {
throw redirect({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId
},
@@ -72,7 +72,7 @@ export const Route = createFileRoute(
if (integrations.length) {
throw redirect({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId
},
@@ -81,7 +81,7 @@ export const Route = createFileRoute(
}
throw redirect({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId
},
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index 045ee58cdf..42a5cde69c 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -88,7 +88,7 @@ import { useUpdateFolderBatch } from "@app/hooks/api/secretFolders/queries";
import { TUpdateFolderBatchDTO } from "@app/hooks/api/secretFolders/types";
import { TSecretRotationV2 } from "@app/hooks/api/secretRotationsV2";
import { SecretType, SecretV3RawSanitized, TSecretFolder } from "@app/hooks/api/types";
-import { ProjectType, ProjectVersion } from "@app/hooks/api/workspace/types";
+import { ProjectVersion } from "@app/hooks/api/workspace/types";
import {
useDynamicSecretOverview,
useFolderOverview,
@@ -655,7 +655,7 @@ export const OverviewPage = () => {
const envIndex = visibleEnvs.findIndex((el) => slug === el.slug);
if (envIndex !== -1) {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/secrets/$envSlug` as const,
+ to: "/projects/$projectId/secret-manager/secrets/$envSlug",
params: {
projectId: workspaceId,
envSlug: slug
@@ -1371,7 +1371,7 @@ export const OverviewPage = () => {
iconSize="3x"
>
<Link
- to={`/${ProjectType.SecretManager}/$projectId/settings` as const}
+ to="/projects/$projectId/secret-manager/settings"
params={{
projectId: workspaceId
}}
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderBreadCrumbs/FolderBreadCrumbs.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/FolderBreadCrumbs/FolderBreadCrumbs.tsx
index 8f6908142a..377daa1d6f 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderBreadCrumbs/FolderBreadCrumbs.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderBreadCrumbs/FolderBreadCrumbs.tsx
@@ -9,7 +9,7 @@ type Props = {
export const FolderBreadCrumbs = ({ secretPath = "/", onResetSearch }: Props) => {
const navigate = useNavigate({
- from: "/secret-manager/$projectId/overview"
+ from: "/projects/$projectId/secret-manager/overview"
});
const onFolderCrumbClick = (index: number) => {
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchDynamicSecretItem.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchDynamicSecretItem.tsx
index dcc0b40faa..0d01370d44 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchDynamicSecretItem.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchDynamicSecretItem.tsx
@@ -17,7 +17,7 @@ export const QuickSearchDynamicSecretItem = ({
onClose
}: Props) => {
const navigate = useNavigate({
- from: "/secret-manager/$projectId/overview"
+ from: "/projects/$projectId/secret-manager/overview"
});
const [groupDynamicSecret] = dynamicSecretGroup;
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchFolderItem.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchFolderItem.tsx
index fa469500b5..77f1f52152 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchFolderItem.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchFolderItem.tsx
@@ -13,7 +13,7 @@ type Props = {
export const QuickSearchFolderItem = ({ folderGroup, onClose }: Props) => {
const navigate = useNavigate({
- from: "/secret-manager/$projectId/overview"
+ from: "/projects/$projectId/secret-manager/overview"
});
const [groupFolder] = folderGroup;
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretItem.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretItem.tsx
index 9943de5b61..c7a84f6271 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretItem.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretItem.tsx
@@ -46,7 +46,7 @@ export const QuickSearchSecretItem = ({
isSingleEnv,
search
}: Props) => {
- const navigate = useNavigate({ from: "/secret-manager/$projectId/overview" });
+ const navigate = useNavigate({ from: "/projects/$projectId/secret-manager/overview" });
const envSlugMap = new Map(environments.map((env) => [env.slug, env]));
const [isUrlCopied, , setIsUrlCopied] = useTimedReset<boolean>({
initialState: false
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretRotationItem.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretRotationItem.tsx
index 6b6fc423ed..84869c6564 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretRotationItem.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretSearchInput/components/QuickSearchSecretRotationItem.tsx
@@ -13,7 +13,7 @@ type Props = {
export const QuickSearchSecretRotationItem = ({ secretRotationGroup, onClose }: Props) => {
const navigate = useNavigate({
- from: "/secret-manager/$projectId/overview"
+ from: "/projects/$projectId/secret-manager/overview"
});
const [groupSecretRotation] = secretRotationGroup;
diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/route.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/route.tsx
index ab2774154d..abeb64951f 100644
--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/route.tsx
+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/route.tsx
@@ -1,15 +1,15 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretApprovalsPage } from './SecretApprovalsPage'
+import { SecretApprovalsPage } from "./SecretApprovalsPage";
const SecretApprovalPageQueryParams = z.object({
- requestId: z.string().catch(''),
-})
+ requestId: z.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/approval',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/approval"
)({
component: SecretApprovalsPage,
validateSearch: zodValidator(SecretApprovalPageQueryParams),
@@ -18,9 +18,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Approvals',
- },
- ],
- }
- },
-})
+ label: "Approvals"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
index 84edeec9a9..0f1c194d21 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
@@ -46,7 +46,6 @@ import { useGetProjectSecretsDetails } from "@app/hooks/api/dashboard";
import { DashboardSecretsOrderBy } from "@app/hooks/api/dashboard/types";
import { useGetFolderCommitsCount } from "@app/hooks/api/folderCommits";
import { OrderByDirection } from "@app/hooks/api/generic/types";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { hasSecretReadValueOrDescribePermission } from "@app/lib/fn/permission";
import { SecretRotationListView } from "@app/pages/secret-manager/SecretDashboardPage/components/SecretRotationListView";
@@ -191,7 +190,7 @@ const Page = () => {
type: "error"
});
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/overview` as const,
+ to: "/projects/$projectId/secret-manager/overview",
params: {
projectId: workspaceId
}
@@ -317,7 +316,7 @@ const Page = () => {
const handleOnClickRollbackMode = () => {
if (isPITEnabled) {
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/commits/$environment/$folderId` as const,
+ to: "/projects/$projectId/secret-manager/commits/$environment/$folderId",
params: {
projectId: workspaceId,
folderId,
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx
index 5180383bb6..6e501a06dd 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx
@@ -990,9 +990,7 @@ export const SecretDetailSidebar = ({
className="z-[100] capitalize"
>
<Link
- to={
- `/${ProjectType.SecretManager}/$projectId/members/$membershipId` as const
- }
+ to="/projects/$projectId/members/$membershipId"
params={{
projectId: currentWorkspace.id,
membershipId: user.membershipId
@@ -1023,9 +1021,7 @@ export const SecretDetailSidebar = ({
className="z-[100]"
>
<Link
- to={
- `/${ProjectType.SecretManager}/$projectId/identities/$identityId` as const
- }
+ to="/projects/$projectId/identities/$identityId"
params={{
projectId: currentWorkspace.id,
identityId: identity.id
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/route.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/route.tsx
index f8962527c3..867cda1a5a 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/route.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/route.tsx
@@ -1,51 +1,44 @@
-import {
- createFileRoute,
- linkOptions,
- stripSearchParams,
-} from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
-import { BreadcrumbTypes } from '@app/components/v2'
+import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
+import { BreadcrumbTypes } from "@app/components/v2";
-import { SecretDashboardPage } from './SecretDashboardPage'
+import { SecretDashboardPage } from "./SecretDashboardPage";
const SecretDashboardPageQueryParamsSchema = z.object({
- secretPath: z.string().catch('/'),
- search: z.string().catch(''),
- tags: z.string().catch(''),
-})
+ secretPath: z.string().catch("/"),
+ search: z.string().catch(""),
+ tags: z.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secrets/$envSlug',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secrets/$envSlug"
)({
component: SecretDashboardPage,
validateSearch: zodValidator(SecretDashboardPageQueryParamsSchema),
search: {
- middlewares: [stripSearchParams({ secretPath: '/', search: '', tags: '' })],
+ middlewares: [stripSearchParams({ secretPath: "/", search: "", tags: "" })]
},
beforeLoad: ({ context, params, search }) => {
- const secretPathSegments = search.secretPath.split('/').filter(Boolean)
+ const secretPathSegments = search.secretPath.split("/").filter(Boolean);
return {
breadcrumbs: [
...context.breadcrumbs,
{
type: BreadcrumbTypes.Dropdown,
- label:
- context.project.environments.find(
- (el) => el.slug === params.envSlug,
- )?.name || '',
- dropdownTitle: 'Environments',
+ label: context.project.environments.find((el) => el.slug === params.envSlug)?.name || "",
+ dropdownTitle: "Environments",
links: context.project.environments.map((el) => ({
label: el.name,
link: linkOptions({
- to: '/secret-manager/$projectId/secrets/$envSlug',
+ to: "/projects/$projectId/secret-manager/secrets/$envSlug",
params: {
projectId: params.projectId,
- envSlug: el.slug,
- },
- }),
- })),
+ envSlug: el.slug
+ }
+ })
+ }))
},
...secretPathSegments.map((_, index) => ({
type: BreadcrumbTypes.Component,
@@ -56,9 +49,9 @@ export const Route = createFileRoute(
environmentSlug={params.envSlug}
projectId={params.projectId}
/>
- ),
- })),
- ],
- }
- },
-})
+ )
+ }))
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/SecretRotationPage/SecretRotationPage.tsx b/frontend/src/pages/secret-manager/SecretRotationPage/SecretRotationPage.tsx
index 98fcb5046f..e419403809 100644
--- a/frontend/src/pages/secret-manager/SecretRotationPage/SecretRotationPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretRotationPage/SecretRotationPage.tsx
@@ -53,7 +53,6 @@ import {
useRestartSecretRotation
} from "@app/hooks/api";
import { TSecretRotationProviderTemplate } from "@app/hooks/api/secretRotation/types";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { CreateRotationForm } from "@app/pages/secret-manager/SecretRotationPage/components/CreateRotationForm";
const Page = () => {
@@ -173,7 +172,7 @@ const Page = () => {
PostgreSQL and Microsoft SQL Server Rotations can now be created from the{" "}
<Link
className="text-mineshaft-100 underline decoration-primary underline-offset-2 hover:text-mineshaft-200"
- to={`/${ProjectType.SecretManager}/$projectId/overview` as const}
+ to="/projects/$projectId/secret-manager/overview"
params={{ projectId: currentWorkspace.id }}
>
Secret Manager Dashboard
@@ -408,7 +407,7 @@ const Page = () => {
Infisical is revamping its Secret Rotation experience. Navigate to the{" "}
<Link
className="text-mineshaft-100 underline decoration-primary underline-offset-2 hover:text-mineshaft-200"
- to={`/${ProjectType.SecretManager}/$projectId/overview` as const}
+ to="/projects/$projectId/secret-manager/overview"
params={{ projectId: currentWorkspace.id }}
>
Secret Manager Dashboard
@@ -425,7 +424,7 @@ const Page = () => {
<Button
onClick={() =>
navigate({
- to: `/${ProjectType.SecretManager}/$projectId/overview` as const,
+ to: "/projects/$projectId/secret-manager/overview",
params: { projectId: currentWorkspace.id }
})
}
diff --git a/frontend/src/pages/secret-manager/SecretRotationPage/route.tsx b/frontend/src/pages/secret-manager/SecretRotationPage/route.tsx
index fd3a703cf0..326ef57458 100644
--- a/frontend/src/pages/secret-manager/SecretRotationPage/route.tsx
+++ b/frontend/src/pages/secret-manager/SecretRotationPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SecretRotationPage } from './SecretRotationPage'
+import { SecretRotationPage } from "./SecretRotationPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secret-rotation',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secret-rotation"
)({
component: SecretRotationPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Secret Rotation',
- },
- ],
- }
- },
-})
+ label: "Secret Rotation"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/route.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/route.tsx
index 87551a6226..a184d22ff1 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { SecretSyncDetailsByIDPage } from './SecretSyncDetailsByIDPage'
+import { SecretSyncDetailsByIDPage } from "./SecretSyncDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/secret-syncs/$destination/$syncId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/secret-syncs/$destination/$syncId"
)({
component: SecretSyncDetailsByIDPage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.SecretSyncs,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.SecretSyncs
+ }
+ })
},
{
- label: 'Secret Sync',
- },
- ],
- }
- },
-})
+ label: "Secret Sync"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/SettingsPage/route.tsx b/frontend/src/pages/secret-manager/SettingsPage/route.tsx
index a36834428e..f587ab680a 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/route.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SettingsPage } from './SettingsPage'
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Settings',
- },
- ],
- }
- },
-})
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
index 1e8503e810..31702635a9 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/AwsParameterStoreAuthorizePage.tsx
@@ -68,7 +68,7 @@ export const AWSParameterStoreAuthorizeIntegrationPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/aws-parameter-store/create",
+ to: "/projects/$projectId/secret-manager/integrations/aws-parameter-store/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx
index a8ec1db6cf..c1b38e13eb 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AWSParameterStoreAuthorizeIntegrationPage } from './AwsParameterStoreAuthorizePage'
+import { AWSParameterStoreAuthorizeIntegrationPage } from "./AwsParameterStoreAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/authorize"
)({
component: AWSParameterStoreAuthorizeIntegrationPage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'AWS Parameter Store',
- },
- ],
- }
- },
-})
+ label: "AWS Parameter Store"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
index efb8573b32..7c2448fe99 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/AwsParamterStoreConfigurePage.tsx
@@ -156,7 +156,7 @@ export const AWSParameterStoreConfigurePage = () => {
setPathErrorText("");
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx
index b1696bd1cb..10a1fcfebe 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AWSParameterStoreConfigurePage } from './AwsParamterStoreConfigurePage'
+import { AWSParameterStoreConfigurePage } from "./AwsParamterStoreConfigurePage";
const AwsParameterStoreConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/create"
)({
component: AWSParameterStoreConfigurePage,
validateSearch: zodValidator(AwsParameterStoreConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'AWS Parameter Store',
- },
- ],
- }
- },
-})
+ label: "AWS Parameter Store"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
index 355283170e..3a4e2fdc05 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/AwsSecretManagerAuthorizePage.tsx
@@ -66,7 +66,7 @@ export const AWSSecretManagerAuthorizePage = () => {
})
});
navigate({
- to: "/secret-manager/$projectId/integrations/aws-secret-manager/create",
+ to: "/projects/$projectId/secret-manager/integrations/aws-secret-manager/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx
index a8169d282c..06594c276d 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AWSSecretManagerAuthorizePage } from './AwsSecretManagerAuthorizePage'
+import { AWSSecretManagerAuthorizePage } from "./AwsSecretManagerAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/authorize"
)({
component: AWSSecretManagerAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'AWS Secret Manager',
- },
- ],
- }
- },
-})
+ label: "AWS Secret Manager"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
index 2297575d70..8503adb796 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/AwsSecretManagerConfigurePage.tsx
@@ -204,7 +204,7 @@ export const AwsSecretManagerConfigurePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx
index 0cb272df09..ec636db09a 100644
--- a/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AwsSecretManagerConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AwsSecretManagerConfigurePage } from './AwsSecretManagerConfigurePage'
+import { AwsSecretManagerConfigurePage } from "./AwsSecretManagerConfigurePage";
const AwsSecretManagerConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/create"
)({
component: AwsSecretManagerConfigurePage,
validateSearch: zodValidator(AwsSecretManagerConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'AWS Secret Manager',
- },
- ],
- }
- },
-})
+ label: "AWS Secret Manager"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
index 7485068ab0..f4c3a76d0a 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/AzureAppConfigurationConfigurePage.tsx
@@ -131,7 +131,7 @@ export const AzureAppConfigurationConfigurePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx
index e0e9895b7c..e773ef6602 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureAppConfigurationConfigurePage } from './AzureAppConfigurationConfigurePage'
+import { AzureAppConfigurationConfigurePage } from "./AzureAppConfigurationConfigurePage";
const AzureAppConfigurationPageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/create"
)({
component: AzureAppConfigurationConfigurePage,
validateSearch: zodValidator(AzureAppConfigurationPageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure App Configuration',
- },
- ],
- }
- },
-})
+ label: "Azure App Configuration"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
index 1b21d92ae3..1eba3ccf10 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/AzureAppConfigurationOauthCallbackPage.tsx
@@ -28,7 +28,7 @@ export const AzureAppConfigurationOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/azure-app-configuration/create",
+ to: "/projects/$projectId/secret-manager/integrations/azure-app-configuration/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx
index f401f83d47..7b4772d919 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureAppConfigurationOauthCallbackPage/route.tsx
@@ -1,43 +1,39 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureAppConfigurationOauthCallbackPage } from './AzureAppConfigurationOauthCallbackPage'
+import { AzureAppConfigurationOauthCallbackPage } from "./AzureAppConfigurationOauthCallbackPage";
-export const AzureAppConfigurationOauthCallbackPageQueryParamsSchema = z.object(
- {
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
- },
-)
+export const AzureAppConfigurationOauthCallbackPageQueryParamsSchema = z.object({
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback"
)({
component: AzureAppConfigurationOauthCallbackPage,
- validateSearch: zodValidator(
- AzureAppConfigurationOauthCallbackPageQueryParamsSchema,
- ),
+ validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema),
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure App Configuration',
- },
- ],
- }
- },
-})
+ label: "Azure App Configuration"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
index e441b99b36..3bfbd4a548 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/AzureDevopsAuthorizePage.tsx
@@ -39,7 +39,7 @@ export const AzureDevopsAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/azure-devops/create",
+ to: "/projects/$projectId/secret-manager/integrations/azure-devops/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx
index fcde60e074..8a27db56a8 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureDevopsAuthorizePage } from './AzureDevopsAuthorizePage'
+import { AzureDevopsAuthorizePage } from "./AzureDevopsAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/authorize"
)({
component: AzureDevopsAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure Devops',
- },
- ],
- }
- },
-})
+ label: "Azure Devops"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
index 7615909ad4..a995609410 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/AzureDevopsConfigurePage.tsx
@@ -80,7 +80,7 @@ export const AzureDevopsConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx
index 3f3993e1cd..1f3da61161 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureDevopsConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureDevopsConfigurePage } from './AzureDevopsConfigurePage'
+import { AzureDevopsConfigurePage } from "./AzureDevopsConfigurePage";
const AzureDevopsConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/create"
)({
component: AzureDevopsConfigurePage,
validateSearch: zodValidator(AzureDevopsConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure Devops',
- },
- ],
- }
- },
-})
+ label: "Azure Devops"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/route.tsx
index e879d3fbe0..4062139bb6 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultAuthorizePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import z from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import z from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureKeyVaultAuthorizePage } from './AzureKeyVaultAuthorizePage'
+import { AzureKeyVaultAuthorizePage } from "./AzureKeyVaultAuthorizePage";
const PageQueryParamsSchema = z.object({
state: z.string(),
- clientId: z.string().optional(),
-})
+ clientId: z.string().optional()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/authorize"
)({
component: AzureKeyVaultAuthorizePage,
validateSearch: PageQueryParamsSchema,
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure Key Vault',
- },
- ],
- }
- },
-})
+ label: "Azure Key Vault"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
index 4dd3c4a110..4d7af91a1c 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/AzureKeyVaultConfigurePage.tsx
@@ -88,7 +88,7 @@ export const AzureKeyVaultConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx
index 0014cb9818..49b091efdd 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureKeyVaultConfigurePage } from './AzureKeyVaultConfigurePage'
+import { AzureKeyVaultConfigurePage } from "./AzureKeyVaultConfigurePage";
const AzureKeyVaultConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/create"
)({
component: AzureKeyVaultConfigurePage,
validateSearch: zodValidator(AzureKeyVaultConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure Key Vault',
- },
- ],
- }
- },
-})
+ label: "Azure Key Vault"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
index ae8d990a44..e4b38cf766 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/AzureKeyVaultOauthCallback.tsx
@@ -28,7 +28,7 @@ export const AzureKeyVaultOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/azure-key-vault/create",
+ to: "/projects/$projectId/secret-manager/integrations/azure-key-vault/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx
index 309fd0db42..315243d11c 100644
--- a/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/AzureKeyVaultOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { AzureKeyVaultOauthCallbackPage } from './AzureKeyVaultOauthCallback'
+import { AzureKeyVaultOauthCallbackPage } from "./AzureKeyVaultOauthCallback";
export const AzureKeyVaultOauthCallbackQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback"
)({
component: AzureKeyVaultOauthCallbackPage,
validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Azure Key Vault',
- },
- ],
- }
- },
-})
+ label: "Azure Key Vault"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
index d2809aed33..ba4d9babe5 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/BitbucketConfigurePage.tsx
@@ -148,7 +148,7 @@ export const BitbucketConfigurePage = () => {
text: "Successfully created integration"
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx
index f5ac1e1e2a..c3ed59f8d4 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { BitbucketConfigurePage } from './BitbucketConfigurePage'
+import { BitbucketConfigurePage } from "./BitbucketConfigurePage";
const BitbucketConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/create"
)({
component: BitbucketConfigurePage,
validateSearch: zodValidator(BitbucketConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Bitbucket',
- },
- ],
- }
- },
-})
+ label: "Bitbucket"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
index 9cc221fac8..386d22a696 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/BitbucketOauthCallbackPage.tsx
@@ -27,7 +27,7 @@ export const BitbucketOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/bitbucket/create",
+ to: "/projects/$projectId/secret-manager/integrations/bitbucket/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx
index f8d92cff54..2d6581a81d 100644
--- a/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/BitbucketOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { BitbucketOauthCallbackPage } from './BitbucketOauthCallbackPage'
+import { BitbucketOauthCallbackPage } from "./BitbucketOauthCallbackPage";
export const BitbucketOauthCallbackQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/oauth2/callback"
)({
component: BitbucketOauthCallbackPage,
validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Bitbucket',
- },
- ],
- }
- },
-})
+ label: "Bitbucket"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
index b3ba43fbdf..b2e4baa258 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/ChecklyAuthorizePage.tsx
@@ -36,7 +36,7 @@ export const ChecklyAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/checkly/create",
+ to: "/projects/$projectId/secret-manager/integrations/checkly/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx
index 1af79a5ae7..04de97d8c5 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { ChecklyAuthorizePage } from './ChecklyAuthorizePage'
+import { ChecklyAuthorizePage } from "./ChecklyAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/authorize"
)({
component: ChecklyAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Checkly',
- },
- ],
- }
- },
-})
+ label: "Checkly"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
index 63169a3d11..357b179c1d 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/ChecklyConfigurePage.tsx
@@ -113,7 +113,7 @@ export const ChecklyConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx
index fbf431f8a0..7c7b852f07 100644
--- a/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/ChecklyConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { ChecklyConfigurePage } from './ChecklyConfigurePage'
+import { ChecklyConfigurePage } from "./ChecklyConfigurePage";
const ChecklyConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/create"
)({
component: ChecklyConfigurePage,
validateSearch: zodValidator(ChecklyConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Checkly',
- },
- ],
- }
- },
-})
+ label: "Checkly"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
index 5de27cf492..c4b8ded6e2 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/CircleCIAuthorizePage.tsx
@@ -36,7 +36,7 @@ export const CircleCIAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/circleci/create",
+ to: "/projects/$projectId/secret-manager/integrations/circleci/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx
index c4cb432140..c00bb9e0a8 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CircleCIAuthorizePage } from './CircleCIAuthorizePage'
+import { CircleCIAuthorizePage } from "./CircleCIAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/authorize"
)({
component: CircleCIAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Circle CI',
- },
- ],
- }
- },
-})
+ label: "Circle CI"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
index 9ba0508085..0b839bac3b 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/CircleCIConfigurePage.tsx
@@ -103,7 +103,7 @@ export const CircleCIConfigurePage = () => {
text: "Successfully created integration"
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx
index 438a873bf6..676eb06de5 100644
--- a/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CircleCIConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CircleCIConfigurePage } from './CircleCIConfigurePage'
+import { CircleCIConfigurePage } from "./CircleCIConfigurePage";
const CircleCIConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/create"
)({
component: CircleCIConfigurePage,
validateSearch: zodValidator(CircleCIConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Circle CI',
- },
- ],
- }
- },
-})
+ label: "Circle CI"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
index 4af4ca60f9..5f569d5362 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/Cloud66AuthorizePage.tsx
@@ -34,7 +34,7 @@ export const Cloud66AuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/cloud-66/create",
+ to: "/projects/$projectId/secret-manager/integrations/cloud-66/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx
index 40a6831412..e5db08e19f 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66AuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { Cloud66AuthorizePage } from './Cloud66AuthorizePage'
+import { Cloud66AuthorizePage } from "./Cloud66AuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/authorize"
)({
component: Cloud66AuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloud 66',
- },
- ],
- }
- },
-})
+ label: "Cloud 66"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
index ace6e4f6cc..0e12890ceb 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/Cloud66ConfigurePage.tsx
@@ -75,7 +75,7 @@ export const Cloud66ConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx
index f2ccc6faca..f7e03c8e56 100644
--- a/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/Cloud66ConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { Cloud66ConfigurePage } from './Cloud66ConfigurePage'
+import { Cloud66ConfigurePage } from "./Cloud66ConfigurePage";
const Cloud66ConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/create"
)({
component: Cloud66ConfigurePage,
validateSearch: zodValidator(Cloud66ConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloud 66',
- },
- ],
- }
- },
-})
+ label: "Cloud 66"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
index 58e7455be0..b643f03d9c 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/CloudflarePagesAuthorizePage.tsx
@@ -41,7 +41,7 @@ export const CloudflarePagesAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/cloudflare-pages/create",
+ to: "/projects/$projectId/secret-manager/integrations/cloudflare-pages/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx
index 8c72f7e6fe..3186bde971 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CloudflarePagesAuthorizePage } from './CloudflarePagesAuthorizePage'
+import { CloudflarePagesAuthorizePage } from "./CloudflarePagesAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/authorize"
)({
component: CloudflarePagesAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloudflare Pages',
- },
- ],
- }
- },
-})
+ label: "Cloudflare Pages"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
index 1d9c188e69..471e686af2 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/CloudflarePagesConfigurePage.tsx
@@ -94,7 +94,7 @@ export const CloudflarePagesConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx
index 33dcf62e1b..58e5e2bed3 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflarePagesConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CloudflarePagesConfigurePage } from './CloudflarePagesConfigurePage'
+import { CloudflarePagesConfigurePage } from "./CloudflarePagesConfigurePage";
const CloudflarePagesConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/create"
)({
component: CloudflarePagesConfigurePage,
validateSearch: zodValidator(CloudflarePagesConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloudflare Pages',
- },
- ],
- }
- },
-})
+ label: "Cloudflare Pages"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
index 33b33f739f..128d96eefb 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/CloudflareWorkersAuthorizePage.tsx
@@ -41,7 +41,7 @@ export const CloudflareWorkersAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/cloudflare-workers/create",
+ to: "/projects/$projectId/secret-manager/integrations/cloudflare-workers/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx
index 5ce469ae2a..1aff2b85e6 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CloudflareWorkersAuthorizePage } from './CloudflareWorkersAuthorizePage'
+import { CloudflareWorkersAuthorizePage } from "./CloudflareWorkersAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/authorize"
)({
component: CloudflareWorkersAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloudflare Workers',
- },
- ],
- }
- },
-})
+ label: "Cloudflare Workers"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
index c650c47af9..431e3aa126 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/CloudflareWorkersConfigurePage.tsx
@@ -67,7 +67,7 @@ export const CloudflareWorkersConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx
index 1d46f61301..876b8ca49c 100644
--- a/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CloudflareWorkersConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CloudflareWorkersConfigurePage } from './CloudflareWorkersConfigurePage'
+import { CloudflareWorkersConfigurePage } from "./CloudflareWorkersConfigurePage";
const CloudflareWorkersConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/create"
)({
component: CloudflareWorkersConfigurePage,
validateSearch: zodValidator(CloudflareWorkersConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Cloudflare Workers',
- },
- ],
- }
- },
-})
+ label: "Cloudflare Workers"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
index 622b71f83c..a7aa9ee91f 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/CodefreshAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const CodefreshAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/codefresh/create",
+ to: "/projects/$projectId/secret-manager/integrations/codefresh/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx
index ca6da35ca2..907ad45ad4 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CodefreshAuthorizePage } from './CodefreshAuthorizePage'
+import { CodefreshAuthorizePage } from "./CodefreshAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/authorize"
)({
component: CodefreshAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Codefresh',
- },
- ],
- }
- },
-})
+ label: "Codefresh"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
index 23dbcabf1f..d9e724fe7d 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/CodefreshConfigurePage.tsx
@@ -71,7 +71,7 @@ export const CodefreshConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx
index 0a6f695ef7..68711ef5b8 100644
--- a/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/CodefreshConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { CodefreshConfigurePage } from './CodefreshConfigurePage'
+import { CodefreshConfigurePage } from "./CodefreshConfigurePage";
const CodefreshConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/create"
)({
component: CodefreshConfigurePage,
validateSearch: zodValidator(CodefreshConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Codefresh',
- },
- ],
- }
- },
-})
+ label: "Codefresh"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
index 920518b243..a3553ea167 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/DatabricksAuthorizePage.tsx
@@ -40,7 +40,7 @@ export const DatabricksAuthorizePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/databricks/create",
+ to: "/projects/$projectId/secret-manager/integrations/databricks/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx
index 3e1b747629..3882a388bd 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { DatabricksAuthorizePage } from './DatabricksAuthorizePage'
+import { DatabricksAuthorizePage } from "./DatabricksAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/authorize"
)({
component: DatabricksAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Databricks',
- },
- ],
- }
- },
-})
+ label: "Databricks"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
index 79a49725d4..87dba7c212 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/DatabricksConfigurePage.tsx
@@ -87,7 +87,7 @@ export const DatabricksConfigurePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx
index 106564ca2c..6fb3bc7860 100644
--- a/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DatabricksConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { DatabricksConfigurePage } from './DatabricksConfigurePage'
+import { DatabricksConfigurePage } from "./DatabricksConfigurePage";
const DatabricksConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/create"
)({
component: DatabricksConfigurePage,
validateSearch: zodValidator(DatabricksConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Databricks',
- },
- ],
- }
- },
-})
+ label: "Databricks"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
index be2483188d..892fa5b8c7 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/DigitalOceanAppPlatformAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const DigitalOceanAppPlatformAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/digital-ocean-app-platform/create",
+ to: "/projects/$projectId/secret-manager/integrations/digital-ocean-app-platform/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx
index a7f73472d6..d95bf80f38 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { DigitalOceanAppPlatformAuthorizePage } from './DigitalOceanAppPlatformAuthorizePage'
+import { DigitalOceanAppPlatformAuthorizePage } from "./DigitalOceanAppPlatformAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize"
)({
component: DigitalOceanAppPlatformAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'DigitalOcean App Platform',
- },
- ],
- }
- },
-})
+ label: "DigitalOcean App Platform"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
index 2bc740f058..4402a17eb2 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/DigitalOceanAppPlatformConfigurePage.tsx
@@ -72,7 +72,7 @@ export const DigitalOceanAppPlatformConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx
index 1c77e16ab2..491a74172d 100644
--- a/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/DigitalOceanAppPlatformConfigurePage/route.tsx
@@ -1,40 +1,38 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { DigitalOceanAppPlatformConfigurePage } from './DigitalOceanAppPlatformConfigurePage'
+import { DigitalOceanAppPlatformConfigurePage } from "./DigitalOceanAppPlatformConfigurePage";
const DigitalOceanAppPlatformConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/create"
)({
component: DigitalOceanAppPlatformConfigurePage,
- validateSearch: zodValidator(
- DigitalOceanAppPlatformConfigurePageQueryParamsSchema,
- ),
+ validateSearch: zodValidator(DigitalOceanAppPlatformConfigurePageQueryParamsSchema),
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'DigitalOcean App Platform',
- },
- ],
- }
- },
-})
+ label: "DigitalOcean App Platform"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
index 06d0692c5b..15150a7e82 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/FlyioAuthorizePage.tsx
@@ -44,7 +44,7 @@ export const FlyioAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/flyio/create",
+ to: "/projects/$projectId/secret-manager/integrations/flyio/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx
index 0518183be4..138badee4f 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { FlyioAuthorizePage } from './FlyioAuthorizePage'
+import { FlyioAuthorizePage } from "./FlyioAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/authorize"
)({
component: FlyioAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Fly IO',
- },
- ],
- }
- },
-})
+ label: "Fly IO"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
index 44c81d994a..c8bebd9cef 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/FlyioConfigurePage.tsx
@@ -86,7 +86,7 @@ export const FlyioConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx
index 9011f979f9..057f2ffbea 100644
--- a/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/FlyioConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { FlyioConfigurePage } from './FlyioConfigurePage'
+import { FlyioConfigurePage } from "./FlyioConfigurePage";
const FlyioConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/create"
)({
component: FlyioConfigurePage,
validateSearch: zodValidator(FlyioConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Fly IO',
- },
- ],
- }
- },
-})
+ label: "Fly IO"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
index 7f00307062..e332e25077 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/GcpSecretManagerAuthorizePage.tsx
@@ -70,7 +70,7 @@ export const GcpSecretManagerAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/gcp-secret-manager/create",
+ to: "/projects/$projectId/secret-manager/integrations/gcp-secret-manager/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx
index 2b1ca1b0b4..40534b8d18 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GcpSecretManagerAuthorizePage } from './GcpSecretManagerAuthorizePage'
+import { GcpSecretManagerAuthorizePage } from "./GcpSecretManagerAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/authorize"
)({
component: GcpSecretManagerAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GCP Secret Manager',
- },
- ],
- }
- },
-})
+ label: "GCP Secret Manager"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
index c0cb2c1718..15480e983b 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/GcpSecretManagerConfigurePage.tsx
@@ -151,7 +151,7 @@ export const GcpSecretManagerConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
@@ -411,8 +411,8 @@ export const GcpSecretManagerConfigurePage = () => {
<span className="ml-3 text-md text-mineshaft-100">Pro Tip</span>
</div>
<span className="text-mineshaft-300 text-sm mt-4">
- After creating an integration, your secrets will start syncing immediately.
-
+ After creating an integration, your secrets will start syncing immediately.
+
To avoid overwriting existing secrets in GCP Secret Manager, you may consider adding a secret prefix/suffix and/or enabling labeling in the options tab.
</span>
</div> */}
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx
index 75947fc031..47f8ec2f9c 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GcpSecretManagerConfigurePage } from './GcpSecretManagerConfigurePage'
+import { GcpSecretManagerConfigurePage } from "./GcpSecretManagerConfigurePage";
const GcpConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/create"
)({
component: GcpSecretManagerConfigurePage,
validateSearch: zodValidator(GcpConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GCP Secret Manager',
- },
- ],
- }
- },
-})
+ label: "GCP Secret Manager"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
index eae4cd57cd..7672042c97 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/GcpSecretManagerOauthCallbackPage.tsx
@@ -28,7 +28,7 @@ export const GcpSecretManagerOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/gcp-secret-manager/create",
+ to: "/projects/$projectId/secret-manager/integrations/gcp-secret-manager/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx
index 0fa6e248fa..901d688837 100644
--- a/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GcpSecretManagerOauthCallbackPage/route.tsx
@@ -1,41 +1,39 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GcpSecretManagerOauthCallbackPage } from './GcpSecretManagerOauthCallbackPage'
+import { GcpSecretManagerOauthCallbackPage } from "./GcpSecretManagerOauthCallbackPage";
export const GcpSecretManagerOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback"
)({
component: GcpSecretManagerOauthCallbackPage,
- validateSearch: zodValidator(
- GcpSecretManagerOAuthCallbackPageQueryParamsSchema,
- ),
+ validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GCP Secret Manager',
- },
- ],
- }
- },
-})
+ label: "GCP Secret Manager"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
index d12cd26c06..84e0b10b84 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/GithubAuthorizePage.tsx
@@ -82,7 +82,7 @@ export const GithubAuthorizePage = () => {
onClick={() => {
if (selectedAuthMethod === AuthMethod.APP) {
navigate({
- to: "/secret-manager/$projectId/integrations/select-integration-auth",
+ to: "/projects/$projectId/secret-manager/integrations/select-integration-auth",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx
index 9d8a7b30a3..c203641c9e 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GithubAuthorizePage } from './GithubAuthorizePage'
+import { GithubAuthorizePage } from "./GithubAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/auth-mode-selection',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/auth-mode-selection"
)({
component: GithubAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitHub',
- },
- ],
- }
- },
-})
+ label: "GitHub"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
index c51582075c..c4a611a66c 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/GithubConfigurePage.tsx
@@ -267,7 +267,7 @@ export const GithubConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx
index 05cefebacf..d01447a66b 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GithubConfigurePage } from './GithubConfigurePage'
+import { GithubConfigurePage } from "./GithubConfigurePage";
const GithubConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/create"
)({
component: GithubConfigurePage,
validateSearch: zodValidator(GithubConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitHub',
- },
- ],
- }
- },
-})
+ label: "GitHub"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
index 4b1211f6fe..d7e55e70c6 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/GithubOauthCallbackPage.tsx
@@ -36,7 +36,7 @@ export const GithubOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/github/create",
+ to: "/projects/$projectId/secret-manager/integrations/github/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx
index fa931a8389..2652d2acf3 100644
--- a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx
@@ -1,19 +1,19 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GithubOauthCallbackPage } from './GithubOauthCallbackPage'
+import { GithubOauthCallbackPage } from "./GithubOauthCallbackPage";
export const GithubOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- installation_id: z.coerce.string().optional().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ installation_id: z.coerce.string().optional().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/oauth2/callback"
)({
component: GithubOauthCallbackPage,
validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema),
@@ -22,19 +22,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...(context?.breadcrumbs || []),
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitHub',
- },
- ],
- }
- },
-})
+ label: "GitHub"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx
index 7a35b11c21..817b8c9ccf 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GitlabAuthorizePage } from './GitlabAuthorizePage'
+import { GitlabAuthorizePage } from "./GitlabAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/authorize"
)({
component: GitlabAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitLab',
- },
- ],
- }
- },
-})
+ label: "GitLab"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
index b88b10b032..458296fd46 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/GitlabConfigurePage.tsx
@@ -175,7 +175,7 @@ export const GitlabConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx
index aa1a82db2d..fd473646d4 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GitlabConfigurePage } from './GitlabConfigurePage'
+import { GitlabConfigurePage } from "./GitlabConfigurePage";
const GitlabConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/create"
)({
component: GitlabConfigurePage,
validateSearch: zodValidator(GitlabConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitLab',
- },
- ],
- }
- },
-})
+ label: "GitLab"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx
index 51fb80cd93..8ab1686bee 100644
--- a/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/GitlabOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { GitLabOAuthCallbackPage } from './GitlabOauthCallbackPage'
+import { GitLabOAuthCallbackPage } from "./GitlabOauthCallbackPage";
export const GitlabOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/oauth2/callback"
)({
component: GitLabOAuthCallbackPage,
validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'GitLab',
- },
- ],
- }
- },
-})
+ label: "GitLab"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
index a01af97a5f..e56b27f8da 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/HashicorpVaultAuthorizePage.tsx
@@ -51,7 +51,7 @@ export const HashicorpVaultAuthorizePage = () => {
namespace: formData.vaultNamespace
});
navigate({
- to: "/secret-manager/$projectId/integrations/hashicorp-vault/create",
+ to: "/projects/$projectId/secret-manager/integrations/hashicorp-vault/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx
index 2e848309ab..ffebf25adc 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HashicorpVaultAuthorizePage } from './HashicorpVaultAuthorizePage'
+import { HashicorpVaultAuthorizePage } from "./HashicorpVaultAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/authorize"
)({
component: HashicorpVaultAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Hashicorp Vault',
- },
- ],
- }
- },
-})
+ label: "Hashicorp Vault"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
index 3fbb6501fc..fe1539087f 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/HashicorpVaultConfigurePage.tsx
@@ -101,7 +101,7 @@ export const HashicorpVaultConfigurePage = () => {
secretPath: formData.secretPath
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx
index 7243c94052..8d8a6c3c05 100644
--- a/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HashicorpVaultConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HashicorpVaultConfigurePage } from './HashicorpVaultConfigurePage'
+import { HashicorpVaultConfigurePage } from "./HashicorpVaultConfigurePage";
const HashicorpVaultConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/create"
)({
component: HashicorpVaultConfigurePage,
validateSearch: zodValidator(HashicorpVaultConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Hashicorp Vault',
- },
- ],
- }
- },
-})
+ label: "Hashicorp Vault"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
index 576949061e..691c2e35cb 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/HasuraCloudAuthorizePage.tsx
@@ -43,7 +43,7 @@ export const HasuraCloudAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/hasura-cloud/create",
+ to: "/projects/$projectId/secret-manager/integrations/hasura-cloud/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx
index 3fee6f1f6b..fbd710d4dc 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HasuraCloudAuthorizePage } from './HasuraCloudAuthorizePage'
+import { HasuraCloudAuthorizePage } from "./HasuraCloudAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/authorize"
)({
component: HasuraCloudAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Hasura Cloud',
- },
- ],
- }
- },
-})
+ label: "Hasura Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
index 06dbe61f16..ba6775295f 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/HasuraCloudConfigurePage.tsx
@@ -70,7 +70,7 @@ export const HasuraCloudConfigurePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx
index 9b8517ff31..6821dda87a 100644
--- a/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HasuraCloudConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HasuraCloudConfigurePage } from './HasuraCloudConfigurePage'
+import { HasuraCloudConfigurePage } from "./HasuraCloudConfigurePage";
const HasuraCloudConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/create"
)({
component: HasuraCloudConfigurePage,
validateSearch: zodValidator(HasuraCloudConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Hasura Cloud',
- },
- ],
- }
- },
-})
+ label: "Hasura Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
index 79763e4759..eb4ed81da2 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/HerokuConfigurePage.tsx
@@ -98,7 +98,7 @@ export const HerokuConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx
index 1b5a3fd10d..94ff72f9ce 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HerokuConfigurePage } from './HerokuConfigurePage'
+import { HerokuConfigurePage } from "./HerokuConfigurePage";
const HerokuConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/create"
)({
component: HerokuConfigurePage,
validateSearch: zodValidator(HerokuConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Heroku Cloud',
- },
- ],
- }
- },
-})
+ label: "Heroku Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx
index 686a7337d1..eae7e466ca 100644
--- a/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/HerokuOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { HerokuOAuthCallbackPage } from './HerokuOauthCallbackPage'
+import { HerokuOAuthCallbackPage } from "./HerokuOauthCallbackPage";
export const HerokuOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/oauth2/callback"
)({
component: HerokuOAuthCallbackPage,
validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Heroku Cloud',
- },
- ],
- }
- },
-})
+ label: "Heroku Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
index 8a69e0e640..ff04c65214 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/LaravelForgeAuthorizePage.tsx
@@ -42,7 +42,7 @@ export const LaravelForgeAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/laravel-forge/create",
+ to: "/projects/$projectId/secret-manager/integrations/laravel-forge/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx
index c6cec05f90..718f5359e6 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { LaravelForgeAuthorizePage } from './LaravelForgeAuthorizePage'
+import { LaravelForgeAuthorizePage } from "./LaravelForgeAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/authorize"
)({
component: LaravelForgeAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Laravel Forge',
- },
- ],
- }
- },
-})
+ label: "Laravel Forge"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
index 5c6ead598e..2e5575d5d6 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/LaravelForgeConfigurePage.tsx
@@ -72,7 +72,7 @@ export const LaravelForgeConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx
index 2714f6a08e..6883de4aa5 100644
--- a/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/LaravelForgeConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { LaravelForgeConfigurePage } from './LaravelForgeConfigurePage'
+import { LaravelForgeConfigurePage } from "./LaravelForgeConfigurePage";
const LaravelForgeConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/create"
)({
component: LaravelForgeConfigurePage,
validateSearch: zodValidator(LaravelForgeConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Laravel Forge',
- },
- ],
- }
- },
-})
+ label: "Laravel Forge"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
index 99cf2b4344..f8d25380b0 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/NetlifyConfigurePage.tsx
@@ -79,7 +79,7 @@ export const NetlifyConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx
index fc8e85e69a..4fea81a104 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { NetlifyConfigurePage } from './NetlifyConfigurePage'
+import { NetlifyConfigurePage } from "./NetlifyConfigurePage";
const NetlifyConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/create"
)({
component: NetlifyConfigurePage,
validateSearch: zodValidator(NetlifyConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Netlify',
- },
- ],
- }
- },
-})
+ label: "Netlify"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
index c9df44a95c..7b30d5f1ea 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/NetlifyOauthCallbackPage.tsx
@@ -28,7 +28,7 @@ export const NetlifyOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/netlify/create",
+ to: "/projects/$projectId/secret-manager/integrations/netlify/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx
index 39745a2daf..0fa2e9493b 100644
--- a/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NetlifyOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { NetlifyOauthCallbackPage } from './NetlifyOauthCallbackPage'
+import { NetlifyOauthCallbackPage } from "./NetlifyOauthCallbackPage";
export const NetlifyOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/oauth2/callback"
)({
component: NetlifyOauthCallbackPage,
validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Netlify',
- },
- ],
- }
- },
-})
+ label: "Netlify"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
index e505a9d651..313f8b0afb 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/NorthflankAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const NorthflankAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/northflank/create",
+ to: "/projects/$projectId/secret-manager/integrations/northflank/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx
index 459056914f..ea8b31cbc2 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { NorthflankAuthorizePage } from './NorthflankAuthorizePage'
+import { NorthflankAuthorizePage } from "./NorthflankAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/authorize"
)({
component: NorthflankAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Northflank',
- },
- ],
- }
- },
-})
+ label: "Northflank"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
index 2338ea3efd..57084d5f93 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/NorthflankConfigurePage.tsx
@@ -93,7 +93,7 @@ export const NorthflankConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx
index 0522b72f04..a441bc7f0c 100644
--- a/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/NorthflankConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { NorthflankConfigurePage } from './NorthflankConfigurePage'
+import { NorthflankConfigurePage } from "./NorthflankConfigurePage";
const NorthflankConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/create"
)({
component: NorthflankConfigurePage,
validateSearch: zodValidator(NorthflankConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Northflank',
- },
- ],
- }
- },
-})
+ label: "Northflank"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
index dd46c2784b..8e3402a843 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/OctopusDeployAuthorizePage.tsx
@@ -38,7 +38,7 @@ export const OctopusDeployAuthorizePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/octopus-deploy/create",
+ to: "/projects/$projectId/secret-manager/integrations/octopus-deploy/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx
index 289cc4fdb0..fa7b0a9e95 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { OctopusDeployAuthorizePage } from './OctopusDeployAuthorizePage'
+import { OctopusDeployAuthorizePage } from "./OctopusDeployAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/authorize"
)({
component: OctopusDeployAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Octopus Deploy',
- },
- ],
- }
- },
-})
+ label: "Octopus Deploy"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
index 1c4315cd29..2272bc29d1 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/OctopusDeployConfigurePage.tsx
@@ -135,7 +135,7 @@ export const OctopusDeployConfigurePage = () => {
text: "Successfully created integration"
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx
index 0e1cca67c9..06a4e4e042 100644
--- a/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/OctopusDeployConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { OctopusDeployConfigurePage } from './OctopusDeployConfigurePage'
+import { OctopusDeployConfigurePage } from "./OctopusDeployConfigurePage";
const OctopusDeployConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/create"
)({
component: OctopusDeployConfigurePage,
validateSearch: zodValidator(OctopusDeployConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Octopus Deploy',
- },
- ],
- }
- },
-})
+ label: "Octopus Deploy"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
index e896625657..b26f0ad72d 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/QoveryAuthorizePage.tsx
@@ -36,7 +36,7 @@ export const QoveryAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/qovery/create",
+ to: "/projects/$projectId/secret-manager/integrations/qovery/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx
index 6de3c73131..3cc7e074e1 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { QoveryAuthorizePage } from './QoveryAuthorizePage'
+import { QoveryAuthorizePage } from "./QoveryAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/authorize"
)({
component: QoveryAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Qovery',
- },
- ],
- }
- },
-})
+ label: "Qovery"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
index e2d294442f..f2821300c6 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/QoveryConfigurePage.tsx
@@ -176,7 +176,7 @@ export const QoveryConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx
index 669ed7e6d4..0a444a6e03 100644
--- a/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/QoveryConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { QoveryConfigurePage } from './QoveryConfigurePage'
+import { QoveryConfigurePage } from "./QoveryConfigurePage";
const QoveryConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/create"
)({
component: QoveryConfigurePage,
validateSearch: zodValidator(QoveryConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Qovery',
- },
- ],
- }
- },
-})
+ label: "Qovery"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
index 9cd619e180..4719bb1020 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/RailwayAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const RailwayAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/railway/create",
+ to: "/projects/$projectId/secret-manager/integrations/railway/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx
index 2e92786022..78d79a3dd1 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RailwayAuthorizePage } from './RailwayAuthorizePage'
+import { RailwayAuthorizePage } from "./RailwayAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/authorize"
)({
component: RailwayAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Railway',
- },
- ],
- }
- },
-})
+ label: "Railway"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
index ea38942038..ab2d6a39c1 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/RailwayConfigurePage.tsx
@@ -108,7 +108,7 @@ export const RailwayConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx
index 5f9831158a..8816e25323 100644
--- a/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RailwayConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RailwayConfigurePage } from './RailwayConfigurePage'
+import { RailwayConfigurePage } from "./RailwayConfigurePage";
const RailwayConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/create"
)({
component: RailwayConfigurePage,
validateSearch: zodValidator(RailwayConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Railway',
- },
- ],
- }
- },
-})
+ label: "Railway"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
index 8db1a11cf8..a574fe7fcc 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/RenderAuthorizePage.tsx
@@ -36,7 +36,7 @@ export const RenderAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/render/create",
+ to: "/projects/$projectId/secret-manager/integrations/render/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx
index b6b013cc2f..6992c602ba 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RenderAuthorizePage } from './RenderAuthorizePage'
+import { RenderAuthorizePage } from "./RenderAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/authorize"
)({
component: RenderAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Render',
- },
- ],
- }
- },
-})
+ label: "Render"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
index f30ff6b144..cf16055583 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/RenderConfigurePage.tsx
@@ -104,7 +104,7 @@ export const RenderConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx
index 1526a6f890..18a6429eb3 100644
--- a/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RenderConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RenderConfigurePage } from './RenderConfigurePage'
+import { RenderConfigurePage } from "./RenderConfigurePage";
const RenderConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/create"
)({
component: RenderConfigurePage,
validateSearch: zodValidator(RenderConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Render',
- },
- ],
- }
- },
-})
+ label: "Render"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
index b8473867ea..2bf8feac0d 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/RundeckAuthorizePage.tsx
@@ -48,7 +48,7 @@ export const RundeckAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/rundeck/create",
+ to: "/projects/$projectId/secret-manager/integrations/rundeck/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx
index e152d12790..4fcfde06e3 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RundeckAuthorizePage } from './RundeckAuthorizePage'
+import { RundeckAuthorizePage } from "./RundeckAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/authorize"
)({
component: RundeckAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Rundeck',
- },
- ],
- }
- },
-})
+ label: "Rundeck"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
index 9b49bd8ecc..43019bb18f 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/RundeckConfigurePage.tsx
@@ -71,7 +71,7 @@ export const RundeckConfigurePage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx
index 2768d3b93e..32aaede540 100644
--- a/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/RundeckConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { RundeckConfigurePage } from './RundeckConfigurePage'
+import { RundeckConfigurePage } from "./RundeckConfigurePage";
const RundeskConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/create"
)({
component: RundeckConfigurePage,
validateSearch: zodValidator(RundeskConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Rundeck',
- },
- ],
- }
- },
-})
+ label: "Rundeck"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
index 6981aeaf67..67cceda716 100644
--- a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx
@@ -119,7 +119,7 @@ export const SelectIntegrationAuthPage = () => {
if (integrationSlug === "github") {
if (integrationAuth.projectId === currentWorkspace?.id) {
navigate({
- to: "/secret-manager/$projectId/integrations/github/create",
+ to: "/projects/$projectId/secret-manager/integrations/github/create",
params: {
projectId: currentWorkspace.id
},
@@ -135,7 +135,7 @@ export const SelectIntegrationAuthPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/github/create",
+ to: "/projects/$projectId/secret-manager/integrations/github/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx
index b8c81fa85e..6cd1fa6a52 100644
--- a/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { SelectIntegrationAuthPage } from './SelectIntegrationAuthPage'
+import { SelectIntegrationAuthPage } from "./SelectIntegrationAuthPage";
const SelectIntegrationAuthPageQueryParamsSchema = z.object({
- integrationSlug: z.string(),
-})
+ integrationSlug: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/select-integration-auth',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/select-integration-auth"
)({
component: SelectIntegrationAuthPage,
validateSearch: zodValidator(SelectIntegrationAuthPageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Configure',
- },
- ],
- }
- },
-})
+ label: "Configure"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
index 69778f5583..c411df91f7 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/SupabaseAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const SupabaseAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/supabase/create",
+ to: "/projects/$projectId/secret-manager/integrations/supabase/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx
index ca8ce73eeb..37ddfed8ce 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { SupabaseAuthorizePage } from './SupabaseAuthorizePage'
+import { SupabaseAuthorizePage } from "./SupabaseAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/authorize"
)({
component: SupabaseAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Supabase',
- },
- ],
- }
- },
-})
+ label: "Supabase"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
index 8c2aa0a091..fb18a59db5 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/SupabaseConfigurePage.tsx
@@ -71,7 +71,7 @@ export const SupabaseConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx
index 74b3b13302..c8334f1975 100644
--- a/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/SupabaseConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { SupabaseConfigurePage } from './SupabaseConfigurePage'
+import { SupabaseConfigurePage } from "./SupabaseConfigurePage";
const SupabaseConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/create"
)({
component: SupabaseConfigurePage,
validateSearch: zodValidator(SupabaseConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Supabase',
- },
- ],
- }
- },
-})
+ label: "Supabase"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
index da365b3140..8812243925 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/TeamcityAuthorizePage.tsx
@@ -46,7 +46,7 @@ export const TeamcityAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/teamcity/create",
+ to: "/projects/$projectId/secret-manager/integrations/teamcity/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx
index bbf62891c7..b18e75bfe7 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TeamcityAuthorizePage } from './TeamcityAuthorizePage'
+import { TeamcityAuthorizePage } from "./TeamcityAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/authorize"
)({
component: TeamcityAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Teamcity',
- },
- ],
- }
- },
-})
+ label: "Teamcity"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
index 96770c19fd..30b54636f6 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/TeamcityConfigurePage.tsx
@@ -90,7 +90,7 @@ export const TeamcityConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx
index 2946954ade..1214e08467 100644
--- a/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TeamcityConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TeamcityConfigurePage } from './TeamcityConfigurePage'
+import { TeamcityConfigurePage } from "./TeamcityConfigurePage";
const TeamcityConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/create"
)({
component: TeamcityConfigurePage,
validateSearch: zodValidator(TeamcityConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Teamcity',
- },
- ],
- }
- },
-})
+ label: "Teamcity"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
index 40492c3774..34fa74f79f 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/TerraformCloudAuthorizePage.tsx
@@ -46,7 +46,7 @@ export const TerraformCloudAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/terraform-cloud/create",
+ to: "/projects/$projectId/secret-manager/integrations/terraform-cloud/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx
index 4103c16c79..7ec3ce32a3 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TerraformCloudAuthorizePage } from './TerraformCloudAuthorizePage'
+import { TerraformCloudAuthorizePage } from "./TerraformCloudAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/authorize"
)({
component: TerraformCloudAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Terraform Cloud',
- },
- ],
- }
- },
-})
+ label: "Terraform Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
index a247144fa4..1151ad0e39 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/TerraformCloudConfigurePage.tsx
@@ -105,7 +105,7 @@ export const TerraformCloudConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx
index 9ab8385615..8139034926 100644
--- a/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TerraformCloudConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TerraformCloudConfigurePage } from './TerraformCloudConfigurePage'
+import { TerraformCloudConfigurePage } from "./TerraformCloudConfigurePage";
const TerraformCloudConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/create"
)({
component: TerraformCloudConfigurePage,
validateSearch: zodValidator(TerraformCloudConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Terraform Cloud',
- },
- ],
- }
- },
-})
+ label: "Terraform Cloud"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
index 01c3c18096..396e2f48f1 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/TravisCIAuthorizePage.tsx
@@ -33,7 +33,7 @@ export const TravisCIAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/travisci/create",
+ to: "/projects/$projectId/secret-manager/integrations/travisci/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx
index b8ea12877a..7afe76709b 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TravisCIAuthorizePage } from './TravisCIAuthorizePage'
+import { TravisCIAuthorizePage } from "./TravisCIAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/authorize"
)({
component: TravisCIAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Travis CI',
- },
- ],
- }
- },
-})
+ label: "Travis CI"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
index 807a6a87e5..e4bb91e84d 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/TravisCIConfigurePage.tsx
@@ -72,7 +72,7 @@ export const TravisCIConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx
index 3c24b1fdab..32747a5400 100644
--- a/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/TravisCIConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { TravisCIConfigurePage } from './TravisCIConfigurePage'
+import { TravisCIConfigurePage } from "./TravisCIConfigurePage";
const TravisCIConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/create"
)({
component: TravisCIConfigurePage,
validateSearch: zodValidator(TravisCIConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Travis CI',
- },
- ],
- }
- },
-})
+ label: "Travis CI"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
index 4a421274c5..34f88d31a0 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/VercelConfigurePage.tsx
@@ -132,7 +132,7 @@ export const VercelConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx
index 2c555494de..18f165b1d0 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { VercelConfigurePage } from './VercelConfigurePage'
+import { VercelConfigurePage } from "./VercelConfigurePage";
const VercelConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/create"
)({
component: VercelConfigurePage,
validateSearch: zodValidator(VercelConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Vercel',
- },
- ],
- }
- },
-})
+ label: "Vercel"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
index 17922a139e..b6257ac689 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/VercelOauthCallbackPage.tsx
@@ -28,7 +28,7 @@ export const VercelOauthCallbackPage = () => {
});
navigate({
- to: "/secret-manager/$projectId/integrations/vercel/create",
+ to: "/projects/$projectId/secret-manager/integrations/vercel/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx
index 09d2e4c1c6..f1f4347227 100644
--- a/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/VercelOauthCallbackPage/route.tsx
@@ -1,18 +1,18 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { VercelOauthCallbackPage } from './VercelOauthCallbackPage'
+import { VercelOauthCallbackPage } from "./VercelOauthCallbackPage";
export const VercelOAuthCallbackPageQueryParamsSchema = z.object({
- state: z.string().catch(''),
- code: z.coerce.string().catch(''),
-})
+ state: z.string().catch(""),
+ code: z.coerce.string().catch("")
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/oauth2/callback"
)({
component: VercelOauthCallbackPage,
validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema),
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Vercel',
- },
- ],
- }
- },
-})
+ label: "Vercel"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
index 6e2761f9c3..d71f5da04f 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/WindmillAuthorizePage.tsx
@@ -77,7 +77,7 @@ export const WindmillAuthorizePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations/windmill/create",
+ to: "/projects/$projectId/secret-manager/integrations/windmill/create",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx
index 1998c88535..1911160510 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillAuthorizePage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { WindmillAuthorizePage } from './WindmillAuthorizePage'
+import { WindmillAuthorizePage } from "./WindmillAuthorizePage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/authorize',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/authorize"
)({
component: WindmillAuthorizePage,
beforeLoad: ({ context, params }) => {
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Windmill',
- },
- ],
- }
- },
-})
+ label: "Windmill"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
index f4f3a9e528..c0be6ef6d4 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/WindmillConfigurePage.tsx
@@ -74,7 +74,7 @@ export const WindmillConfigurePage = () => {
setIsLoading(false);
navigate({
- to: "/secret-manager/$projectId/integrations",
+ to: "/projects/$projectId/secret-manager/integrations",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx
index 6e55fb8961..2f6184ac65 100644
--- a/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx
+++ b/frontend/src/pages/secret-manager/integrations/WindmillConfigurePage/route.tsx
@@ -1,17 +1,17 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { IntegrationsListPageTabs } from '@app/types/integrations'
+import { IntegrationsListPageTabs } from "@app/types/integrations";
-import { WindmillConfigurePage } from './WindmillConfigurePage'
+import { WindmillConfigurePage } from "./WindmillConfigurePage";
const WindmillConfigurePageQueryParamsSchema = z.object({
- integrationAuthId: z.string(),
-})
+ integrationAuthId: z.string()
+});
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/create',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/create"
)({
component: WindmillConfigurePage,
validateSearch: zodValidator(WindmillConfigurePageQueryParamsSchema),
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Integrations',
+ label: "Integrations",
link: linkOptions({
- to: '/secret-manager/$projectId/integrations',
+ to: "/projects/$projectId/secret-manager/integrations",
params,
search: {
- selectedTab: IntegrationsListPageTabs.NativeIntegrations,
- },
- }),
+ selectedTab: IntegrationsListPageTabs.NativeIntegrations
+ }
+ })
},
{
- label: 'Windmill',
- },
- ],
- }
- },
-})
+ label: "Windmill"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx
index e8ba8a9baf..d23b9c6f3e 100644
--- a/frontend/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-azure-app-configurations-oauth-redirect.tsx
@@ -1,31 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { AzureAppConfigurationOauthCallbackPageQueryParamsSchema } from './AzureAppConfigurationOauthCallbackPage/route'
+import { AzureAppConfigurationOauthCallbackPageQueryParamsSchema } from "./AzureAppConfigurationOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-app-configuration/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-app-configuration/oauth2/callback"
)({
- validateSearch: zodValidator(
- AzureAppConfigurationOauthCallbackPageQueryParamsSchema,
- ),
+ validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/azure-app-configuration/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx
index 794a4c4171..441209c026 100644
--- a/frontend/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-azure-key-vault-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { AzureKeyVaultOauthCallbackQueryParamsSchema } from './AzureKeyVaultOauthCallbackPage/route'
+import { AzureKeyVaultOauthCallbackQueryParamsSchema } from "./AzureKeyVaultOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-key-vault/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-key-vault/oauth2/callback"
)({
validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/azure-key-vault/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx
index cae65163b0..77aa52950f 100644
--- a/frontend/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-bitbucket-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { BitbucketOauthCallbackQueryParamsSchema } from './BitbucketOauthCallbackPage/route'
+import { BitbucketOauthCallbackQueryParamsSchema } from "./BitbucketOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/bitbucket/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/bitbucket/oauth2/callback"
)({
validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/bitbucket/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx
index 13d370dd03..bdd09427ae 100644
--- a/frontend/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-gcp-oauth-redirect.tsx
@@ -1,31 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { GcpSecretManagerOAuthCallbackPageQueryParamsSchema } from './GcpSecretManagerOauthCallbackPage/route'
+import { GcpSecretManagerOAuthCallbackPageQueryParamsSchema } from "./GcpSecretManagerOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gcp-secret-manager/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gcp-secret-manager/oauth2/callback"
)({
- validateSearch: zodValidator(
- GcpSecretManagerOAuthCallbackPageQueryParamsSchema,
- ),
+ validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/gcp-secret-manager/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx
index 016e45e918..4f5943edb2 100644
--- a/frontend/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-github-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { GithubOAuthCallbackPageQueryParamsSchema } from './GithubOauthCallbackPage/route'
+import { GithubOAuthCallbackPageQueryParamsSchema } from "./GithubOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/github/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/github/oauth2/callback"
)({
validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/github/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/github/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx
index 5cb3b23a07..d52f5d61a9 100644
--- a/frontend/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-gitlab-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { GitlabOAuthCallbackPageQueryParamsSchema } from './GitlabOauthCallbackPage/route'
+import { GitlabOAuthCallbackPageQueryParamsSchema } from "./GitlabOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gitlab/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gitlab/oauth2/callback"
)({
validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/gitlab/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/gitlab/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx
index cf4e5b454f..b12f6ea611 100644
--- a/frontend/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-heroku-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { HerokuOAuthCallbackPageQueryParamsSchema } from './HerokuOauthCallbackPage/route'
+import { HerokuOAuthCallbackPageQueryParamsSchema } from "./HerokuOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/heroku/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/heroku/oauth2/callback"
)({
validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/heroku/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/heroku/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx
index b4e7a54d87..396ba24c62 100644
--- a/frontend/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-netlify-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { NetlifyOAuthCallbackPageQueryParamsSchema } from './NetlifyOauthCallbackPage/route'
+import { NetlifyOAuthCallbackPageQueryParamsSchema } from "./NetlifyOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/netlify/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/netlify/oauth2/callback"
)({
validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/netlify/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/netlify/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx b/frontend/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx
index 31992a6ace..8a0a7874f0 100644
--- a/frontend/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx
+++ b/frontend/src/pages/secret-manager/integrations/route-vercel-oauth-redirect.tsx
@@ -1,29 +1,29 @@
-import { createFileRoute, redirect } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
+import { createFileRoute, redirect } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
-import { createNotification } from '@app/components/notifications'
-import { localStorageService } from '@app/helpers/localStorage'
+import { createNotification } from "@app/components/notifications";
+import { localStorageService } from "@app/helpers/localStorage";
-import { VercelOAuthCallbackPageQueryParamsSchema } from './VercelOauthCallbackPage/route'
+import { VercelOAuthCallbackPageQueryParamsSchema } from "./VercelOauthCallbackPage/route";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/vercel/oauth2/callback',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/vercel/oauth2/callback"
)({
validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema),
beforeLoad: ({ search }) => {
- const projectId = localStorageService.getIintegrationProjectId()
+ const projectId = localStorageService.getIintegrationProjectId();
if (!projectId) {
createNotification({
- type: 'error',
- title: 'Missing project id',
- text: 'Please retry integration',
- })
- throw redirect({ to: '/organization/secret-manager/overview' })
+ type: "error",
+ title: "Missing project id",
+ text: "Please retry integration"
+ });
+ throw redirect({ to: "/organization/projects" });
}
throw redirect({
- to: '/secret-manager/$projectId/integrations/vercel/oauth2/callback',
+ to: "/projects/$projectId/secret-manager/integrations/vercel/oauth2/callback",
params: { projectId },
- search,
- })
- },
-})
+ search
+ });
+ }
+});
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
index 01e32836c3..bd68c268a3 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/SecretScanningDataSourceByIdPage.tsx
@@ -63,7 +63,7 @@ const PageContent = () => {
leftIcon={<FontAwesomeIcon icon={faChevronLeft} />}
onClick={() => {
navigate({
- to: "/secret-scanning/$projectId/data-sources",
+ to: "/projects/$projectId/secret-scanning/data-sources",
params: {
projectId
}
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
index 0cce3f0069..ca63527e17 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningResourceRow.tsx
@@ -135,7 +135,7 @@ export const SecretScanningResourceRow = ({ resource, dataSource }: Props) => {
<Badge
onClick={() =>
navigate({
- to: "/secret-scanning/$projectId/findings",
+ to: "/projects/$projectId/secret-scanning/findings",
params: {
projectId: dataSource.projectId
},
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
index 0e2dc0cd19..f5dcb74f9f 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/SecretScanningScanRow.tsx
@@ -95,7 +95,7 @@ export const SecretScanningScanRow = ({ scan }: Props) => {
<Badge
onClick={() =>
navigate({
- to: "/secret-scanning/$projectId/findings",
+ to: "/projects/$projectId/secret-scanning/findings",
params: {
projectId: currentWorkspace.id
},
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/route.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/route.tsx
index 852d5778ed..ea1ee2d041 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/route.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { SecretScanningDataSourceByIdPage } from './SecretScanningDataSourceByIdPage'
+import { SecretScanningDataSourceByIdPage } from "./SecretScanningDataSourceByIdPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/data-sources/$type/$dataSourceId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/data-sources/$type/$dataSourceId"
)({
component: SecretScanningDataSourceByIdPage,
beforeLoad: ({ context, params }) => {
@@ -11,16 +11,16 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Data Sources',
+ label: "Data Sources",
link: linkOptions({
- to: '/secret-scanning/$projectId/data-sources',
- params,
- }),
+ to: "/secret-scanning/$projectId/data-sources",
+ params
+ })
},
{
- label: 'Data Source',
- },
- ],
- }
- },
-})
+ label: "Data Source"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/route.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/route.tsx
index 8f25d701f6..f7f06fb788 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/route.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourcesPage/route.tsx
@@ -1,11 +1,11 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SecretScanningDataSourcesPage } from './SecretScanningDataSourcesPage'
+import { SecretScanningDataSourcesPage } from "./SecretScanningDataSourcesPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/data-sources/',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/data-sources/"
)({
- component: SecretScanningDataSourcesPage,
+ component: SecretScanningDataSourcesPage
// beforeLoad: ({ context }) => {
// return {
// breadcrumbs: [
@@ -16,4 +16,4 @@ export const Route = createFileRoute(
// ]
// };
// }
-})
+});
diff --git a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/route.tsx b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/route.tsx
index bbed2f19ad..6bb622c992 100644
--- a/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/route.tsx
+++ b/frontend/src/pages/secret-scanning/SecretScanningFindingsPage/route.tsx
@@ -1,32 +1,29 @@
-import { createFileRoute } from '@tanstack/react-router'
-import { zodValidator } from '@tanstack/zod-adapter'
-import { z } from 'zod'
+import { createFileRoute } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
-import { SecretScanningFindingStatus } from '@app/hooks/api/secretScanningV2'
+import { SecretScanningFindingStatus } from "@app/hooks/api/secretScanningV2";
-import { SecretScanningFindingsPage } from './SecretScanningFindingsPage'
+import { SecretScanningFindingsPage } from "./SecretScanningFindingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/findings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/findings"
)({
validateSearch: zodValidator(
z.object({
search: z.string().optional(),
- status: z
- .nativeEnum(SecretScanningFindingStatus)
- .optional()
- .catch(undefined),
- }),
+ status: z.nativeEnum(SecretScanningFindingStatus).optional().catch(undefined)
+ })
),
beforeLoad: ({ context }) => {
return {
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Findings',
- },
- ],
- }
+ label: "Findings"
+ }
+ ]
+ };
},
- component: SecretScanningFindingsPage,
-})
+ component: SecretScanningFindingsPage
+});
diff --git a/frontend/src/pages/secret-scanning/SettingsPage/route.tsx b/frontend/src/pages/secret-scanning/SettingsPage/route.tsx
index d68ade3658..c26ea1a632 100644
--- a/frontend/src/pages/secret-scanning/SettingsPage/route.tsx
+++ b/frontend/src/pages/secret-scanning/SettingsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SettingsPage } from './SettingsPage'
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-scanning/_secret-scanning-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Settings',
- },
- ],
- }
- },
-})
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/ssh/SettingsPage/route.tsx b/frontend/src/pages/ssh/SettingsPage/route.tsx
index 26bc22a543..acd666033d 100644
--- a/frontend/src/pages/ssh/SettingsPage/route.tsx
+++ b/frontend/src/pages/ssh/SettingsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SettingsPage } from './SettingsPage'
+import { SettingsPage } from "./SettingsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/settings',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/settings"
)({
component: SettingsPage,
beforeLoad: ({ context }) => {
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'Settings',
- },
- ],
- }
- },
-})
+ label: "Settings"
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/ssh/SshCaByIDPage/SshCaByIDPage.tsx b/frontend/src/pages/ssh/SshCaByIDPage/SshCaByIDPage.tsx
index 51ef7d1e72..3a41ec084f 100644
--- a/frontend/src/pages/ssh/SshCaByIDPage/SshCaByIDPage.tsx
+++ b/frontend/src/pages/ssh/SshCaByIDPage/SshCaByIDPage.tsx
@@ -53,7 +53,7 @@ const Page = () => {
handlePopUpClose("deleteSshCa");
navigate({
- to: `/${ProjectType.SSH}/$projectId/overview` as const,
+ to: `/projects/$projectId/${ProjectType.SSH}/overview` as const,
params: {
projectId
}
diff --git a/frontend/src/pages/ssh/SshCaByIDPage/route.tsx b/frontend/src/pages/ssh/SshCaByIDPage/route.tsx
index e6959f1c28..c716e2e0a4 100644
--- a/frontend/src/pages/ssh/SshCaByIDPage/route.tsx
+++ b/frontend/src/pages/ssh/SshCaByIDPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute, linkOptions } from '@tanstack/react-router'
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
-import { SshCaByIDPage } from './SshCaByIDPage'
+import { SshCaByIDPage } from "./SshCaByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/ca/$caId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/ca/$caId"
)({
component: SshCaByIDPage,
beforeLoad: ({ context, params }) => {
@@ -11,15 +11,15 @@ export const Route = createFileRoute(
breadcrumbs: [
...context.breadcrumbs,
{
- label: 'SSH Certificate Authorities',
+ label: "SSH Certificate Authorities",
link: linkOptions({
- to: '/ssh/$projectId/overview',
+ to: "/ssh/$projectId/overview",
params: {
- projectId: params.projectId,
- },
- }),
- },
- ],
- }
- },
-})
+ projectId: params.projectId
+ }
+ })
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/ssh/SshCasPage/components/SshCaModal.tsx b/frontend/src/pages/ssh/SshCasPage/components/SshCaModal.tsx
index 1d9fdb8cf6..07bc964fb3 100644
--- a/frontend/src/pages/ssh/SshCasPage/components/SshCaModal.tsx
+++ b/frontend/src/pages/ssh/SshCasPage/components/SshCaModal.tsx
@@ -126,7 +126,7 @@ export const SshCaModal = ({ popUp, handlePopUpToggle }: Props) => {
});
navigate({
- to: `/${ProjectType.SSH}/$projectId/ca/$caId` as const,
+ to: `/projects/$projectId/${ProjectType.SSH}/ca/$caId` as const,
params: {
projectId,
caId: newCaId
diff --git a/frontend/src/pages/ssh/SshCasPage/components/SshCaTable.tsx b/frontend/src/pages/ssh/SshCasPage/components/SshCaTable.tsx
index 3f97e4e1cb..6228c7130d 100644
--- a/frontend/src/pages/ssh/SshCasPage/components/SshCaTable.tsx
+++ b/frontend/src/pages/ssh/SshCasPage/components/SshCaTable.tsx
@@ -62,7 +62,7 @@ export const SshCaTable = ({ handlePopUpOpen }: Props) => {
key={`ca-${ca.id}`}
onClick={() =>
navigate({
- to: `/${ProjectType.SSH}/$projectId/ca/$caId` as const,
+ to: `/projects/$projectId/${ProjectType.SSH}/ca/$caId` as const,
params: {
projectId: currentWorkspace.id,
caId: ca.id
diff --git a/frontend/src/pages/ssh/SshCasPage/route.tsx b/frontend/src/pages/ssh/SshCasPage/route.tsx
index 6b1d85a8f0..a9017a6334 100644
--- a/frontend/src/pages/ssh/SshCasPage/route.tsx
+++ b/frontend/src/pages/ssh/SshCasPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SshCasPage } from './SshCasPage'
+import { SshCasPage } from "./SshCasPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/cas',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/cas"
)({
- component: SshCasPage,
-})
+ component: SshCasPage
+});
diff --git a/frontend/src/pages/ssh/SshCertsPage/route.tsx b/frontend/src/pages/ssh/SshCertsPage/route.tsx
index 24298b6ae1..0d31624c82 100644
--- a/frontend/src/pages/ssh/SshCertsPage/route.tsx
+++ b/frontend/src/pages/ssh/SshCertsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SshCertsPage } from './SshCertsPage'
+import { SshCertsPage } from "./SshCertsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/certificates',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/certificates"
)({
- component: SshCertsPage,
-})
+ component: SshCertsPage
+});
diff --git a/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/SshHostGroupDetailsByIDPage.tsx b/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/SshHostGroupDetailsByIDPage.tsx
index 623bc06670..81b63c5733 100644
--- a/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/SshHostGroupDetailsByIDPage.tsx
+++ b/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/SshHostGroupDetailsByIDPage.tsx
@@ -54,7 +54,7 @@ const Page = () => {
handlePopUpClose("deleteSshHostGroup");
navigate({
- to: `/${ProjectType.SSH}/$projectId/overview` as const,
+ to: `/projects/$projectId/${ProjectType.SSH}/overview` as const,
params: {
projectId
}
diff --git a/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/route.tsx b/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/route.tsx
index c20f7de39e..4ccb5c4265 100644
--- a/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/ssh/SshHostGroupDetailsByIDPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SshHostGroupDetailsByIDPage } from './SshHostGroupDetailsByIDPage'
+import { SshHostGroupDetailsByIDPage } from "./SshHostGroupDetailsByIDPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/ssh-host-groups/$sshHostGroupId',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/ssh-host-groups/$sshHostGroupId"
)({
- component: SshHostGroupDetailsByIDPage,
-})
+ component: SshHostGroupDetailsByIDPage
+});
diff --git a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsTable.tsx b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsTable.tsx
index 59fcdfdb54..2d1e093936 100644
--- a/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsTable.tsx
+++ b/frontend/src/pages/ssh/SshHostsPage/components/SshHostGroupsTable.tsx
@@ -30,7 +30,6 @@ import {
} from "@app/components/v2";
import { ProjectPermissionActions, ProjectPermissionSub, useWorkspace } from "@app/context";
import { useListWorkspaceSshHostGroups } from "@app/hooks/api";
-import { ProjectType } from "@app/hooks/api/workspace/types";
import { UsePopUpState } from "@app/hooks/usePopUp";
type Props = {
@@ -68,7 +67,7 @@ export const SshHostGroupsTable = ({ handlePopUpOpen }: Props) => {
key={`ssh-host-group-${group.id}`}
onClick={() =>
navigate({
- to: `/${ProjectType.SSH}/$projectId/ssh-host-groups/$sshHostGroupId` as const,
+ to: "/projects/$projectId/ssh/ssh-host-groups/$sshHostGroupId",
params: {
projectId: currentWorkspace.id,
sshHostGroupId: group.id
@@ -169,7 +168,7 @@ export const SshHostGroupsTable = ({ handlePopUpOpen }: Props) => {
onClick={(e) => {
e.stopPropagation();
navigate({
- to: `/${ProjectType.SSH}/$projectId/ssh-host-groups/$sshHostGroupId` as const,
+ to: "/projects/$projectId/ssh/ssh-host-groups/$sshHostGroupId",
params: {
projectId: currentWorkspace.id,
sshHostGroupId: group.id
diff --git a/frontend/src/pages/ssh/SshHostsPage/route.tsx b/frontend/src/pages/ssh/SshHostsPage/route.tsx
index 90bfd24429..366545ee3b 100644
--- a/frontend/src/pages/ssh/SshHostsPage/route.tsx
+++ b/frontend/src/pages/ssh/SshHostsPage/route.tsx
@@ -1,9 +1,9 @@
-import { createFileRoute } from '@tanstack/react-router'
+import { createFileRoute } from "@tanstack/react-router";
-import { SshHostsPage } from './SshHostsPage'
+import { SshHostsPage } from "./SshHostsPage";
export const Route = createFileRoute(
- '/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/overview',
+ "/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/ssh/_ssh-layout/overview"
)({
- component: SshHostsPage,
-})
+ component: SshHostsPage
+});