Files
pad/web/src
xarmian 403cf6b149 feat(web): Blank-first picker + post-create /pad onboard guidance (TASK-1506) (#579)
* feat(web): surface Blank as featured card + post-create /pad onboard guidance (TASK-1506)

The console workspace-creation page (web/src/routes/console/new) now
makes the agent-driven flow first-class on both the picker and the
post-create screen:

Picker:
- Blank template renders as a leading "featured" card above the
  grouped category list, with an "Agent-driven" badge so its
  positioning is intentional rather than visually accidental.
- The grouped category iteration filters Blank out so it doesn't
  render twice. Older server builds that don't ship Blank degrade
  silently — the featured card just doesn't appear.

Post-create success state:
- Replaces the pre-task immediate goto-redirect that took users
  straight to the dashboard, hiding the canonical /pad onboard
  entry point.
- Branches on template:
  - Blank: prominent onboard card with a heading, a copy/paste
    snippet (<pre><code>/pad onboard</code></pre>), and a help line
    pointing at the agent-connection docs.
  - Non-blank: subtle one-paragraph affordance — "want to customize
    further? run /pad onboard."
- "Open <workspace>" CTA renders as an <a> styled like .submit-btn
  so the success screen is one click from the workspace dashboard.

Implementation notes:
- Script uses $state for createdWorkspace + createdTemplate to swap
  the layout, $derived for blankTemplate / grouped / username,
  $derived.by for workspaceUrl (multi-statement derivation).
- 'goto' import removed (no longer needed — the swap replaces the
  redirect).

Verification:
- svelte-autofixer: 0 issues, 0 suggestions.
- svelte-check: 0 errors (pre-existing warnings in unrelated files).
- npm run build: clean.
- go test ./... + golangci-lint: clean (Go side untouched).

Parent: PLAN-1496.

* fix(web): repoint Connect-MCP link to existing getpad.dev docs (Codex round 1)

P2 finding on PR #579: /docs/agents is not a route in this app (no
/docs prefix exists; only the marketing site at getpad.dev owns the
docs surface). Clicking the link from the success state would land
on the app's 404 page.

Repointed to https://getpad.dev/docs — the same external URL the
+error.svelte page already uses for 'Browse docs' (known-good and
known-stable). Added target/rel attrs matching the existing external
getpad.dev links elsewhere in the codebase.

Parent: PLAN-1496, addressing Codex round 1 on PR #579 / TASK-1506.
2026-05-17 16:23:05 -04:00
..
2026-03-26 01:52:36 +00:00