diff --git a/apps/desktop-ui/AGENTS.md b/apps/desktop-ui/AGENTS.md new file mode 100644 index 00000000..643577df --- /dev/null +++ b/apps/desktop-ui/AGENTS.md @@ -0,0 +1,9 @@ + + +# This is NOT the Next.js you know + +This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. + +This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. + + diff --git a/apps/desktop-ui/CLAUDE.md b/apps/desktop-ui/CLAUDE.md new file mode 100644 index 00000000..43c994c2 --- /dev/null +++ b/apps/desktop-ui/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx b/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx index 3f366c6b..c2a95422 100644 --- a/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx +++ b/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx @@ -4,8 +4,6 @@ import React, { useMemo, useState } from 'react' import { useCopyToClipboard } from '@/hooks/use-copy-to-clipboard' import { useTranslations } from 'next-intl' import { Button } from '@/components/ui/button' -import { Card } from '@/components/ui/card' -import { Label } from '@/components/ui/label' import { Select, SelectContent, @@ -13,11 +11,10 @@ import { SelectTrigger, SelectValue, } from '@/components/ui/select' -import { Check, Copy, FileText, Trash2 } from 'lucide-react' +import { Check, Copy, Trash2 } from 'lucide-react' import { IconTerminal2 } from '@tabler/icons-react' -import { ToolPageHeader } from '@/components/tools/tool-page-header' -import { RevealItem } from '@/components/dashboard/dashboard-reveal' -import { CATEGORY_ACCENT } from '@/components/dashboard/types' +import { ToolShell } from '@/components/tools/tool-shell' +import { ToolPanels, IOPanel, ToolTextArea } from '@/components/tools/io-panel' import { CURL_TARGETS, curlToCode, type CurlTarget } from '@/lib/curl-to-code' const SAMPLE = `curl -X POST https://api.example.com/v1/users \\ @@ -33,83 +30,95 @@ export function CurlToCodeLayout() { const result = useMemo(() => curlToCode(input, target), [input, target]) - return ( -
-
- - - - + const toolbar = ( +
+ +
+ ) -
- -
-
- - -
-
- - -
-
-
-