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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
0a49343d
Commit
0a49343d
authored
Jun 26, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] warnings + status
parent
cc142357
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+3
-3
Status.purs
src/Gargantext/Components/Forest/Tree/Node/Status.purs
+6
-10
No files found.
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
0a49343d
...
...
@@ -224,9 +224,9 @@ buttonClickCpt = R.hooksComponent "G.C.F.T.N.B.buttonClick" cpt
}
where
hasColor :: Status -> String
hasColor
Prod
= "black"
hasColor Test = "orange"
hasColor
WIP
= "red"
hasColor
Stable
= "black"
hasColor Test
= "orange"
hasColor
Dev
= "red"
-- END Popup View
...
...
src/Gargantext/Components/Forest/Tree/Node/Status.purs
View file @
0a49343d
module Gargantext.Components.Forest.Tree.Node.Status where
import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Show (genericShow)
import Data.Generic.Rep.Eq (genericEq)
import Gargantext.Prelude (class Eq, class Show, show, (&&), (<>), (==))
import Data.Array (foldl)
import Gargantext.Types
import Gargantext.Components.Forest.Tree.Node.Settings (NodeAction(..))
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
-- Beta Status
data Status =
Prod | Test | WIP
data Status =
Stable | Test | Dev
hasStatus :: NodeType -> NodeAction -> Status
hasStatus _ SearchBox = WIP
hasStatus _ SearchBox = Dev
hasStatus _ Config = Dev
hasStatus _ (Link _) = Test
hasStatus _ (Move _) = Test
hasStatus _ (Documentation _) = Test
hasStatus _ _ =
Prod
hasStatus _ _ =
Stable
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