Skip to content

FlightCheck: auto-open HTML report in browser after run#137

Open
amilandi wants to merge 2 commits into
mainfrom
amilandin/flightcheck-open-report
Open

FlightCheck: auto-open HTML report in browser after run#137
amilandi wants to merge 2 commits into
mainfrom
amilandin/flightcheck-open-report

Conversation

@amilandi

@amilandi amilandi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

ADO task https://o365exchange.visualstudio.com/O365%20Core/_workitems/edit/7474680

Two small UX fixes for the FlightCheck experience:

  1. Auto-open HTML report. FlightCheck now opens report.html in the default browser after completing checks. Gives users immediate visual access to the full report with expandable sections, color-coded results, and remediation steps.
  2. Fix environment type column showing Unknown. The BAP Admin API returns the environment type under environmentSku (e.g. Production, Sandbox, Developer), not environmentType. list_environments.py now reads environmentSku first and falls back to environmentType for forward-compatibility. Was originally pushed to PR FlightCheck installer: fetch agent solution before running checks #134 but landed on its branch after the PR was merged — porting it here so it actually reaches main.

Changes

  • scripts/flightcheck/cli.py: Added webbrowser.open() call after save_results(); new --no-open CLI flag to suppress (for CI / headless use).
  • scripts/list_environments.py: Read environment type from environmentSku with environmentType fallback.

Behavior

  • After FlightCheck finishes and saves report.html, it opens the file in the default browser.
  • Works cross-platform via Python's webbrowser module (macOS, Windows, Linux).
  • Pass --no-open to skip: python scripts/flightcheck/cli.py --no-open.
  • Environment listing (/setup, FlightCheck-only installer) shows real env types instead of Unknown.

Opens report.html in the default browser after FlightCheck completes.
Use --no-open to suppress (e.g., in CI or headless environments).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@amilandi amilandi force-pushed the amilandin/flightcheck-open-report branch from 33f9862 to 4051930 Compare June 10, 2026 00:16
The BAP Admin API returns the environment type under 'environmentSku'
(e.g. Production, Sandbox, Developer) not 'environmentType'. Fall back
to environmentType for forward-compat.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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