Skip to content

feat(review-tutor): add the Structure connections list - #71

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/review-tutor-structure-list
Aug 25, 2026
Merged

feat(review-tutor): add the Structure connections list#71
ElbertePlinio merged 1 commit into
mainfrom
feat/review-tutor-structure-list

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Refs #62 — PR 2 of 4 (accessible Connections list). Stacked on #67; part of the batched Review Tutor chain.

What changed

  • Diff | Structure | Learning log peer view over the same input snapshot. Structure fetches GET /api/structure once per input (refetches after a source switch), shows the comparison line (index → working tree etc.), one partial-analysis notice with a details reasons list when the snapshot is partial or truncated, then file groups (path, status chip, ±counts, rename provenance, or the exact 'no import data' reason) with connection rows (target, kind chip, type chip, status chip). Selecting a row expands its evidence lines; Open in Diff switches to the Diff view, scrolls the exact line into view, and moves focus to it.
  • List mode is the keyboard, screen-reader, mobile, and high-zoom baseline (graph is PR 3). Tablist roving tabindex, sections with aria-labelledby, rows as buttons with aria-expanded/aria-controls, status in text not color alone, ≥44px targets on touch, no new colors or motion.
  • Design accepted by the design lead against branding-visual/DESIGN-PRINCIPLES.md: status left rules were removed as duplicates of the chips, and empty connection lists / a mobile sticky-offset band were eliminated (nothing empty on screen).

Tested

  • Page tests for tab semantics, fetch-once-per-input and refetch, loading/error/retry, partial notice, group statuses incl. renamed/removed/unanalyzed, row expand/collapse and single selection, type chip, Open in Diff view switch + focus, zero-connection copy, no horizontal overflow at 360px, no innerHTML. Rendered proof at 1440 / 860 / 390 / 360@4x for loaded, selected+expanded, partial notice, zero connections, error+retry, and post-jump Diff states.
  • bun run check: 474 passed | 25 skipped, 81.51% statements.

Not tested

  • Real large-PR structure at scale (fixture-driven renders only); Dart/Rust and one-hop neighbours (PR 3/4).

Local review: serious user-facing class — three independent reviewers (correctness, tests/conformance/KISS, UI/accessibility with rendered inspection). Human gate: merge only on Elberte's authorization.

@ElbertePlinio
ElbertePlinio force-pushed the feat/review-tutor-structure-list branch 2 times, most recently from ad8f897 to 616dd86 Compare August 24, 2026 22:18
@ElbertePlinio

Copy link
Copy Markdown
Member Author

Ready for human review at 616dd86. Review: 3-reviewer panel + 2 verification rounds, final clean (no P0–P2). Deferred P3s are listed on #62.

@ElbertePlinio
ElbertePlinio changed the base branch from feat/review-tutor-structure-core to main August 25, 2026 19:09
@ElbertePlinio
ElbertePlinio force-pushed the feat/review-tutor-structure-list branch from 616dd86 to 060055c Compare August 25, 2026 19:12
Add a Diff | Structure | Learning log peer view that lists changed
files and their evidence-backed connections from the structure
endpoint, discloses partial analysis, and opens the exact diff line
from any evidence row. List mode is the keyboard, screen-reader,
mobile, and high-zoom baseline.
@ElbertePlinio
ElbertePlinio force-pushed the feat/review-tutor-structure-list branch from 060055c to 4bf0db5 Compare August 25, 2026 19:14
@ElbertePlinio
ElbertePlinio merged commit 2cba90a into main Aug 25, 2026
4 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