Skip to content

Structure tab: wireframe of the rendered page (plan 05) - #61

Merged
woutervanwijk merged 9 commits into
mainfrom
claude/plan-05-structure
Nov 18, 2026
Merged

woutervanwijk merged 9 commits into
mainfrom
claude/plan-05-structure

Conversation

@woutervanwijk

Copy link
Copy Markdown
Owner

Plan 05 of the explorer audit (docs/superpowers/plans/2026-11-15-05-structure-view.md).

What's new

New Structure tab (Code group, before DOM Tree; web pages in the browser only):

  • A wireframe of the rendered page: landmarks, headings, frames, media and large blocks, coloured by owner (page, own frame, third party, advertising, social). Fixed/sticky elements are drawn last with a dashed outline. Tap a block for details.
  • Heading outline and notes (missing main landmark, h1 count, third-party share, capped scans).
  • Measured once the page settles and again whenever the tab is opened, with a "Measured at W×H" caption; tall pages are scaled to at most 6000 px.
  • Export: analysis/structure.json (headings, ids, first classes and sources only).

Testing

  • flutter analyze --no-pub clean; flutter test 1490 passed, 1 skipped.
  • Real macOS app on example.com, github.com, nos.nl and Wikipedia: layout present, taps hit the right block, no stale layout, no exceptions, no pending flash when switching tabs.

🤖 Generated with Claude Code

woutervanwijk and others added 9 commits November 17, 2026 22:33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…scan cap; payload rejects unknown sizes

A sized page with no qualifying blocks is Present, not 'no layout'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, empty and capped pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…; says it waits for the page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wn layout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	lib/models/inspection/page_inspection.dart
#	lib/services/html_service.dart
#	lib/services/inspection_store.dart
#	test/services/inspection_store_test.dart
@woutervanwijk
woutervanwijk merged commit b63c5be into main Nov 18, 2026
1 check 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