Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement: add support for ordering by destination
Scott Wilsond4a76b362199
diff --git a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationDetails.tsx b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationDetails.tsxindex 1631fc8c4e..f785ca745c 100644--- a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationDetails.tsx+++ b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationDetails.tsx@@ -14,7 +14,8 @@ export const getIntegrationDestination = (integration: TIntegration) =>(integration.scope === "github-org" && `${integration.owner}`) ||(["aws-parameter-store", "rundeck"].includes(integration.integration) && `${integration.path}`) ||(integration.scope?.startsWith("github-") && `${integration.owner}/${integration.app}`) ||- integration.app;+ integration.app ||+ "-";export const IntegrationDetails = ({ integration }: Props) => {return (diff --git a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationsTable.tsx b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationsTable.tsxindex 611566a06e..9719e37938 100644--- a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationsTable.tsx+++ b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationsTable.tsx@@ -36,8 +36,8 @@ import { usePagination, useResetPageHelper } from "@app/hooks";import { OrderByDirection } from "@app/hooks/api/generic/types";import { useSyncIntegration } from "@app/hooks/api/integrations/queries";import { TCloudIntegration, TIntegration } from "@app/hooks/api/integrations/types";-import { getIntegrationDestination } from "@app/views/IntegrationsPage/components/IntegrationsSection/components/IntegrationDetails";+import { getIntegrationDestination } from "./IntegrationDetails";import { IntegrationRow } from "./IntegrationRow";type Props = {@@ -53,7 +53,8 @@ enum IntegrationsOrderBy {App = "app",Status = "status",SecretPath = "secretPath",- Environment = "environment"+ Environment = "environment",+ Destination = "destination"}enum IntegrationStatus {@@ -144,7 +145,7 @@ export const IntegrationsTable = ({.includes(search.trim().toLowerCase()) ||secretPath.replace("-", " ").toLowerCase().includes(search.trim().toLowerCase()) ||getIntegrationDestination(integration)- ?.toLowerCase()+ .toLowerCase().includes(search.trim().toLowerCase()) ||environmentMap.get(envId)@@ -168,6 +169,10 @@ export const IntegrationsTable = ({.localeCompare((environmentMap.get(integrationTwo.envId)?.name ?? "-").toLowerCase());+ case IntegrationsOrderBy.Destination:+ return getIntegrationDestination(integrationOne)+ .toLowerCase()+ .localeCompare(getIntegrationDestination(integrationTwo).toLowerCase());case IntegrationsOrderBy.Status:if (typeof integrationOne.isSynced !== "boolean") return 1; // Place undefined at the endif (typeof integrationTwo.isSynced !== "boolean") return -1;@@ -365,7 +370,19 @@ export const IntegrationsTable = ({</IconButton></div></Th>- <Th className="w-1/5">Destination</Th>+ <Th className="w-1/5">+ <div className="flex items-center">+ Destination+ <IconButton+ variant="plain"+ className={getClassName(IntegrationsOrderBy.Destination)}+ ariaLabel="sort"+ onClick={() => handleSort(IntegrationsOrderBy.Destination)}+ >+ <FontAwesomeIcon icon={getColSortIcon(IntegrationsOrderBy.Destination)} />+ </IconButton>+ </div>+ </Th><Th className="w-1/5"><div className="flex items-center">Status