Skip to content

As a new agent-env user, I want a Quick start card at the top of the e - #1008

Draft
williamloo-scale wants to merge 1 commit into
mainfrom
ask/as-a-new-agent-env-user-i-want-a-quick-s-e303ff8a
Draft

williamloo-scale wants to merge 1 commit into
mainfrom
ask/as-a-new-agent-env-user-i-want-a-quick-s-e303ff8a

Conversation

@williamloo-scale

Copy link
Copy Markdown
Contributor

Opened from Ask AgentEnv (localdev MVP, FD-7169).

Ask: As a new agent-env user, I want a Quick start card at the top of the explorer Home page that shows the three commands to get going (agent-env up, agent-env env deploy, agent-env task run) each with a Copy button, so I can start without reading the docs.

Plan:
Here's the plan. I haven't changed anything; it's also saved to /Users/william.loo/.claude/plans/as-a-new-agent-env-streamed-pretzel.md.

  1. Make the copy button shareable. Move CopyButton from src/components/flow-shared.tsx into src/components/shared.tsx, with an optional label prop for its tooltip and accessible name. flow-shared.tsx re-exports it, so the places that use it now don't change. Taking it from shared.tsx keeps the Home page from loading the @xyflow/react graph library.
  2. Add the card. In src/components/home-page.tsx, add a fixed list of the three commands and a "Quick start" section under the Home heading, above the existing card groups. Each row has a one-line purpose, the command in <code>, and a Copy button.
    • The commands are agent-env up, agent-env env deploy --id <env-id> and agent-env task run --id <task-id>. Both deploy and run require --id.
    • The card fetches nothing, so it renders with no backend running.
  3. Add the Playwright case in src/agent_env/explorer/ui/e2e/quick-start.spec.ts.
    • It opens / and checks that the Quick start section, all three commands and three Copy buttons are visible.
    • It also clicks the first Copy button and checks that the clipboard holds agent-env up.
    • Factory's browser check (factory.yaml) runs it through e2e/playwright.config.ts and keeps the screenshot.
  4. Check it without npm install, using the existing node_modules:
    • npm run typecheck, npm run lint and npm run test:smoke.
    • npx playwright test -c e2e/playwright.config.ts against npx next dev, but only if Playwright is already installed.

Factory checks (local): config pass, browser pass, typecheck pass

Visual evidence: factory check browser kept 2 screenshot(s): home.spec.ts › explorer home renders its navigation; quick-start.spec.ts › home shows the quick start commands, each with a copy button

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant