diff options
| author | Adam <[email protected]> | 2025-12-09 21:03:01 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-09 21:39:13 -0600 |
| commit | cf34981e8fed45f4601cedc543406ce15d136766 (patch) | |
| tree | 9663ff9432ae861b3568e8f3e594ee19e1523ac5 /packages/desktop/src/components | |
| parent | e2ebe560ead35d84eb7d1a6272bca3538e0b6928 (diff) | |
| download | opencode-cf34981e8fed45f4601cedc543406ce15d136766.tar.gz opencode-cf34981e8fed45f4601cedc543406ce15d136766.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src/components')
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index cbb261454..4396fd2c9 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -24,7 +24,33 @@ interface PromptInputProps { ref?: (el: HTMLDivElement) => void } -const PLACEHOLDERS = ["Fix a TODO in the codebase", "What is the tech stack of this project?", "Fix broken tests"] +const PLACEHOLDERS = [ + "Fix a TODO in the codebase", + "What is the tech stack of this project?", + "Fix broken tests", + "Explain how authentication works", + "Find and fix security vulnerabilities", + "Add unit tests for the user service", + "Refactor this function to be more readable", + "What does this error mean?", + "Help me debug this issue", + "Generate API documentation", + "Optimize database queries", + "Add input validation", + "Create a new component for...", + "How do I deploy this project?", + "Review my code for best practices", + "Add error handling to this function", + "Explain this regex pattern", + "Convert this to TypeScript", + "Add logging throughout the codebase", + "What dependencies are outdated?", + "Help me write a migration script", + "Implement caching for this endpoint", + "Add pagination to this list", + "Create a CLI command for...", + "How do environment variables work here?", +] export const PromptInput: Component<PromptInputProps> = (props) => { const navigate = useNavigate() @@ -45,7 +71,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { onMount(() => { const interval = setInterval(() => { setPlaceholder((prev) => (prev + 1) % PLACEHOLDERS.length) - }, 5000) + }, 6500) onCleanup(() => clearInterval(interval)) }) |
