feat: resolved frontend url changes and resolved ts error

This commit is contained in:
=
2025-07-23 14:31:52 +05:30
parent 864be1deb7
commit 33256c3462
292 changed files with 5350 additions and 3939 deletions
@@ -22,7 +22,6 @@ import {
SshCertKeyAlgorithm,
sshCertKeyAlgorithms
} from "@app/hooks/api/sshCa/constants";
import { ProjectType } from "@app/hooks/api/workspace/types";
import { UsePopUpState } from "@app/hooks/usePopUp";
type Props = {
@@ -126,7 +125,7 @@ export const SshCaModal = ({ popUp, handlePopUpToggle }: Props) => {
});
navigate({
to: `/projects/$projectId/${ProjectType.SSH}/ca/$caId` as const,
to: "/projects/ssh/$projectId/ca/$caId",
params: {
projectId,
caId: newCaId
@@ -24,7 +24,6 @@ import {
import { ProjectPermissionActions, ProjectPermissionSub, useWorkspace } from "@app/context";
import { SshCaStatus, useListWorkspaceSshCas } from "@app/hooks/api";
import { caStatusToNameMap, getCaStatusBadgeVariant } from "@app/hooks/api/ca/constants";
import { ProjectType } from "@app/hooks/api/workspace/types";
import { UsePopUpState } from "@app/hooks/usePopUp";
type Props = {
@@ -62,7 +61,7 @@ export const SshCaTable = ({ handlePopUpOpen }: Props) => {
key={`ca-${ca.id}`}
onClick={() =>
navigate({
to: `/projects/$projectId/${ProjectType.SSH}/ca/$caId` as const,
to: "/projects/ssh/$projectId/ca/$caId",
params: {
projectId: currentWorkspace.id,
caId: ca.id
+2 -2
View File
@@ -3,7 +3,7 @@ import { createFileRoute, linkOptions } from "@tanstack/react-router";
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/ssh/$projectId/_ssh-layout/cas"
)({
component: SshCasPage,
beforeLoad: ({ context, params }) => {
@@ -13,7 +13,7 @@ export const Route = createFileRoute(
{
label: "Certificate Authorities",
link: linkOptions({
to: "/projects/$projectId/ssh/cas",
to: "/projects/ssh/$projectId/cas",
params
})
}