Skip to content

Include Firefox in the WebSerial browser copy#17

Merged
bharvey88 merged 1 commit into
mainfrom
fix/firefox-webserial-copy
Jul 10, 2026
Merged

Include Firefox in the WebSerial browser copy#17
bharvey88 merged 1 commit into
mainfrom
fix/firefox-webserial-copy

Conversation

@bharvey88

@bharvey88 bharvey88 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What does this change?

Copy-only. The installer said flashing "needs Chrome or Edge," but current Firefox ships WebSerial and flashes fine (verified on real hardware), so that text wrongly excluded it. Updated the hero and the manual-fallback copy to "Chrome, Edge, or Firefox".

  • js/views/hub.js hero line, and the js/views/device.js manual-fallback block (3 spots).
  • No logic change — the navigator.serial capability check already decides whether a browser gets the flash flow or the manual fallback. This only corrects the guidance text.

Checklist

  • Playwright tests pass locally (cd tests && npx playwright test) (19 passed, 1 intentional skip)
  • Any new runtime file/dir is added to the cp list in .github/workflows/pages.yml (n/a: edits only)
  • No new build step, framework, or runtime CDN dependency
  • If devices.json changed: python scripts/validate_registry.py passes (devices.json unchanged)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated installation guidance to list Firefox alongside Chrome and Edge as supported browsers.
    • Revised manual-install instructions to reflect the expanded browser support.

Current Firefox ships WebSerial and flashes fine (verified on real hardware),
so the "needs Chrome or Edge" copy wrongly excluded it. Update the hero and the
manual-fallback text to "Chrome, Edge, or Firefox". Copy only — the
navigator.serial capability check already drives the actual behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Browser support text in the device fallback instructions and hub hero paragraph now includes Firefox alongside Chrome and Edge.

Changes

Supported-browser copy

Layer / File(s) Summary
Update supported-browser instructions
js/views/device.js, js/views/hub.js
Device manual-install fallback text and hub instructional copy now list Chrome, Edge, and Firefox.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A bunny hops through browser lore,
Firefox joins the install door.
Chrome and Edge still lead the way,
Clearer steps for every day.
Hop hop—ship the update! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding Firefox to the WebSerial browser guidance copy.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/firefox-webserial-copy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bharvey88
bharvey88 merged commit 3ce47f7 into main Jul 10, 2026
2 checks passed

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@js/views/device.js`:
- Around line 132-137: Update the navigator.serial fallback copy in the relevant
device view markup to identify Chrome and Edge as the only browsers supporting
direct USB flashing; mention Firefox only in the manual download/install path,
including the classic installer wording as appropriate.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d29cb3c6-3455-4b5c-b55e-d71a0d4e34e7

📥 Commits

Reviewing files that changed from the base of the PR and between c46bc84 and eab14e6.

📒 Files selected for processing (2)
  • js/views/device.js
  • js/views/hub.js

Comment thread js/views/device.js
Comment on lines +132 to +137
<p>Installing from the browser needs Chrome, Edge, or Firefox. You can still install manually:</p>
<ul id="fallback-files"><li>Loading firmware file list…</li></ul>
<ul>
<li>Flash it with <a href="https://web.esphome.io">ESPHome Web</a> (open it in Chrome/Edge) or
<li>Flash it with <a href="https://web.esphome.io">ESPHome Web</a> (open it in Chrome, Edge, or Firefox) or
<code>esptool write-flash --port &lt;port&gt; 0x0 &lt;file&gt;</code>.</li>
<li>Or use the <a href="${device.githubPagesInstaller}">classic installer page</a> in Chrome/Edge.</li>
<li>Or use the <a href="${device.githubPagesInstaller}">classic installer page</a> in Chrome, Edge, or Firefox.</li>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

git ls-files js/views/device.js
echo '---'
wc -l js/views/device.js
echo '---'
sed -n '110,160p' js/views/device.js
echo '--- search navigator.serial ---'
rg -n "navigator\.serial|Chrome, Edge, or Firefox|Firefox" js/views/device.js js -g'*.js' -g'*.md' -g'*.ts'

Repository: ApolloAutomation/installer

Length of output: 3821


Update the fallback browser copy js/views/device.js:132-137 — In the navigator.serial fallback, don’t list Firefox as a direct USB-flashing browser. Keep Firefox tied to the manual download path; the USB install flow here is Chrome/Edge-only.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@js/views/device.js` around lines 132 - 137, Update the navigator.serial
fallback copy in the relevant device view markup to identify Chrome and Edge as
the only browsers supporting direct USB flashing; mention Firefox only in the
manual download/install path, including the classic installer wording as
appropriate.

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