Skip to content

Add a Homebrew command route and fix the copied launcher - #14

Merged
pedrobritx merged 1 commit into
mainfrom
feat/homebrew-command-route
Nov 11, 2026
Merged

pedrobritx merged 1 commit into
mainfrom
feat/homebrew-command-route

Conversation

@pedrobritx

Copy link
Copy Markdown
Owner

Problem

  • The full guided installer was the only route from the website, which installs more than some users want (profiles also pre-select setup steps and preferences).
  • Copy on the handoff page put the companion launcher on the clipboard with two line breaks. Prettier had wrapped the <code> element across three lines and the button copied textContent verbatim. In Terminal, curl -fsSL ran without a URL and the third line failed with parse error near '|'.

Resulting behaviour

  • Review offers a choice between Guided setup (unchanged, still the default) and Homebrew command. The choice is remembered in local storage and never enters the exported plan; the local companion always installs as before.
  • The Homebrew route shows one-line commands built from the selected catalogue tokens, in Brewfile order, e.g. brew install --formula mas; brew install --cask google-chrome appcleaner 1password vlc, plus an optional mas get <id>… line when App Store apps are selected.
  • Items the commands do not cover (preferences, setup steps, MCP connections, web apps, manual installs) are listed, with a way back to the guided setup. The stepper's third step follows the chosen route.
  • All copy buttons write canonical one-line strings, not page text.

Key decisions

  • ; between the formula and cask groups so a formula failure cannot skip the apps. Current Homebrew already isolates failures within a --cask list (cmd/install.rb rescues per cask).
  • --formula makes intent explicit and avoids formula/cask name ambiguity warnings.
  • mas get rather than mas install: Homebrew ships mas 7.0.0, where get obtains free apps and installs owned ones; install only handles previously obtained apps.
  • Only allowlisted tokens are emitted (docs/assets/commands.mjs); anything else is reported as not included.
  • Words render as unbreakable units, so hyphenated names never wrap into what looks like two packages.
  • New strings are translated for all five locales.

Verification

  • npm test: Node 22/22 (7 new) and Python 21/21; check:format and check:catalog pass.
  • Playwright, full suite in WebKit: 30/30. Chromium (setup, components, languages): 19/19. Firefox (setup): 10/10.
  • The new clipboard test fails against main, showing the two line breaks, and passes with this change.
  • Axe WCAG 2.1 AA checks pass on the new view at 390 px in both themes; pt-BR translation checked.

Limitations

  • Not run on a real Mac: pasting into zsh, real Homebrew installs and mas get behaviour are recorded as manual cases in docs/ACCEPTANCE.md.
  • Homebrew and mas behaviour was verified from their current source, not by executing them.
  • The guided installer still uses mas install (scripts/mas.sh), so free App Store apps never obtained by the account are likely to fail on that route; left unchanged here.
  • Preview images in outputs/ were not regenerated.

Generated by Claude Code

Review now offers two routes. Guided setup (plan download and local
companion) is unchanged and remains the default. The new Homebrew
command route shows one-line commands built from the selected
catalogue tokens:

  brew install --formula <formulae>; brew install --cask <casks>
  mas get <app-store-ids>   (optional, only when App Store apps are chosen)

Preferences, setup steps, connections and manual installs are listed
as not included, with a way back to the guided setup.

Fix: Copy on the handoff page copied the launcher with two line breaks,
because formatting had wrapped the <code> element across three lines.
Pasting ran `curl -fsSL` without a URL and failed with a parse error at
`|`. Copy buttons now write canonical one-line strings; the page
fallback is pinned to one line with prettier-ignore.

Verification: node/python unit suites (22 + 21), format and catalogue
checks, full Playwright suite in WebKit (30/30), setup/components/
languages specs in Chromium (19/19) and setup spec in Firefox (10/10).
The new copy test fails against the previous code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JBgAhZ6s45DnrKXbhbwYet
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T02:51:52.880717Z 68b34d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pedrobritx
pedrobritx merged commit ca00575 into main Nov 11, 2026
10 checks passed
@pedrobritx
pedrobritx deleted the feat/homebrew-command-route branch November 11, 2026 02:52
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.

2 participants