Skip to content

Add custom Homebrew repository launch flow from Device Info#406

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/add-custom-repo-homebrew
Draft

Add custom Homebrew repository launch flow from Device Info#406
Copilot wants to merge 3 commits into
mainfrom
copilot/add-custom-repo-homebrew

Conversation

Copy link
Copy Markdown

Copilot AI commented May 21, 2026

This change adds a first-class way in Dev Manager to send a custom repository URL to Homebrew Channel, so users can add repos without typing URLs on TV. It directly addresses the friction behind custom repo loss/re-entry workflows.

  • Info page: custom repo entry + action

    • Added a Custom Repository URL field and Add Repo action in the Homebrew Channel section (info.component.html).
    • The action is available when Homebrew Channel is detected on the selected device.
  • Homebrew handoff integration

    • Added addCustomRepoToHomebrew() in InfoComponent to launch Homebrew Channel with launch params:
      • launchMode: "addRepository"
      • url: <user-provided-url>
    • This uses existing app launch plumbing (AppManagerService.launch) and Homebrew Channel’s native add-repository launch mode.
  • Input validation + user feedback

    • URL is trimmed and validated via new URL(...).
    • Only http:// and https:// protocols are accepted.
    • Failure paths surface a user-facing dialog with a concrete error message; no-device-selected is handled explicitly.
  • Focused unit coverage

    • Added info.component.spec.ts coverage for:
      • valid URL launch payload
      • invalid URL rejection
      • non-HTTP(S) protocol rejection
      • whitespace-trim behavior
await this.appManager.launch(device, APP_ID_HBCHANNEL, {
  launchMode: 'addRepository',
  url: parsed.toString(),
});

Copilot AI changed the title [WIP] Add option to include custom repo in Homebrew via Dev Manager Add custom Homebrew repository launch flow from Device Info May 21, 2026
Copilot AI requested a review from mariotaku May 21, 2026 15:22
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.

Adding a custom repo to Homebrew via Dev Manager

2 participants