From 3423d1ea34a9cc7a7eedbd70a2f866920ce7a0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8jberg?= Date: Wed, 5 Jan 2022 09:27:11 -0500 Subject: [PATCH] Temporarily hide the _catalog doc Unison Share will have a new front page that features a catalog which is derived from a Unison Doc. This page will mean that users will never see a tree view of the top of the Unison Share like they do now. While the Catalog page is being worked on, but not switched over to, we want to hide the _catalog doc from the top level codebase tree to avoid any confusion. This should be removed later when the Catalog page is in place. --- src/CodebaseTree.elm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/CodebaseTree.elm b/src/CodebaseTree.elm index 6b164e4..2103eca 100644 --- a/src/CodebaseTree.elm +++ b/src/CodebaseTree.elm @@ -194,11 +194,17 @@ viewListingRow clickMsg label_ category icon = |> Maybe.map (\msg -> a [ containerClass, onClick msg ]) |> Maybe.withDefault (span [ containerClass ]) in - container - [ Icon.view icon - , viewListingLabel label_ - , span [ class "definition-category" ] [ text category ] - ] + -- TODO: Temporary work around to avoid the hidden catalog definition to + -- show up on Share while the catalog page is being worked on + if label_ == "_catalog" then + UI.nothing + + else + container + [ Icon.view icon + , viewListingLabel label_ + , span [ class "definition-category" ] [ text category ] + ] viewListingLabel : String -> Html msg