Skip to content

Commit

Permalink
Update data keys in extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcNeil committed Sep 3, 2024
1 parent beb4e43 commit 942593c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions prompts/poem/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM alpine:3.12 as base

4 changes: 2 additions & 2 deletions src/extension/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function App() {
}, [runOut]);

const startPrompt = async () => {
track('start-prompt');
track('DockerPromptsStartPrompt');
runOutput.updateOutput({ method: 'message', params: { debug: 'Pulling images' } })

runOutput.updateOutput({ method: 'message', params: { debug: 'Running prompts...' } })
Expand Down Expand Up @@ -195,7 +195,7 @@ export function App() {
},
}
});
track('end-prompt');
track('DockerPromptsEndPrompt');
}

const renderPrompt = async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/extension/ui/src/components/Prompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Prompts: React.FC<PromptsProps> = ({ prompts, selectedPrompt, promptInput,
<Button onClick={() => {
setPrompts([...prompts, promptInput]);
setPromptInput('');
track('add-prompt');
track('DockerPromptsAddPrompt');
}}>Import prompt</Button>
)}
<Button onClick={() => {
Expand All @@ -42,7 +42,7 @@ const Prompts: React.FC<PromptsProps> = ({ prompts, selectedPrompt, promptInput,
if (result.canceled) {
return;
}
track('add-local-prompt');
track('DockerPromptsAddLocalPrompt');
setPrompts([...prompts, ...result.filePaths.map(p => `local://${p}`)]);
});
}}>Add local prompt</Button>
Expand Down

0 comments on commit 942593c

Please sign in to comment.