feat(diffs): changed-files summary nav for multi-file patch diffs (#100753)

* feat(diffs): add changed-files summary nav for multi-file patch diffs

* docs: regenerate docs map for diffs multi-file navigation section

* fix(diffs): respect reduced motion in summary navigation
This commit is contained in:
Peter Steinberger
2026-07-06 16:55:56 +01:00
committed by GitHub
parent 8547682dd6
commit dc600d4a77
7 changed files with 362 additions and 13 deletions

View File

@@ -221,6 +221,10 @@ All successful results include `changed`: identical before/after input returns `
The viewer shows rows like `N unmodified lines`. Expand controls only appear when the rendered diff has expandable context data (typical for before/after input). Many unified patches omit context bodies in their hunks, so the row can appear without an expand control -- expected, not a bug. `expandUnchanged` only applies when expandable context exists.
### Multi-file navigation
Patches that touch more than one file start with a changed-files summary card: total `+N` / `-N` counts, per-file counts, added/deleted/renamed badges, and anchor links that jump to each file. Rendered PNG/PDF files keep the per-file header counts but drop the interactive view toggles, since those are dead controls in a static file.
## Plugin defaults
Set plugin-wide defaults in `~/.openclaw/openclaw.json`: