Skip to content

Commit f4a14c6

Browse files
committed
fix: correct deploy step ordering and credential count display
1 parent 39f23b4 commit f4a14c6

2 files changed

Lines changed: 218 additions & 88 deletions

File tree

src/cli/tui/components/CredentialSourcePrompt.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,18 @@ export function CredentialSourcePrompt({
137137
<Box flexDirection="column" gap={1}>
138138
<Text bold>Identity Provider Setup</Text>
139139
<Text dimColor>
140-
{missingCredentials.length} identity provider{missingCredentials.length > 1 ? 's' : ''} configured:
140+
{new Set(missingCredentials.map(c => c.providerName)).size} identity provider
141+
{new Set(missingCredentials.map(c => c.providerName)).size > 1 ? 's' : ''} configured:
141142
</Text>
142143
<Box flexDirection="column" marginLeft={2}>
143-
{missingCredentials.map(cred => (
144-
<Text key={cred.envVarName} dimColor>
145-
{cred.providerName}
144+
{[...new Set(missingCredentials.map(c => c.providerName))].map(name => (
145+
<Text key={name} dimColor>
146+
{name}
146147
</Text>
147148
))}
148149
</Box>
149150
<Box marginTop={1}>
150-
<Text dimColor>How would you like to provide the API keys?</Text>
151+
<Text dimColor>How would you like to provide the credentials?</Text>
151152
</Box>
152153
<Box marginTop={1}>
153154
<SelectList items={SOURCE_OPTIONS} selectedIndex={selectedIndex} />

0 commit comments

Comments
 (0)