Skip to content

Post-review fixes: username bug, CI, platform marker, README polish#1

Merged
vpadman1 merged 1 commit intomainfrom
vignesh/post-review-fixes
Apr 16, 2026
Merged

Post-review fixes: username bug, CI, platform marker, README polish#1
vpadman1 merged 1 commit intomainfrom
vignesh/post-review-fixes

Conversation

@vpadman1
Copy link
Copy Markdown
Owner

Summary

Addresses feedback from the initial code review on main.

Bug fix

  • Username default was dead codemain.py passed username or "admin" to the device loader, which short-circuited the YAML default_username setting. Now passes username through as None when unset, letting the loader apply the YAML default correctly.

CI

  • Added .github/workflows/ci.yml — runs ruff check and pytest -v on push and PR, matrix over Python 3.12 and 3.13, macOS runner (CoreWLAN is Mac-only).

Packaging

  • Marked pyobjc-framework-corewlan as sys_platform == 'darwin' so the package installs cleanly on Linux/Windows for contributors who can't run the live scanner. The scanner already returns [] when CoreWLAN isn't importable.

Tests & docs

  • Added test_tiebreaker_prefers_current_channel and a comment in recommend_channel documenting that the tiebreaker intentionally keeps clients on their current channel when congestion is equal.
  • Added a screenshot placeholder at the top of the README (docs/screenshot.png — to be captured separately).
  • Added a "Security Notes" section in the README calling out that router communication is plain HTTP.

Test plan

  • uv run pytest -v — 28/28 passing locally
  • uvx ruff check . — clean
  • CI green on the PR
  • Smoke-run the dashboard against the live router to confirm no regressions

…polish

- Fix username default bug: main.py no longer short-circuits the YAML default_username
- Add GitHub Actions CI running ruff + pytest on Python 3.12/3.13
- Mark pyobjc-framework-corewlan as macOS-only in pyproject.toml
- Add test and comment documenting recommend_channel tiebreaker policy
- Add screenshot placeholder and Security Notes section to README
@vpadman1 vpadman1 merged commit 9ab4663 into main Apr 16, 2026
2 checks passed
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