Skip to content

Commit 25ead06

Browse files
committed
style: run prettier and fix test prop
Run prettier on 3 files and add missing existingPolicyEngines prop to AddGatewayJwtConfig test defaults.
1 parent f1b5f74 commit 25ead06

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/cli/tui/screens/mcp/AddGatewayScreen.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,6 @@ interface JwtConfigInputProps {
559559
onClaimsManagerModeChange?: (mode: ClaimsManagerMode) => void;
560560
}
561561

562-
563-
564562
function JwtConfigInput({
565563
subStep,
566564
steps,

src/cli/tui/screens/mcp/__tests__/AddGatewayJwtConfig.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const DEFAULT_PROPS = {
1717
onExit: vi.fn(),
1818
existingGateways: [],
1919
unassignedTargets: [],
20+
existingPolicyEngines: [],
2021
};
2122

2223
// Helper: navigate past the name step by pressing Enter to accept the generated default name

src/cli/tui/screens/mcp/useAddGatewayWizard.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import type { CustomClaimValidation, GatewayAuthorizerType, GatewayExceptionLevel, PolicyEngineMode } from '../../../../schema';
1+
import type {
2+
CustomClaimValidation,
3+
GatewayAuthorizerType,
4+
GatewayExceptionLevel,
5+
PolicyEngineMode,
6+
} from '../../../../schema';
27
import type { AddGatewayConfig, AddGatewayStep } from './types';
38
import { useCallback, useMemo, useState } from 'react';
49

src/cli/tui/screens/policy/AddPolicyScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { PolicyNameSchema } from '../../../../schema';
22
import { detectRegion } from '../../../aws';
33
import { getPolicyGeneration, startPolicyGeneration } from '../../../aws/policy-generation';
4+
import { policyEnginePrimitive } from '../../../primitives/registry';
45
import { ConfirmReview, Panel, PathInput, Screen, StepIndicator, TextInput, WizardSelect } from '../../components';
56
import type { SelectableItem } from '../../components';
67
import { HELP_TEXT } from '../../constants';
@@ -9,7 +10,6 @@ import { generateUniqueName } from '../../utils';
910
import type { AddPolicyConfig, PolicySourceMethod } from './types';
1011
import { POLICY_SOURCE_METHOD_OPTIONS, POLICY_STEP_LABELS, VALIDATION_MODE_OPTIONS } from './types';
1112
import { useAddPolicyWizard } from './useAddPolicyWizard';
12-
import { policyEnginePrimitive } from '../../../primitives/registry';
1313
import { Box, Text } from 'ink';
1414
import Spinner from 'ink-spinner';
1515
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';

0 commit comments

Comments
 (0)