From cb31516f4621f2dff27474394a35d38514e0d0b2 Mon Sep 17 00:00:00 2001 From: Avi Alpert Date: Thu, 23 Apr 2026 14:03:08 -0400 Subject: [PATCH 1/2] feat: remove deployed/local from status legend --- src/cli/tui/components/ResourceGraph.tsx | 11 ------- .../__tests__/ResourceGraph.test.tsx | 31 ------------------- 2 files changed, 42 deletions(-) diff --git a/src/cli/tui/components/ResourceGraph.tsx b/src/cli/tui/components/ResourceGraph.tsx index eacb9bd10..26fdcbd1a 100644 --- a/src/cli/tui/components/ResourceGraph.tsx +++ b/src/cli/tui/components/ResourceGraph.tsx @@ -420,17 +420,6 @@ export function ResourceGraph({ project, mcp, agentName, resourceStatuses }: Res {ICONS.gateway} gateway{' '} {ICONS['policy-engine']} policy engine - {resourceStatuses && resourceStatuses.length > 0 && ( - - - [Deployed] - live in AWS - {' '} - [Local only] - not yet deployed - - - )} ); diff --git a/src/cli/tui/components/__tests__/ResourceGraph.test.tsx b/src/cli/tui/components/__tests__/ResourceGraph.test.tsx index 516cd5326..b6eb34dfa 100644 --- a/src/cli/tui/components/__tests__/ResourceGraph.test.tsx +++ b/src/cli/tui/components/__tests__/ResourceGraph.test.tsx @@ -262,37 +262,6 @@ describe('ResourceGraph', () => { expect(lastFrame()).toContain('deploy'); }); - it('renders deployment state legend when resourceStatuses provided', () => { - const project = { - ...baseProject, - runtimes: [{ name: 'my-agent' }], - } as unknown as AgentCoreProjectSpec; - - const resourceStatuses: ResourceStatusEntry[] = [ - { resourceType: 'agent', name: 'my-agent', deploymentState: 'deployed' }, - ]; - - const { lastFrame } = render(); - - expect(lastFrame()).toContain('[Deployed]'); - expect(lastFrame()).toContain('live in AWS'); - expect(lastFrame()).toContain('[Local only]'); - expect(lastFrame()).toContain('not yet deployed'); - }); - - it('does not render deployment state legend when no resourceStatuses', () => { - const project = { - ...baseProject, - runtimes: [{ name: 'my-agent' }], - } as unknown as AgentCoreProjectSpec; - - const { lastFrame } = render(); - - // Should have the base legend but not the deployment state legend - expect(lastFrame()).toContain('agent'); - expect(lastFrame()).not.toContain('[Deployed]'); - }); - it('renders removed credentials in Removed Locally section', () => { const resourceStatuses: ResourceStatusEntry[] = [ { From 1fe3a03546df55271730c0e10cf870d68f344e0a Mon Sep 17 00:00:00 2001 From: Avi Alpert Date: Thu, 23 Apr 2026 14:06:37 -0400 Subject: [PATCH 2/2] fix: prettier --- eslint.config.mjs | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 216c4caf2..72990753f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -13,13 +13,19 @@ const partitionPlugin = { 'no-hardcoded-arn-partition': { meta: { type: 'problem', - docs: { description: 'Disallow hardcoded arn:aws: partition in ARN construction. Use arnPrefix(region) instead.' }, + docs: { + description: 'Disallow hardcoded arn:aws: partition in ARN construction. Use arnPrefix(region) instead.', + }, schema: [], }, create(context) { function checkForHardcodedArn(node, value) { if (/arn:aws:/.test(value)) { - context.report({ node, message: 'Hardcoded "arn:aws:" detected. Use arnPrefix(region) from src/cli/aws/partition.ts for multi-partition support.' }); + context.report({ + node, + message: + 'Hardcoded "arn:aws:" detected. Use arnPrefix(region) from src/cli/aws/partition.ts for multi-partition support.', + }); } } return { @@ -34,7 +40,10 @@ const partitionPlugin = { 'no-hardcoded-endpoint-tld': { meta: { type: 'problem', - docs: { description: 'Disallow hardcoded amazonaws.com in endpoint URL construction. Use serviceEndpoint() or dnsSuffix() instead.' }, + docs: { + description: + 'Disallow hardcoded amazonaws.com in endpoint URL construction. Use serviceEndpoint() or dnsSuffix() instead.', + }, schema: [], }, create(context) { @@ -49,13 +58,21 @@ const partitionPlugin = { TemplateLiteral(node) { for (const quasi of node.quasis) { if (hasHardcodedEndpoint(quasi.value.raw)) { - context.report({ node, message: 'Hardcoded ".amazonaws.com" in template literal. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.' }); + context.report({ + node, + message: + 'Hardcoded ".amazonaws.com" in template literal. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.', + }); } } }, Literal(node) { if (typeof node.value === 'string' && hasHardcodedEndpointWithRegion(node.value)) { - context.report({ node, message: 'Hardcoded endpoint with region detected. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.' }); + context.report({ + node, + message: + 'Hardcoded endpoint with region detected. Use serviceEndpoint() or dnsSuffix() from src/cli/aws/partition.ts for multi-partition support.', + }); } }, };