Skip to content

Git versioning#2

Merged
oksbwn merged 5 commits into
masterfrom
git_versioning
Jul 12, 2026
Merged

Git versioning#2
oksbwn merged 5 commits into
masterfrom
git_versioning

Conversation

@oksbwn

@oksbwn oksbwn commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

This PR replaces the legacy, file-based versions system with a native Git-backed version control system, integrating branches, tagging, stash actions, and remote synchronization.

Key Changes

  1. Backend Core & IPC Layer
    Git Service & IPC Handlers: Implemented gitService.cjs and gitIpc.cjs using simple-git to support logs, status updates, branches, tags, stashes, and remote pushes/pulls. Added automatic migrations from legacy history files on startup.
    App Menu Refactor: Replaced "File > Versions" with a dedicated "Version Control" top-level menu featuring quick shortcuts for branches, tags, stashes, and remote syncing.
  2. Frontend UI Components
    Git Status Bar Button: Replaced bottom bar indicators with a unified Git Status Bar button reflecting working tree cleanliness and pending commit count status.
    Git Timeline & Commit Dialog: Added a compact, horizontal timeline row layout with word-level difference highlighting. Staging and commit message limits are enforced within GitCommitDialog.jsx.
    Note-Specific History Popover: Fixed directory filtering to show historical commits relative to the active note. The layout width was expanded to 900px for high readability.
  3. Comparison Tab & Markdown Preview
    Default Visual Preview Mode: Rewrote GitDiffViewer.jsx to render note diff changes with the native Markdown engine. Local images and Excalidraw diagrams resolve correctly via the active repository root path.
    Balanced Line Height Breaks: Blank paragraph rows scale down to a clean 12px spacer height, making paragraph breaks look natural.
    Tag Creation Modal: Implemented a React OverlayDialog Tag Modal to replace the broken Electron window.prompt dialog. Removed the unnecessary "Branch" button from note-specific history popups.
  4. Onboarding & Documentation
    Onboarding Flow Updates: Added a balanced, 6-block feature grid highlights card introducing Git Version Control, Markdown & Tables, Excalidraw & Mermaid, P2P Note Sync, Workspace AI, and Tasks & Exports.
    Documentation Overhaul: Updated the main README.md and repository help files (user-guide.md, feature-reference.md, top-tasks.md) to reflect the new Git timeline and menu actions.

@oksbwn oksbwn self-assigned this Jul 12, 2026
@oksbwn
oksbwn merged commit 3664b29 into master Jul 12, 2026
1 check failed
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