Skip to content

feat(dashboard): "Connect Claude Code to cix" onboarding card on home#62

Merged
dvcdsys merged 1 commit into
developfrom
feat/dashboard-connect-claude-code-guide
Jun 3, 2026
Merged

feat(dashboard): "Connect Claude Code to cix" onboarding card on home#62
dvcdsys merged 1 commit into
developfrom
feat/dashboard-connect-claude-code-guide

Conversation

@dvcdsys
Copy link
Copy Markdown
Owner

@dvcdsys dvcdsys commented Jun 3, 2026

Context

The dashboard home page had no onboarding flow. A new user had to piece together several disjoint steps from the README and the API-Keys popup to wire cix into Claude Code. This adds a single step-by-step card on the home page that takes the user from zero to "I can see the cix skills in Claude Code".

What changed

A collapsible "Connect Claude Code to cix" card on the home page, between the server-status strip and the Modules grid:

  1. Install the cix CLIcurl … install.sh | bash
  2. Connect the CLI to this server — links to the in-dashboard API Keys page and shows the live, per-host cix config set … command for this deployment
  3. Add the plugin to Claude Code/plugin marketplace add dvcdsys/code-index, /plugin install cix@code-index, /reload-plugins
  4. Index a project (Optional) — skippable for workspace / external-project-only users; cix status alone still verifies the connection; links to Workspaces/Projects
  5. See the cix skills — lists /cix:search, /cix:def, /cix:refs, … as the finish line
  • Collapse state persists in localStorage (expanded by default).
  • Commands use one-click copy buttons (secure-context clipboard + execCommand fallback for HTTP deploys).

Files

  • lib/cixServer.ts (new) — cixServerAlias + cixConnectCommand, extracted from CreateApiKeyDialog and reused by both the card and the dialog so the two never drift.
  • lib/useCopy.ts (new) — reusable clipboard hook with HTTP fallback.
  • modules/home/CommandBlock.tsx (new) — copyable mono command block.
  • modules/home/ConnectClaudeCodeCard.tsx (new) — the card.
  • modules/home/HomePage.tsx, modules/api-keys/components/CreateApiKeyDialog.tsx — wired up / switched to the shared helper.

Frontend-only; no server/API/auth changes. Build artifacts under internal/httpapi/dashboard/dist/ stay gitignored (CI rebuilds via make dashboard-build).

Verification

  • tsc -b clean; make dashboard-build succeeds (Vite); .gitkeep preserved and dist/ stays gitignored.
  • Linked routes (/api-keys, /workspaces, /projects) confirmed present in the module registry.
  • Not yet visually screenshotted — the home page is auth-gated and no dev login was available during the change.

Follow-ups (out of scope)

  • Migrate the 4 existing inline clipboard copies (CreateApiKeyDialog, ManagedTunnelsPage, SyncSettingsCard, AddRepoDialog) onto the new useCopy hook.
  • Localization (card is English-only, matching the current dashboard).

🤖 Generated with Claude Code

…home

Add a collapsible step-by-step card on the dashboard home page that walks a
new user from zero to seeing the cix skills in Claude Code:

  1. Install the cix CLI (curl installer)
  2. Connect the CLI to this server (links to API Keys, shows the live
     per-host connect command)
  3. Add the plugin marketplace + install in Claude Code
  4. (Optional) index a local project — skippable for workspace / external-
     project-only users; cix status alone still verifies the connection
  5. See the cix slash commands / skills appear

Collapse state persists in localStorage (expanded by default). Commands use
one-click copy buttons with the secure-context clipboard + execCommand
fallback for HTTP deploys.

Extract the per-host alias / connect-command derivation into
lib/cixServer.ts (cixServerAlias, cixConnectCommand) and reuse it in both the
card and the API-key popup so the two never drift. Add a reusable lib/useCopy
hook for the new components.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dvcdsys dvcdsys changed the base branch from main to develop June 3, 2026 10:57
@dvcdsys dvcdsys merged commit 91ccbbf into develop Jun 3, 2026
6 of 7 checks passed
@dvcdsys dvcdsys deleted the feat/dashboard-connect-claude-code-guide branch June 3, 2026 10:58
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