Add commit-level actions, graph filtering, demo mode, and headless screenshot capture#11
Closed
hoangsvit wants to merge 8 commits into
Closed
Add commit-level actions, graph filtering, demo mode, and headless screenshot capture#11hoangsvit wants to merge 8 commits into
hoangsvit wants to merge 8 commits into
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
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.
Motivation
Description
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 insrc-tauri/src/lib.rs.src/services/gitService.tsto expose the new commands and implemented a demo-mode fallback so the app can run in a browser without Tauri by returning sample data; detection is via__TAURI_INTERNALS__.src/components/history/CommitDetails.tsxto add buttons for Branch/Tag/Cherry-pick/Revert/Checkout and Reset actions that invoke the new service methods, with simple prompts/confirmation flows.src/components/graph/GitGraph.tsxto rebuild row logic, add search/author/ref filters, adjust spacing/colors, and improve row rendering and selection/dim behavior.src/App.tsxwhen not running under Tauri to make browser demo mode more convenient.src/demo/currentRepoDemo.tsfor demo-mode history/status/repo data.scripts/capture-screenshot.mjsand updated.github/workflows/ci.ymlto run the Vite preview and capture a screenshot via headless Chrome, including timeouts and artifact upload, and updated the workflow summary text.Testing
.github/workflows/ci.yml) which performs the frontend build, starts a preview, and runs the headless Chrome screenshot capture; those steps completed in the pipeline run.npm run build) and compiled Rust/Tauri bindings (cargo build) during CI and local verification to ensure new Tauri commands and TypeScript bindings compile.scripts/capture-screenshot.mjsscript.Codex Task