Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
135
Issues
135
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
49b073c0
Commit
49b073c0
authored
6 months ago
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph legend] Display first five nodes only
parent
efe681cb
Pipeline
#6926
passed with stages
in 15 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Legend.purs
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
+2
-5
No files found.
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
View file @
49b073c0
...
...
@@ -5,16 +5,14 @@ module Gargantext.Components.GraphExplorer.Sidebar.Legend
import Prelude hiding (map)
import Control.Applicative (map)
import Data.Array (fromFoldable
, snoc
)
import Data.Array (fromFoldable)
import Data.Array as A
import Data.Foldable (length)
import Data.Maybe (isJust, maybe)
import Data.Sequence (Seq, replace)
import Data.Set as Set
import Data.Traversable (foldMap, intercalate)
import Effect (Effect)
import Effect.Aff (launchAff_)
import Effect.Class (liftEffect)
import Gargantext.Components.Bootstrap as B
import Gargantext.Components.GraphExplorer.API (updateLegend)
import Gargantext.Components.GraphExplorer.GraphTypes as GEGT
...
...
@@ -51,7 +49,6 @@ legendCpt = here.component "legend" cpt where
, selectedNodeIds
, session
, graphId
, legendBox
} _ = do
-- | Hooks
-- |
...
...
@@ -169,7 +166,7 @@ selectedNodesCpt = here.component "selectedNodes" cpt where
H.ul
{ className: "graph-legend-nodes" }
[
flip foldMap (
filterByCluster clusterId extractedNodeList
)
flip foldMap (
A.take 5 (filterByCluster clusterId extractedNodeList)
)
\(GEGT.Node { label: nodeLabel, id_: nodeId }) ->
H.li
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment