Skip to content

feat(report): add synchronized Markdown report view - #2937

Merged
quanru merged 5 commits into
mainfrom
feat/report-markdown-sidebar
Aug 7, 2026
Merged

feat(report): add synchronized Markdown report view#2937
quanru merged 5 commits into
mainfrom
feat/report-markdown-sidebar

Conversation

@quanruzhuoxiu

Copy link
Copy Markdown
Collaborator

Summary

  • move the Human/Markdown view switch into the report sidebar and align the sidebar/header styling with the supplied design
  • render report Markdown beside a screenshot gallery with bidirectional, anchor-based scroll synchronization
  • keep the screenshot pane pinned before the first shared image anchor and suppress programmatic scroll feedback
  • use the supplied video-camera and camera icons for the Record and Screenshots pane titles
  • preserve keyboard accessibility for the collapsible Record header and add regression coverage for scroll mapping boundaries

Validation

  • pnpm --dir apps/report test (16 files, 87 tests)
  • MIDSCENE_SKIP_REPORT_TEMPLATE_INJECTION=1 pnpm exec nx build @midscene/core --skip-nx-cache
  • pnpm --dir apps/report build
  • pnpm run lint
  • generated and exercised a real report with 27 screenshots in both scroll directions

The convertPlanToExecutable and createTypeQueryTask assertions matched the
modelRuntime object with strict equality via toHaveBeenCalledWith. In the
full CI suite the modelRuntime object carries extra CI-injected fields (e.g.
an execution id), which made the exact match fail even though the core
arguments were correct. Match on the core config/adapter shape with
expect.objectContaining so the assertions stay meaningful while tolerating
those extra fields.
@quanru
quanru merged commit 5e04fe0 into main Aug 7, 2026
16 checks passed
@quanru
quanru deleted the feat/report-markdown-sidebar branch August 7, 2026 02:49
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.

3 participants