{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE DataKinds #-} module Biz.Devalloc.Core ( Form (..), Move (..), make, signup, view, ) where import Alpha import Miso hiding (view) import qualified Miso.String import Servant.API import Servant.Links (URI) data Move = NoOp | ChangeURI URI newtype Form = Form {uri :: URI} deriving (Eq) make :: URI -> Form make uri = Form uri signup :: View Move signup = p_ [] [ a_ [href_ "mailto:ben@bsima.me?subject=Devalloc+signup"] [text "Request access via email"] ] view :: Form -> View Move view _ = div_ [] [ h1_ [] [text "Devalloc"], p_ [] [ text "Devalloc analyzes your codebase trends, finds patterns \ \ in how your developers work, and protects against tech debt." ], p_ [] [text "Just hook it up to your CI system - it will warn you when it finds a problem."], signup, h2_ [] [text "Identify blackholes in your codebase"], p_ [] [ text <| Miso.String.intercalate " " [ "What if none of your active employees have touched some part of the codebase?", "This happens too often with legacy code, and then it turns into a huge source of tech debt.", "Devalloc finds these \"blackholes\" and warns you about them so you can be proactive in eliminating tech debt." ] ], h2_ [] [text "Protect against lost knowledge"], p_ [] [text "Not everyone can know every part of a codebase. By finding pieces of code that only 1 or 2 people have touched, devalloc identifes siloed knowledge. This allows you to protect against the risk of this knowledge leaving the company if an employee leaves."], h2_ [] [text "Don't just measure code coverage - also know your dev coverage"], p_ [] [text "No matter how smart your employees are, if you are under- or over-utilizing your developers then you will never get optimal performance from your team."], ul_ [] [ li_ [] [text "Find developer hot spots in your code: which pieces of code get continually rewritten, taking up valuable dev time?"], li_ [] [text "Know how your devs work best: which ones have depth of knowledge, and which ones have breadth?"] ], p_ [] [text "(Paid only)"], h2_ [] [text "See how your teams *actually* organize themselves with cluster analysis"], p_ [] [text "Does your team feel splintered or not cohesive? Which developers work best together? Devalloc analyzes the collaboration patterns between devs and helps you form optimal pairings and teams based on shared code and mindspace."], p_ [] [text "(Paid only)"], signup ]