feat: improve repository history navigation
This commit is contained in:
@@ -45,6 +45,17 @@ pub struct RepositoryData {
|
||||
pub language: String,
|
||||
pub open_issues: i64,
|
||||
pub updated: String,
|
||||
pub default_branch: String,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HistoryCommit {
|
||||
pub commit: models::Commit,
|
||||
pub top_lanes: Vec<usize>,
|
||||
pub bottom_lanes: Vec<usize>,
|
||||
pub node_lane: Option<usize>,
|
||||
pub connections: Vec<usize>,
|
||||
pub refs: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
@@ -59,7 +70,9 @@ pub struct State {
|
||||
pub repositories: Vec<RepositoryData>,
|
||||
pub issues: Vec<models::Issue>,
|
||||
pub pulls: Vec<models::Issue>,
|
||||
pub commits: Vec<models::Commit>,
|
||||
pub branches: Vec<String>,
|
||||
pub active_branch: Option<String>,
|
||||
pub commits: Vec<HistoryCommit>,
|
||||
}
|
||||
|
||||
pub struct HomeData {
|
||||
@@ -75,6 +88,7 @@ pub struct IssueDetails {
|
||||
pub struct PullDetails {
|
||||
pub pull: models::PullRequest,
|
||||
pub comments: Vec<models::Comment>,
|
||||
pub files: Vec<models::ChangedFile>,
|
||||
}
|
||||
|
||||
pub fn open_status() -> String {
|
||||
|
||||
Reference in New Issue
Block a user