@@ -384,7 +384,7 @@ removeWebhook appContext projectRef webhook =
384384pageTitle : PageTitle .PageTitle msg
385385pageTitle =
386386 PageTitle . title " Project Settings"
387- |> PageTitle . withDescription " Manage your project visibility and settings ."
387+ |> PageTitle . withDescription " Manage your project. Collaborators, webhooks, and visibility ."
388388
389389
390390viewLoadingPage : PageLayout msg
@@ -413,8 +413,8 @@ viewLoadingPage =
413413 |> PageLayout . withSubduedBackground
414414
415415
416- viewCollaborators : Model -> Html Msg
417- viewCollaborators model =
416+ viewCollaborators : Session -> Model -> Html Msg
417+ viewCollaborators session model =
418418 let
419419 ( collabs, addButton ) =
420420 case model. collaborators of
@@ -461,15 +461,16 @@ viewCollaborators model =
461461 in
462462 content
463463
464- Failure _ ->
464+ Failure e ->
465465 ( div [ class " collaborators_error" ]
466466 [ StatusBanner . bad " Could not load collaborators"
467+ , ErrorDetails . view session e
467468 ]
468469 , UI . nothing
469470 )
470471
471472 _ ->
472- ( div [ class " collaborators_loading " ]
473+ ( div [ class " list_loading " ]
473474 [ Placeholder . text |> Placeholder . withLength Placeholder . Small |> Placeholder . view
474475 , Placeholder . text |> Placeholder . withLength Placeholder . Medium |> Placeholder . view
475476 , Placeholder . text |> Placeholder . withLength Placeholder . Huge |> Placeholder . view
@@ -479,7 +480,7 @@ viewCollaborators model =
479480 )
480481 in
481482 Card . card
482- [ header [ class " project-settings_card_header" ] [ h2 [] [ text " Project Collaborators" ], addButton ]
483+ [ header [ class " project-settings_card_header" ] [ h2 [] [ text " Collaborators" ], addButton ]
483484 , collabs
484485 ]
485486 |> Card . asContained
@@ -562,12 +563,12 @@ viewWebhooks session model =
562563 ]
563564
564565 Failure e ->
565- [ StatusBanner . bad " An unexpected error occurred, please try again ."
566+ [ StatusBanner . bad " Could not load webhooks ."
566567 , ErrorDetails . view session e
567568 ]
568569
569570 _ ->
570- [ div [ class " webhooks_loading " ]
571+ [ div [ class " list_loading " ]
571572 [ Placeholder . text |> Placeholder . withLength Placeholder . Small |> Placeholder . view
572573 , Placeholder . text |> Placeholder . withLength Placeholder . Medium |> Placeholder . view
573574 , Placeholder . text |> Placeholder . withLength Placeholder . Huge |> Placeholder . view
@@ -651,8 +652,13 @@ viewPageContent session project model =
651652 , StatusBanner . info " Changing visibility is not supported for public organizations."
652653 )
653654
654- Failure _ ->
655- ( overlay_, StatusBanner . bad " An unexpected error occurred, please try again." )
655+ Failure e ->
656+ ( overlay_
657+ , div []
658+ [ StatusBanner . bad " An unexpected error occurred, please try again."
659+ , ErrorDetails . view session e
660+ ]
661+ )
656662 in
657663 Card . card
658664 [ h2 [] [ text " Project Visibility" ]
@@ -723,7 +729,7 @@ viewPageContent session project model =
723729
724730 collaborators =
725731 if Project . isPublic project || project. isPremiumProject then
726- viewCollaborators model
732+ viewCollaborators session model
727733
728734 else
729735 UI . nothing
0 commit comments