Skip to content

Commit 76fbf5f

Browse files
committed
feat: improve the summary list to remove noops and skips
1 parent 78d76e5 commit 76fbf5f

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"deploy": "npm run pkg && npm run notarize && npm run upload",
146146
"prepublishOnly": "npm run build"
147147
},
148-
"version": "1.1.0-beta.3",
148+
"version": "1.1.0-beta.4",
149149
"bugs": "https://github.com/codifycli/codify/issues",
150150
"keywords": [
151151
"oclif",

src/ui/components/widgets/ApplyComplete.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { ResourceOperation } from '@codifycli/schemas';
12
import { Box, Text } from 'ink';
23
import React from 'react';
34

@@ -79,12 +80,14 @@ export function ApplyComplete({ result }: { result: ApplyResult }) {
7980

8081
{result.entries.length > 0 && (
8182
<Box flexDirection="column" marginTop={1}>
82-
{result.entries.map((entry) => (
83-
<Box key={entry.id}>
84-
<Text dimColor={entry.status === 'skipped'}>{entry.id.padEnd(30)}</Text>
85-
<Text color={applyEntryInkColor(entry)}>{applyEntryLabel(entry)}</Text>
86-
</Box>
87-
))}
83+
{result.entries
84+
.filter((e) => !(e.status === 'success' && e.operation === ResourceOperation.NOOP))
85+
.map((entry) => (
86+
<Box key={entry.id}>
87+
<Text dimColor={entry.status === 'skipped'}>{entry.id.padEnd(30)}</Text>
88+
<Text color={applyEntryInkColor(entry)}>{applyEntryLabel(entry)}</Text>
89+
</Box>
90+
))}
8891
</Box>
8992
)}
9093

0 commit comments

Comments
 (0)