Repository navigation
feat: before/after review step before export - #32
Merged
Merged
Conversation
Aligned row diff with hunks, changed-line sets, and a line-to-layer lookup. Falls back to a block replace past an edit-distance cap so very large changes stay fast.
Every export now opens a full-screen review of the file as first loaded against what would be exported, with aligned G-code text, 3D views with highlighted changed moves, linked layers, and next/previous change navigation. Continue exports exactly the lines that were reviewed. The viewer can take its own parser, and the line diff anchors on unique lines so recovery exports stay readable.
loadFile refuses while the review is open, and drag/drop is cancelled in the review so the browser cannot navigate away to a dropped file.
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GcodeViewer3Dcan take its own parser ({ parser, review }) and highlight moves by line; default viewer behavior is unchanged.src/line-diff.js: aligned line diff with hunks. It anchors on lines unique to both sides so recovery exports stay readable.Notes
loadFile, so "before" always means the file as first loaded, including after Edit-mode changes.Test plan
npm testpasses (377 tests, including new line-diff tests for inserts, edits, edges, large files, recovery-shaped and over-cap diffs)