Skip to content

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

fix lint/type issues

Matheus Nogueirae08fee5e40a7
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 7b88fa8d77..5338ab4f64 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -1,4 +1,5 @@
import { ProjectType } from "@app/db/schemas";
+import { HoneyTokenType } from "@app/ee/services/honey-token/honey-token-enums";
import { PamParentType } from "@app/ee/services/pam-account/pam-account-enums";
import { ScepChallengeType } from "@app/ee/services/pki-scep/challenge";
import {
@@ -54,7 +55,6 @@ import {
} from "@app/services/secret-sync/secret-sync-types";
import { TWebhookPayloads } from "@app/services/webhook/webhook-types";
import { WorkflowIntegration } from "@app/services/workflow-integration/workflow-integration-types";
-import { HoneyTokenType } from "@app/ee/services/honey-token/honey-token-enums";
import { KmipPermission } from "../kmip/kmip-enum";
import { AcmeChallengeType, AcmeIdentifierType } from "../pki-acme/pki-acme-schemas";
diff --git a/frontend/src/context/OrgPermissionContext/index.tsx b/frontend/src/context/OrgPermissionContext/index.tsx
index 87c7b7f84f..d688a96e7b 100644
--- a/frontend/src/context/OrgPermissionContext/index.tsx
+++ b/frontend/src/context/OrgPermissionContext/index.tsx
@@ -5,8 +5,8 @@ export {
OrgPermissionAuditLogsActions,
OrgPermissionBillingActions,
OrgPermissionEmailDomainActions,
- OrgPermissionHoneyTokenActions,
OrgPermissionGroupActions,
+ OrgPermissionHoneyTokenActions,
OrgPermissionIdentityActions,
OrgPermissionSsoActions,
OrgPermissionSubjects
diff --git a/frontend/src/context/index.tsx b/frontend/src/context/index.tsx
index 5df96be38e..9ca4846e93 100644
--- a/frontend/src/context/index.tsx
+++ b/frontend/src/context/index.tsx
@@ -5,8 +5,8 @@ export {
OrgPermissionAuditLogsActions,
OrgPermissionBillingActions,
OrgPermissionEmailDomainActions,
- OrgPermissionHoneyTokenActions,
OrgPermissionGroupActions,
+ OrgPermissionHoneyTokenActions,
OrgPermissionIdentityActions,
OrgPermissionSsoActions,
OrgPermissionSubjects,
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenModal.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenModal.tsx
index 6b017b602e..d0dbf7b238 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenModal.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenModal.tsx
@@ -23,7 +23,11 @@ import {
IconButton,
Input
} from "@app/components/v3";
-import { OrgPermissionHoneyTokenActions, OrgPermissionSubjects, useOrganization } from "@app/context";
+import {
+ OrgPermissionHoneyTokenActions,
+ OrgPermissionSubjects,
+ useOrganization
+} from "@app/context";
import { useTimedReset, useToggle } from "@app/hooks";
import { AppConnection } from "@app/hooks/api/appConnections/enums";
import { useListAppConnections } from "@app/hooks/api/appConnections/queries";
@@ -329,7 +333,10 @@ export const HoneyTokenModal = ({ isOpen, onOpenChange }: Props) => {
<Button variant="ghost" onClick={() => onOpenChange(false)} type="button">
Cancel
</Button>
- <OrgPermissionCan I={OrgPermissionHoneyTokenActions.Setup} a={OrgPermissionSubjects.HoneyTokens}>
+ <OrgPermissionCan
+ I={OrgPermissionHoneyTokenActions.Setup}
+ a={OrgPermissionSubjects.HoneyTokens}
+ >
{(isAllowed) => (
<Button
type="submit"
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
index 17627d55af..cf45cf0d4b 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgProductSettingsTab/HoneyTokenSection.tsx
@@ -55,7 +55,10 @@ export const HoneyTokenSection = () => {
attempt.
</p>
</div>
- <OrgPermissionCan I={OrgPermissionHoneyTokenActions.Setup} a={OrgPermissionSubjects.HoneyTokens}>
+ <OrgPermissionCan
+ I={OrgPermissionHoneyTokenActions.Setup}
+ a={OrgPermissionSubjects.HoneyTokens}
+ >
{(isAllowed) => (
<div className="flex gap-2">
{isConfigured && (