Skip to content

Fix compare highlight and diff engine#94

Open
andypalmi wants to merge 1 commit intomainfrom
fix/compare-highlight-and-diff
Open

Fix compare highlight and diff engine#94
andypalmi wants to merge 1 commit intomainfrom
fix/compare-highlight-and-diff

Conversation

@andypalmi
Copy link
Copy Markdown

Summary

  • Add persistentHighlight option: highlighted nodes/tabs stay highlighted until the next highlight() or clearHighlight() call instead of auto-clearing after 10s
  • Extract clearHighlight() as a standalone function and expose it on the comparison result object
  • Apply glow to <rect> child for group nodes so label text stays readable
  • Fix getItemDifferences to iterate the union of both objects' keys — properties only in the new version were invisible
  • Fix array comparison to use max length of both arrays
  • Add allChanges option: position-changed nodes also get their full property diff

Closes #91, closes #92, closes #93

Test plan

  • Compare two snapshots with a node that has a newly added property — verify it appears in the change list and highlights on click
  • Compare snapshots containing group nodes — verify glow highlights the group border, not the text
  • Use persistentHighlight: true — verify highlights persist until next navigation
  • Use clearHighlight() — verify all highlights are removed
  • Default behavior (no options) — verify highlights still auto-clear after 10s

- Add persistentHighlight option: when true, highlighted nodes and tabs
  stay highlighted until the next highlight() or clearHighlight() call
  instead of auto-clearing after 10 seconds
- Extract clearHighlight() as a standalone function and expose it on the
  comparison result object for external control
- Apply glow to <rect> child for group nodes so label text stays readable
- Fix getItemDifferences to iterate the union of both objects' keys,
  not just value1 — properties only in the new version were invisible
- Fix array comparison to use max length of both arrays
- Add allChanges option: when true, position-changed nodes also get their
  full property diff instead of being short-circuited

Closes #91, closes #92, closes #93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant