Skip to content

Add commit actions & interactive commit graph, demo-mode frontend, and CI matrix/artifact changes#12

Closed
hoangsvit wants to merge 2 commits into
mainfrom
codex/them-tinh-nang-nhu-gitraken-5n8dwv
Closed

Add commit actions & interactive commit graph, demo-mode frontend, and CI matrix/artifact changes#12
hoangsvit wants to merge 2 commits into
mainfrom
codex/them-tinh-nang-nhu-gitraken-5n8dwv

Conversation

@hoangsvit

Copy link
Copy Markdown
Member

Motivation

  • Expose more commit-level Git operations to the UI and provide an improved, filterable commit graph for easier repository navigation.
  • Support running the web frontend in demo mode when not in the Tauri runtime so the app can be previewed in the browser.
  • Simplify and modernize the GitHub Actions workflow to produce platform artifacts (Linux/Windows/macOS) and remove fragile headless screenshot steps.

Description

  • Backend: added several new Tauri commands in src-tauri/src/commands/history.rs (checkout_commit, create_branch_from_commit, create_tag_from_commit, cherry_pick_commit, revert_commit, reset_to_commit) and registered them in src-tauri/src/lib.rs so the frontend can invoke these operations.
  • Frontend UI: refactored the commit graph component (src/components/graph/GitGraph.tsx) to compute lanes more compactly, add search/author/ref filters, show counts and clear actions, and dim non-matching rows; improved row rendering and styling.
  • Commit details: rewrote src/components/history/CommitDetails.tsx to provide actionable buttons (Branch, Tag, Cherry-pick, Revert, Checkout, and Reset modes) and wired them to the new gitService methods.
  • Demo mode: added a demo repository dataset (src/demo/currentRepoDemo.ts) and implemented a demo runtime path in src/services/gitService.ts that auto-switches when not running under Tauri, plus added new RPC wrappers for the newly added backend commands.
  • UX and small fixes: make the web app auto-open the most recent repo in src/App.tsx when not running under Tauri, minor formatting change in src/main.tsx, and updated package lock entries.
  • CI/workflow: replaced the previous single Linux build + screenshot flow with a matrix build job targeting ubuntu-latest, windows-latest, and macos-latest, changed permissions for contents to read, removed the headless screenshot capture and publishing steps, upload platform bundles under artifact names (gitpilot-linux, gitpilot-windows, gitpilot-macos), and added separate comment-artifacts and summarize-artifacts jobs to post artifact download instructions and a summary.

Testing

  • No new automated unit tests were added to the repository.
  • Verified frontend build locally by running npm run build which completed successfully and allowed manual verification of the UI in demo mode.
  • The CI workflow was reworked to build platform bundles and upload artifacts; no automated CI test suite changes were introduced in this PR.

Codex Task

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@hoangsvit hoangsvit closed this Jun 27, 2026
@hoangsvit hoangsvit deleted the codex/them-tinh-nang-nhu-gitraken-5n8dwv branch June 27, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant