Skip to content

refactor(gui): rename stale "CLI" health terminology to "Backend" - #241

Merged
CameronBrooks11 merged 1 commit into
mainfrom
refactor/gui-rename-cli-to-backend
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
refactor/gui-rename-cli-to-backend

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #234. Part of the GUI redesign + dev-workflow epic #238.

Why

Compute moved to the API sidecar, but the health/status naming still said "CLI" — inaccurate and confusing to users (they see "CLI Backend Unavailable" / "CLI: Ready" with no user-facing CLI).

What

Rename the user-facing concept to Backend across the stack:

  • Rust: check_cli_health → check_backend_health; CliHealthResponse → BackendHealthResponse; reworded its two user-facing error strings to "Backend …".
  • State: cli-health.svelte.ts → backend-health.svelte.ts (CliHealth→BackendHealth, cliHealth→backendHealth, CliStatus→BackendStatus); CliHealthResponseSchema → BackendHealthResponseSchema.
  • Components: CliHealthWarning → BackendHealthWarning, CliUnavailableDialog → BackendUnavailableDialog (+ CSS classes); strings "CLI Backend Unavailable" → "Backend Unavailable", "CLI:" → "Backend:" in the status bar.

Genuine references to the bundled CLI binary (cli_path, cli_process, the marlin spawn error) are intentionally left — they correctly name the executable.

Verification

  • tsc, check:svelte (0 errors), lint:css, lint:css:vars, 316/316 vitest.
  • Rust: cargo fmt --check, clippy -D warnings clean, cargo test (5 passed).
  • git grep confirms no stale check_cli_health / CliHealth* references remain.

Closes #234

Compute moved to the API sidecar long ago, but the health/status naming still
said "CLI", which read as inaccurate to users. Rename the user-facing concept to
"Backend" across the stack:

- Tauri command check_cli_health -> check_backend_health; struct
  CliHealthResponse -> BackendHealthResponse; reword its two user-facing error
  strings to "Backend ...".
- State: cli-health.svelte.ts -> backend-health.svelte.ts (CliHealth ->
  BackendHealth, cliHealth -> backendHealth, CliStatus -> BackendStatus);
  CliHealthResponseSchema -> BackendHealthResponseSchema.
- Components: CliHealthWarning -> BackendHealthWarning, CliUnavailableDialog ->
  BackendUnavailableDialog (+ CSS classes); strings "CLI Backend Unavailable" ->
  "Backend Unavailable" and "CLI:" -> "Backend:" in the status bar.

Genuine references to the bundled CLI binary (cli_path, cli_process, the marlin
spawn error) are left intact — they correctly name the executable.

Closes #234
@CameronBrooks11
CameronBrooks11 merged commit 3e1a703 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the refactor/gui-rename-cli-to-backend branch June 27, 2026 05:18
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.

Rename stale "CLI" terminology to Backend/API

1 participant