Skip to content

Commit 3ce7090

Browse files
author
colinmcneil
committed
Extension changes
- Screenshot URL Fix - Add `functions-done` to debug
1 parent 5f3b429 commit 3ce7090

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/extension/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LABEL org.opencontainers.image.title="Labs: AI Tools for Devs" \
2727
org.opencontainers.image.description="Agentic workflows with Dockerized tools" \
2828
org.opencontainers.image.vendor="Docker Inc" \
2929
com.docker.desktop.extension.api.version="0.3.4" \
30-
com.docker.extension.screenshots='[{"alt":"screenshot of the extension UI", "url":"https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/main/src/extension/screenshot1.png"}, {"alt":"screenshot of the extension output", "url":"https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/main/src/extension/screenshot2.png"}]' \
30+
com.docker.extension.screenshots='[{"alt":"screenshot of the extension UI", "url":"https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/main/src/extension/Screenshot1.png"}, {"alt":"screenshot of the extension output", "url":"https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/main/src/extension/screenshot2.png"}]' \
3131
com.docker.desktop.extension.icon="https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/main/src/extension/docker.svg" \
3232
com.docker.extension.detailed-description="Run AI-powered workflows with Dockerized tools in Docker Desktop." \
3333
com.docker.extension.publisher-url="https://www.docker.com/" \

src/extension/ui/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,13 @@ export function App() {
331331
if (line.params.debug) {
332332
return showDebug ? <Typography key={i} variant='body1' sx={theme => ({ color: theme.palette.docker.grey[400] })}>{line.params.debug}</Typography> : null;
333333
}
334-
if (line.params.role === 'assistant') {
335-
return <Typography key={i} variant='body1' sx={theme => ({ color: theme.palette.docker.blue[400] })}>{line.params.content}</Typography>
336-
}
337334
return <pre key={i} style={{ whiteSpace: 'pre-wrap', display: 'inline' }} dangerouslySetInnerHTML={{ __html: convert.toHtml(line.params.content) }} />
338335
}
339336
if (line.method === 'functions') {
340-
return <Typography key={i} variant='body1' sx={{ whiteSpace: 'pre-wrap' }}>{JSON.stringify(line.params, null, 2)}</Typography>
337+
return <Typography key={i} variant='body1' sx={theme => ({ whiteSpace: 'pre-wrap', backgroundColor: theme.palette.docker.grey[300], p: 1 })}>{JSON.stringify(line.params, null, 2)}</Typography>
338+
}
339+
if (line.method === 'functions-done') {
340+
return showDebug ? <Typography key={i} variant='body1' sx={{ whiteSpace: 'pre-wrap' }}>{JSON.stringify(line.params, null, 2)}</Typography> : null;
341341
}
342342
return <Typography key={i} variant='body1'>{JSON.stringify(line)}</Typography>
343343
})}

0 commit comments

Comments
 (0)