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:
@@ -6,7 +6,7 @@ use std::collections::BTreeSet;
|
||||
use std::time::Duration;
|
||||
|
||||
mod creation;
|
||||
pub use creation::create_integration_review_request;
|
||||
pub use creation::{create_integration_review_request, list_integration_repository_branches};
|
||||
|
||||
const PAGE_SIZE: usize = 100;
|
||||
const REVIEW_REQUEST_TIMEOUT: Duration = Duration::from_secs(35);
|
||||
|
||||
Reference in New Issue
Block a user