Skip to content

fix: say why New download has no networks to pick - #168

Open
anzydev wants to merge 1 commit into
anmolkapil:mainfrom
anzydev:fix/new-download-no-network-notice
Open

anzydev wants to merge 1 commit into
anmolkapil:mainfrom
anzydev:fix/new-download-no-network-notice

Conversation

@anzydev

@anzydev anzydev commented Oct 21, 2026

Copy link
Copy Markdown

With no interfaces, the New download dialog renders an empty Networks row and a disabled Download button, with no reason and no action.

The main screen already says "No networks connected" and offers Scan again; the dialog was the one place that ignored interfacesStatus / interfacesError.

This shows the scan state in the Networks group:

  • loading: "Looking for networks…"
  • no interfaces: the same Wi-Fi / Ethernet / USB-tethering advice as the empty screen, with Scan again
  • scan failed: the translated reason, with Scan again

Test: e2e/ui.spec.ts under the existing no networks describe opens the dialog with PLEXO_E2E_INTERFACES='' and asserts the message, the Scan again button, and the disabled Download button. It fails on main.

Checks:

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm run test:e2e:smoke (119 passed)

With no interfaces, the Networks row rendered nothing and the Download button was disabled with no explanation. Show the scan state, the reason, and a Scan again action.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 19:25

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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