desktop (fix): init git if project has no git

Merged
AV
1y ago
+384-44

Description

Related Issues

Type of Change

  • [ x] Bug fix
  • [ x] New feature
  • Documentation
  • [ x] Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

  • New Features

    • Initialize Git repositories from the app via a new dialog when opening non-repo folders.
    • New "init and open" flow: initialize a repo, determine its default branch, then open/create the project and workspace.
  • Bug Fixes / Improvements

    • Clearer feedback when a folder needs Git initialization or when opening fails.
    • Project records now update default branch and last-opened timestamps automatically.
    • Worktree creation is remote-aware and falls back gracefully when no origin is present.

โœ๏ธ Tip: You can customize this high-level summary in your review settings.