fix yarn benchmark
@@ -133,7 +133,7 @@ buildView session model =
(id "top-bar-app" :: Views.Styles.topBar False)
[ SideBar.hamburgerMenu session
, TopBar.concourseLogo
- , breadcrumbs model
+ , breadcrumbs session model
, Login.view session.userState model
]
, Html.div
@@ -185,18 +185,18 @@ currentJob =
>> Maybe.andThen .job
-breadcrumbs : Model -> Html Message
-breadcrumbs model =
+breadcrumbs : Session -> Model -> Html Message
+breadcrumbs session model =
case ( currentJob model, model.page ) of
( Just jobId, _ ) ->
- TopBar.breadcrumbs <|
+ TopBar.breadcrumbs session <|
Routes.Job
{ id = jobId
, page = Nothing
}
( _, JobBuildPage buildId ) ->
- TopBar.breadcrumbs <|
+ TopBar.breadcrumbs session <|
Routes.Build
{ id = buildId
, highlight = model.highlight
@@ -697,6 +697,11 @@ sampleSession =
, turbulenceImgSrc = ""
, userState = UserState.UserStateLoggedOut
, version = ""
+ , route =
+ Routes.OneOffBuild
+ { id = 1
+ , highlight = Routes.HighlightNothing
+ }
}
@@ -712,6 +717,7 @@ sampleOldModel =
{ build =
{ id = 0
, name = "0"
+ , teamName = "team"
, job = Nothing
, status = Concourse.BuildStatus.BuildStatusStarted
, duration =
@@ -857,7 +863,9 @@ stepsModel =
sampleJob : String -> List String -> Concourse.Job
sampleJob name passed =
{ name = name
+ , pipelineId = 1
, pipelineName = "pipeline"
+ , pipelineInstanceVars = Dict.empty
, teamName = "team"
, nextBuild = Nothing
, finishedBuild = Nothing
@@ -980,7 +988,9 @@ jobByName jobs job =
Nothing ->
{ name = ""
+ , pipelineId = 0
, pipelineName = ""
+ , pipelineInstanceVars = Dict.empty
, teamName = ""
, nextBuild = Nothing
, finishedBuild = Nothing
