feat: support folders without git#70
Conversation
Code Review: feat: support folders without gitThanks for this contribution, @MaicolBen! This is a well-structured feature that cleanly extends the existing git isolation model. I've done a thorough review of all 14 changed files. Below are my findings. CI Status
Overall AssessmentThe approach of adding Positive Findings
Issues FoundMedium Severity1. if (!path || !isGit) {
setIgnoredDirs([]);
setSelectedDirs(new Set<string>());
onCleanup(() => {
cancelled = true;
});
return;
}In SolidJS, Low Severity2. The branch icon button (git branch icon + branch name) is wrapped in 3. Missing test plan items The PR test plan has several unchecked items:
It would be good to confirm these before merging. 4. When editing a non-git project, the git isolation selector is hidden, but Informational5. Potential merge conflict with Commit 6. The Security
SolidJS Patterns
SummaryThis is a solid contribution. The approach is clean, backward compatible, and handles the major code paths correctly. The only actionable item is the potentially redundant Recommendation: Approve after confirming the unchecked test plan items and optionally cleaning up the redundant Generated by Claude Code Generated by Claude Code |
Add a 'none' git isolation mode for non-git projects. Non-git folders can now be added as projects and used with AI agents without requiring git initialization. Git-related UI (branch picker, merge, push, diff view, changed files) is hidden for these projects.
The early-return path for non-git projects has no async work to cancel, so the existing cleanup at the end of the effect is sufficient.
4be138b to
2fd044e
Compare
|
Thank you very much! <3 |
Summary
Closes #66.
'none'git isolation mode for projects that aren't git repositoriesisGitRepois detected at project add/relink time and stored on the projectisGitRepo: trueTest plan