Skip to content

Commit

Permalink
Move project dependency to ui-core
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Nov 19, 2024
1 parent fa59e77 commit cfab364
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 118 deletions.
2 changes: 1 addition & 1 deletion elm-git.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"git-dependencies": {
"direct": {
"https://github.com/unisonweb/ui-core": "4c00cd6adc7a866195e65438368843da698eb577"
"https://github.com/unisonweb/ui-core": "8bbbfdfbca7c6656c09cbb0206cc77d599a21988"
},
"indirect": {}
}
Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
},
"indirect": {}
}
}
}
7 changes: 6 additions & 1 deletion src/UnisonShare/Page/CodePageContent.elm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,12 @@ viewSidebar perspective cfg codebaseTree =
codeSection =
Maybe.map
(\c ->
Sidebar.section "Code" [ Html.map c.codebaseTreeMsg (CodebaseTree.view c.codebaseTree) ]
Sidebar.section "Code"
[ Html.map c.codebaseTreeMsg
(CodebaseTree.view { withPerspective = True }
c.codebaseTree
)
]
|> Sidebar.sectionWithTitleButton (Button.iconThenLabel cfg.showFinderModalMsg Icon.browse "Search" |> Button.small)
|> Sidebar.sectionWithScrollable
)
Expand Down
2 changes: 1 addition & 1 deletion src/UnisonShare/Page/ProjectOverviewPage.elm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Code.Finder.SearchOptions as SearchOptions
import Code.FullyQualifiedName as FQN
import Code.Namespace.NamespaceRef as NamespaceRef
import Code.Perspective as Perspective
import Code.ProjectDependency as ProjectDependency exposing (ProjectDependency)
import Code.ReadmeCard as ReadmeCard
import Html exposing (Html, div, footer, form, p, span, strong, text)
import Html.Attributes exposing (class)
Expand Down Expand Up @@ -49,7 +50,6 @@ import UnisonShare.CodeBrowsingContext as CodeBrowsingContext exposing (CodeBrow
import UnisonShare.Link as Link
import UnisonShare.PageFooter as PageFooter
import UnisonShare.Project as Project exposing (ProjectDetails)
import UnisonShare.Project.ProjectDependency as ProjectDependency exposing (ProjectDependency)
import UnisonShare.Project.ProjectListing as ProjectListing
import UnisonShare.Project.ProjectRef as ProjectRef exposing (ProjectRef)
import UnisonShare.Route as Route
Expand Down
73 changes: 0 additions & 73 deletions src/UnisonShare/Project/ProjectDependency.elm

This file was deleted.

41 changes: 0 additions & 41 deletions tests/UnisonShare/Project/ProjectDependencyTests.elm

This file was deleted.

0 comments on commit cfab364

Please sign in to comment.