Skip to content

Add Enhanced Diff and Strict Diff along with cleaner line numbers - #4

Merged
LucianCrainic merged 15 commits into
developfrom
feat/diff-star
Oct 6, 2025
Merged

LucianCrainic merged 15 commits into
developfrom
feat/diff-star

Conversation

@LucianCrainic

Copy link
Copy Markdown
Owner

This pull request introduces several UI and functional improvements to the JSONBro VS Code extension, focusing on better JSON formatting, enhanced diffing capabilities, improved line number support, and user notifications for auto-corrected JSON. The changes include new UI elements (such as a strict diff toggle and warning notifications), significant CSS refactoring for better user experience, and improvements to test coverage for the JSON formatter.

UI and Feature Enhancements:

  • Added a "Strict Diff" toggle button in diff mode, allowing users to compare only keys present in the left JSON, ignoring extra keys in the right JSON. (src/webview-content.ts, src/webview/controller.ts) [1] [2] [3] [4]
  • Introduced a warning notification banner that appears when the input JSON is auto-corrected due to structural issues, including a dismiss button for user control. (src/webview-content.ts, src/webview/controller.ts) [1] [2] [3] [4] [5] [6]

Styling and Layout Improvements:

  • Refactored and extended CSS for new UI elements (toggle button, warning notification), improved foldable content styling, and enhanced line number display with a new layout separating line numbers and JSON content. (src/webview-content.ts) [1] [2] [3]

Testing and Code Quality:

  • Updated and expanded tests for the JSON formatter to reflect new rendering structure, including checks for line number containers, foldable content, and complex nested JSON structures. (src/webview/__tests__/formatter.test.ts) [1] [2] [3]

Other:

  • Bumped extension version to 0.2.7 in package.json. (package.json)

These changes collectively improve user feedback, make JSON comparison more flexible, and enhance the overall usability and robustness of the extension.

@LucianCrainic
LucianCrainic merged commit c6a0c4c into develop Oct 6, 2025
@LucianCrainic
LucianCrainic deleted the feat/diff-star branch October 6, 2025 20:12
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