feat(create-review): load repository branches and suggest local branch

Add a backend command to enumerate a repository's branches and default
branch for configured integrations, and expose it to the UI. The create
review dialog now fetches branches, shows loading and error states, and
uses searchable SelectMenu controls for repositories and branches. If a
local repository path is available the dialog will try to match remotes
and preselect a local branch that exists on the remote to streamline
review creation.

- Add integration branch listing command and wire it into the dialog
- Replace plain selects with searchable SelectMenu and improved UX
- Attempt to detect and suggest a matching local source branch when possible
This commit is contained in:
2026-09-08 21:41:29 +02:00
parent f7f85d387d
commit ee35169feb
8 changed files with 174 additions and 22 deletions
+2 -1
View File
@@ -34,7 +34,7 @@ use git::{
unstage_files, untrack_paths, update_remote,
};
use integrations::{
create_integration_review_request, add_integration_review_comment, get_integration_review_details, list_integration_repositories, list_integration_review_requests, open_in_browser,
list_integration_repository_branches, create_integration_review_request, add_integration_review_comment, get_integration_review_details, list_integration_repositories, list_integration_review_requests, open_in_browser,
run_integration_review_action,
};
use std::path::{Path, PathBuf};
@@ -437,6 +437,7 @@ async fn main() {
cred_load,
cred_save,
cred_delete,
list_integration_repository_branches,
create_integration_review_request,
list_integration_repositories,
list_integration_review_requests,