mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +00:00
requested changes
This commit is contained in:
@@ -20,7 +20,7 @@ import {
|
|||||||
useLinkGitAppInstallationWithOrg
|
useLinkGitAppInstallationWithOrg
|
||||||
} from "@app/hooks/api/secretScanning";
|
} from "@app/hooks/api/secretScanning";
|
||||||
|
|
||||||
import { ExportSecretScansModal } from "./components/ExportResultsModal";
|
import { ExportSecretScansModal } from "./components/ExportSecretScansModal";
|
||||||
import { SecretScanningLogsTable } from "./components";
|
import { SecretScanningLogsTable } from "./components";
|
||||||
|
|
||||||
export const SecretScanningPage = withPermission(
|
export const SecretScanningPage = withPermission(
|
||||||
@@ -68,7 +68,7 @@ export const SecretScanningPage = withPermission(
|
|||||||
|
|
||||||
const generateNewIntegrationSession = async () => {
|
const generateNewIntegrationSession = async () => {
|
||||||
const session = await createNewIntegrationSession({ organizationId });
|
const session = await createNewIntegrationSession({ organizationId });
|
||||||
window.location.href = `https://github.com/apps/infisical-radar-dev-2/installations/new?state=${session.sessionId}`;
|
window.location.href = `https://github.com/apps/infisical-radar/installations/new?state=${session.sessionId}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
+1
-3
@@ -44,7 +44,7 @@ export const ExportSecretScansModal = ({ popUp, handlePopUpToggle, gitRisks }: P
|
|||||||
handleSubmit,
|
handleSubmit,
|
||||||
watch,
|
watch,
|
||||||
|
|
||||||
formState: { errors, isSubmitting }
|
formState: { isSubmitting }
|
||||||
} = useForm<TFormSchema>({
|
} = useForm<TFormSchema>({
|
||||||
resolver: zodResolver(formSchema),
|
resolver: zodResolver(formSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
@@ -72,7 +72,6 @@ export const ExportSecretScansModal = ({ popUp, handlePopUpToggle, gitRisks }: P
|
|||||||
}, [gitRisks, selectedOrganization]);
|
}, [gitRisks, selectedOrganization]);
|
||||||
|
|
||||||
const onFormSubmit = async (data: TFormSchema) => {
|
const onFormSubmit = async (data: TFormSchema) => {
|
||||||
console.log(data);
|
|
||||||
const filteredRisks = gitRisks
|
const filteredRisks = gitRisks
|
||||||
.filter((risk) =>
|
.filter((risk) =>
|
||||||
// eslint-disable-next-line no-nested-ternary
|
// eslint-disable-next-line no-nested-ternary
|
||||||
@@ -119,7 +118,6 @@ export const ExportSecretScansModal = ({ popUp, handlePopUpToggle, gitRisks }: P
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("errors", errors);
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={handleSubmit(onFormSubmit)}>
|
<form onSubmit={handleSubmit(onFormSubmit)}>
|
||||||
<Modal
|
<Modal
|
||||||
@@ -6,7 +6,7 @@ import { SecretScanningPage } from "./SecretScanningPage";
|
|||||||
|
|
||||||
const SecretScanningQueryParams = z.object({
|
const SecretScanningQueryParams = z.object({
|
||||||
state: z.string().catch(""),
|
state: z.string().catch(""),
|
||||||
installation_id: z.coerce.number().optional()
|
installation_id: z.coerce.string().optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
export const Route = createFileRoute(
|
export const Route = createFileRoute(
|
||||||
@@ -17,7 +17,7 @@ export const Route = createFileRoute(
|
|||||||
search: {
|
search: {
|
||||||
middlewares: [
|
middlewares: [
|
||||||
stripSearchParams({
|
stripSearchParams({
|
||||||
installation_id: 0,
|
installation_id: "",
|
||||||
state: ""
|
state: ""
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user