Skip to content

Commit 7536417

Browse files
author
colinmcneil
committed
Add info alert about what secrets do
1 parent a00756b commit 7536417

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Secret list for the tab
22

3-
import { Alert, List, ListItem, ListItemText, Typography } from "@mui/material";
3+
import { Alert, List, ListItem, ListItemText, Stack, Typography } from "@mui/material";
44
import Secrets from "../Secrets";
55
import { DD_BUILD_WITH_SECRET_SUPPORT, getUnsupportedSecretMessage } from "../Constants";
66

@@ -11,11 +11,22 @@ export const SecretList = ({ secrets, ddVersion }: { secrets: Secrets.Secret[],
1111
return <Alert severity="error" sx={{ fontSize: '1.2rem', maxWidth: 600 }}>{getUnsupportedSecretMessage(ddVersion)}</Alert>
1212
}
1313

14-
return <List subheader={<Typography variant="h2">The following secrets are available to use in your prompts:</Typography>} sx={{ fontSize: '1.2rem' }}>
14+
return <List subheader={
15+
<Stack direction="column" spacing={2} alignItems="center">
16+
<Alert title="Docker Secret Management" severity="info" sx={{ fontSize: '1.2rem', maxWidth: 600 }}>
17+
Docker Secret Management is a new feature in Docker Desktop that allows you to securely inject secrets into your containers.
18+
</Alert>
19+
<Typography variant="h2">
20+
The following secrets are available to use in your prompts:
21+
</Typography>
22+
23+
</Stack >
24+
}>
1525
{secrets.map((secret) => (
1626
<ListItem key={secret.name}>
1727
<ListItemText primary={<Typography variant="h6">{secret.name}</Typography>} />
1828
</ListItem>
1929
))}
20-
</List>
30+
31+
</List >
2132
}

0 commit comments

Comments
 (0)