Skip to content

refactor(tooling): group mobile web preview and evidence tools - #31976

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-mobile-preview
Oct 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-mobile-preview

Conversation

@nwparker

@nwparker nwparker commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Colocate the mobile web preview harness, probe routes, artifact and evidence tools, and HTML/media render suites in config/scripts/mobile-web-app/preview/. Update 22 callers to import the concrete owners and adjust the two import.meta.url roots so existing fixture and repository paths resolve to the same locations.

The 15 original moves preserve generated fixture source and test discovery. No barrels, forwarding files, or generated-output edits are introduced.

Validation: the full mobile web runner passed all 477 tests across 49 files with Chromium and WebKit, with identical test names and outcomes on the pristine base and committed change and no skips. Mobile bundle build/verification, changed-code quality, formatting, import boundaries, max-lines ratchet, and whitespace checks passed. Both independent exact-head audits passed; required CI remains a merge gate.

Related open work: exact live-input changes in #31477 and #28294 compose with these path edits. #22840 has existing terminal-interface and test conflicts with newer main; this refactor preserves that newer code, and its eventual rebase must port the feature changes into the relocated probe owner. #29644 adds a future markdown-table render suite; that caller will need its harness import retargeted when rebased onto this change.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90206529-2247-43c5-a998-818349162161
📥 Commits

Reviewing files that changed from the base of the PR and between 54acda1 and ce4551c.

📒 Files selected for processing: 37
  • config/scripts/mobile-web-app-agent-history-render.test.mjs
  • config/scripts/mobile-web-app-browser-pane-render.test.mjs
  • config/scripts/mobile-web-app-clipboard-image-resize-render.test.mjs
  • config/scripts/mobile-web-app-drawer-render.test.mjs
  • config/scripts/mobile-web-app-files-render.test.mjs
  • config/scripts/mobile-web-app-handoff-grants-render.test.mjs
  • config/scripts/mobile-web-app-held-press-render.test.mjs
  • config/scripts/mobile-web-app-mermaid-render.test.mjs
  • config/scripts/mobile-web-app-native-chat-visual-links.test.mjs
  • config/scripts/mobile-web-app-native-parity-render.test.mjs
  • config/scripts/mobile-web-app-render.test.mjs
  • config/scripts/mobile-web-app-rich-markdown-render.test.mjs
  • config/scripts/mobile-web-app-safe-area-render.test.mjs
  • config/scripts/mobile-web-app-session-render.test.mjs
  • config/scripts/mobile-web-app-session-terminal-init.test.mjs
  • config/scripts/mobile-web-app-source-control-render.test.mjs
  • config/scripts/mobile-web-app-stack-transition-render.test.mjs
  • config/scripts/mobile-web-app-tasks-render.test.mjs
  • config/scripts/mobile-web-app-terminal-live-input-render.test.mjs
  • config/scripts/mobile-web-app-terminal-render-fixture.mjs
  • config/scripts/mobile-web-app-terminal-render.test.mjs
  • config/scripts/mobile-web-app-working-spinner-render.test.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-held-press-probe-routes.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-html-preview-render.test.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-live-input-probe-route.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-media-preview-render.test.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-arm-driver.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-artifact-fixture.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-asset-server.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-csp-reports.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-frame-diagnosis.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-frame-readiness.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-frame-readings.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-image-evidence.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-preview-request-log.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-render-harness.mjs
  • config/scripts/mobile-web-app/preview/mobile-web-app-terminal-probe-route.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

📝 Walkthrough

Render tests and fixtures now import the harness and probe modules from the mobile-web-app/preview directory. Preview tests resolve bundle modules from the parent directory, and the harness resolves the manifest and repository root from its updated location. The summaries report no changes to test behavior.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to ce455

No actionable path or fixture-resolution risk is established; the change is mergeable.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description clearly explains the refactor and reports detailed validation results, but it does not follow the required template. It omits the required section headings, an explicit Linked Issue en… Complete the repository template. Add the required headings and content, including an actual linked issue in Fixes #... format, Visual Proof with N/A and a reason if applicable, testing checklist results, AI Disclosure as applicable, …
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly describes the main change: grouping mobile web preview and evidence tooling. It is concise and specific.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 25 files.

Full details: Description check

Explanation

The description clearly explains the refactor and reports detailed validation results, but it does not follow the required template. It omits the required section headings, an explicit Linked Issue entry, Visual Proof or N/A justification, testing checkboxes, AI Disclosure, review and boundary sections, notes, and the checklist.

Resolution

Complete the repository template. Add the required headings and content, including an actual linked issue in Fixes #... format, Visual Proof with N/A and a reason if applicable, testing checklist results, AI Disclosure as applicable, Review, Agent skill upstream boundary, Notes, and the final Checklist. Preserve the existing change summary and validation details.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@nwparker
nwparker merged commit c30fa62 into main Oct 22, 2026
54 of 56 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