Skip to content

feat: HTML diagnostic report and --open-report flag#60

Open
drugoi wants to merge 1 commit intomillionco:mainfrom
drugoi:feature/html-report-and-open-report
Open

feat: HTML diagnostic report and --open-report flag#60
drugoi wants to merge 1 commit intomillionco:mainfrom
drugoi:feature/html-report-and-open-report

Conversation

@drugoi
Copy link

@drugoi drugoi commented Feb 20, 2026

Hi there, great tool. It would be very useful to be able to share a static HTML report with colleagues after running the tool (or alternatively enhance the /share endpoint to include all identified issues).

Summary

  • HTML report: When issues are found, a self-contained report.html is written next to diagnostics.json in the output directory. The report shows score (when available), summary counts, and diagnostics grouped by rule.
  • --open-report: New CLI flag to open the HTML report in the default browser after the scan.
  • Docs: README, packages/website/public/llms.txt, and react-doctor skill updated with the new options and report behavior.

Changes

  • packages/react-doctor: ReportPayload type, buildReportHtml() in report-template.ts, writeReportDirectory() writes report.html, openFile() util, --open-report flag and openReport in ScanOptions.
  • Tests for report HTML generation and scan logging.
  • README / llms.txt / skill: --open-report, --offline, and description of the HTML report.

How it looks

Screenshot 2026-02-20 at 11 49 57

Made with Cursor

- Add self-contained report.html next to diagnostics.json when issues are found
- Report shows score (when available), summary counts, and diagnostics grouped by rule
- Add --open-report to open the HTML report in the default browser after scan
- Add openFile() util for cross-platform file opening (macOS, Windows, Linux)
- Update README, llms.txt, and react-doctor skill docs with new options and report behavior

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link

vercel bot commented Feb 20, 2026

@drugoi is attempting to deploy a commit to the Million Team on Vercel.

A member of the Team first needs to authorize it.

@drugoi drugoi marked this pull request as ready for review February 20, 2026 06:56
@drugoi
Copy link
Author

drugoi commented Feb 24, 2026

Hey @aidenybai, this would be a nice addition to the project, don’t you think?

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