mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 15:26:09 +00:00
feat(gui): migrate clones from the GUI; diagnostics log and tray restart
- Migrate / Migrate all with confirmation, sequential runs, per-repo results - bridge: allow 'add' only for dirs directly under a group - log panics, exit reasons and daemon/tray events to <state>/grove-gui.log - restart the tray service if its D-Bus connection ends Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28e07aab56
commit
ec6a3a04f3
10 files changed
+528
-25
No files matched your search
@@ -113,3 +113,19 @@ kind = "gitea"
|
||||
url = "https://git.example.com"
|
||||
protocol = "ssh" # optional, default "https"
|
||||
```
|
||||
|
||||
## Migrating clones from the GUI
|
||||
|
||||
The "Not migrated clones" card has a Migrate button per row and a Migrate all button. Each asks
|
||||
for confirmation first (the dialog names the backup directory, `<state dir>/backups`), then runs
|
||||
`grove add <path>` one clone at a time off the UI thread, showing "Migrating…", then the migrated
|
||||
path or the refusal message (linked worktrees, submodules, detached HEAD...). The bridge only runs
|
||||
`add` for an existing, non-symlink directory directly under `<root>/<group>/` and passes no flags
|
||||
(so no custom backup directory). Afterwards the status is refreshed; the daemon computes its
|
||||
not-migrated list at start (a daemon-side fix is separate), so finished rows stay on screen with
|
||||
their result until the daemon list changes.
|
||||
|
||||
## Diagnostics log
|
||||
|
||||
`<state dir>/grove-gui.log` (rotated at 256 KiB) records start-up, daemon subscribe/disconnect,
|
||||
tray errors and restarts, panics with a backtrace (from any thread) and why the event loop ended.
|
||||
Reference in new issue
Block a user