Skip to content

feat(cli): show rendered UI check progress - #43

Merged
TheOrcDev merged 2 commits into
mainfrom
codex/check-ui-progress
Aug 11, 2026
Merged

TheOrcDev merged 2 commits into
mainfrom
codex/check-ui-progress

Conversation

@TheOrcDev

@TheOrcDev TheOrcDev commented Aug 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • reuse Shadscan's existing terminal progress renderer for --check-ui
  • show Resolving UI target, Checking mobile and desktop layouts, and Preparing UI report on interactive human stderr
  • keep JSON, CI, non-TTY, TERM=dumb, and --no-interactive runs quiet
  • document the progress lifecycle and preserve identical behavior for the hidden --check-overflow alias

Verification

  • pnpm check
  • pnpm docs:check
  • pnpm --filter ./packages/cli typecheck
  • pnpm cli:test (770 tests)
  • focused Playwright suite (18 tests)
  • pnpm audit:self (100/100 A)
  • pnpm build
  • pnpm cli:smoke
  • final Shadscan audit (100/100 A, complete coverage, zero warnings)

Standards, Spec, and adversarial reviews completed without actionable findings.

Summary by CodeRabbit

  • New Features

    • Added terminal progress updates for interactive UI checks, covering target resolution, browser checks, and report preparation.
    • Progress appears only in eligible interactive human terminal sessions and is written to stderr.
    • --no-interactive now suppresses both progress updates and follow-up prompts.
  • Documentation

    • Clarified progress, output, and suppression behavior across CLI documentation.
    • Documented UI-check stages and roast output behavior for CI and JSON modes.
  • Tests

    • Expanded coverage for progress timing, formatting, failure handling, output modes, and aliases.

@vercel

vercel Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shadscan Ready Ready Preview Aug 11, 2026 11:13am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7f09f558-74f5-4eda-952e-7e56624a90d7

📥 Commits

Reviewing files that changed from the base of the PR and between a6286a8 and 167b694.

📒 Files selected for processing (6)
  • CHANGELOG.md
  • README.md
  • app/docs/page.tsx
  • docs/cli-contract.md
  • packages/cli/README.md
  • test/e2e/docs-page.spec.ts
🚧 Files skipped from review as they are similar to previous changes (6)
  • CHANGELOG.md
  • app/docs/page.tsx
  • README.md
  • docs/cli-contract.md
  • packages/cli/README.md
  • test/e2e/docs-page.spec.ts

📝 Walkthrough

Walkthrough

The CLI now reports three rendered UI-check phases for eligible interactive human runs. Progress uses stderr, remains absent in suppressed modes, and completes before final output. Tests cover timing, routing, failures, aliases, and documentation.

Changes

Interactive UI-check progress

Layer / File(s) Summary
UI-check progress flow
packages/cli/src/cli.ts
runUiCheckAction reports target resolution, browser checks, and report preparation through interactive scan progress. The CLI forwards the interactive setting and updates --no-interactive help text.
Progress behavior validation
packages/cli/test/cli.test.ts
Tests cover phase timing, stderr routing, completion, failures, suppression modes, aliases, help text, and output formats.
Progress contract documentation
README.md, app/docs/page.tsx, docs/cli-contract.md, packages/cli/README.md, CHANGELOG.md, test/e2e/docs-page.spec.ts
Documentation and E2E assertions describe UI-check phases, suppression conditions, menu behavior, and the unreleased change.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant runUiCheckAction
  participant scanProgress
  participant browserChecks
  CLI->>runUiCheckAction: pass interactive setting
  runUiCheckAction->>scanProgress: start target resolution
  runUiCheckAction->>browserChecks: resolve target and run checks
  browserChecks-->>runUiCheckAction: return results or failure
  runUiCheckAction->>scanProgress: report browser and report-preparation phases
  runUiCheckAction-->>CLI: finalize progress and write output
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding rendered UI check progress to the CLI.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/check-ui-progress

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.

@TheOrcDev
TheOrcDev marked this pull request as ready for review August 11, 2026 11:07

@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 `@docs/cli-contract.md`:
- Around line 80-86: Document TERM=dumb as a progress-suppression condition
consistently: update docs/cli-contract.md (80-86), CHANGELOG.md (11-14),
README.md (74-77), app/docs/page.tsx (329-333), and packages/cli/README.md
(76-79) in their existing quiet-output or rendered-progress descriptions; update
test/e2e/docs-page.spec.ts (190-195) to assert the documentation includes
TERM=dumb.
🪄 Autofix

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dcdcb4ab-5694-4d3c-aa34-0b89b5150bd9

📥 Commits

Reviewing files that changed from the base of the PR and between adaaab7 and a6286a8.

📒 Files selected for processing (8)
  • CHANGELOG.md
  • README.md
  • app/docs/page.tsx
  • docs/cli-contract.md
  • packages/cli/README.md
  • packages/cli/src/cli.ts
  • packages/cli/test/cli.test.ts
  • test/e2e/docs-page.spec.ts

Comment thread docs/cli-contract.md Resolved
@TheOrcDev
TheOrcDev merged commit 20bcf9b into main Aug 11, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 167b6943 Deployed Aug 11, 2026 by vercel[bot]
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