Add halogen-portal dependency and update argonaut.
[?]
Feb 4, 2021, 3:40 AM
3HTCTHHULQUAHAQFUKDIFO3S7FVVFXMAQLLS3T44MLHGDIT5DZGACDependencies
- [2]
U7YAT2ZKAdd error reporting to signup form. - [3]
T2DN23M7Factor out billing create component. - [4]
QMEYU4MWAdd display for prior intervals. - [5]
APOATM4XAdd getProjectDetail call to project API - [6]
VTZT2ILUWire up billing navigation. - [7]
27H4DECZAdd billing create API call. - [8]
RSF6UAJKBreak out api module for timeline. - [9]
J6S23MDGUse server timestamps for interval start and end. - [10]
QU5FW67RAdd project selection to time tracker. - [11]
NAFJ6RB3Minor module reorg. - [12]
2J37EVJMCheck for an open interval on project switch. - [13]
QAC2QJ32Add project overview page to client. - [14]
NJNMO72SAdd zcash.com submodule and update client to modern halogen. - [15]
PPW6ROC5Render project data - [16]
QH4UB73NFormat with purty. - [17]
7TQPQW3NBegin adding parsing for project detail. - [18]
ANDJ6GEYAdd billing component skeleton. - [19]
IR75ZMX3Return actual events for interval ends, not just timestamps. - [20]
Z5KNL332Add skeleton of project overview HTML.
Change contents
- replacement in client/packages.dhall at line 121
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200615/packages.dhall sha256:5d0cfad9408c84db0a3fdcea2d708f9ed8f64297e164dc57a7cf6328706df93ahttps://github.com/purescript/package-sets/releases/download/psc-0.13.8-20210118/packages.dhall sha256:a59c5c93a68d5d066f3815a89f398bcf00e130a51cb185b2da29b20e2d8ae115 - replacement in client/packages.dhall at line 125
let additions = {=}let additions ={ halogen-portal ={ dependencies =[ "aff-bus", "effect", "halogen", "halogen-storybook", "psci-support", "record"], repo ="https://github.com/thomashoneyman/purescript-halogen-portal.git", version = "34bcb2bb1dd859749f2061479c74c6052519e115"}} - edit in client/spago.dhall at line 13
, "halogen-portal" - replacement in client/src/Aftok/Api/Billing.purs at line 9
import Data.Argonaut.Decode (class DecodeJson, decodeJson)import Data.Argonaut.Decode (class DecodeJson, decodeJson, JsonDecodeError(..)) - replacement in client/src/Aftok/Api/Billing.purs at line 59
BillableId <$> (note "Failed to decode billable UUID" $ parseUUID uuidStr)BillableId <$> note (TypeMismatch"Failed to decode billable UUID") (parseUUID uuidStr) - replacement in client/src/Aftok/Api/Billing.purs at line 107
PaymentRequestId <$> (note "Failed to decode paymentRequest UUID" $ parseUUID uuidStr)PaymentRequestId <$> note (TypeMismatch "Failed to decode paymentRequest UUID") (parseUUID uuidStr) - replacement in client/src/Aftok/Api/Billing.purs at line 123
StatusCode 200 -> withExceptT (ParseFailure r.body) <<< except $ decodeJson r.bodyStatusCode 200 -> withExceptT ParseFailure <<< except $ decodeJson r.body - replacement in client/src/Aftok/Api/Json.purs at line 8
import Data.Argonaut.Decode (class DecodeJson, decodeJson)import Data.Argonaut.Decode (class DecodeJson, decodeJson, JsonDecodeError(..)) - replacement in client/src/Aftok/Api/Json.purs at line 47
parseJsonDate :: Json -> ExceptT String Effect DateTimeparseJsonDate :: Json -> ExceptT JsonDecodeError Effect DateTime - replacement in client/src/Aftok/Api/Json.purs at line 50
parseDate str(withExceptT TypeMismatch $ parseDate str) - replacement in client/src/Aftok/Api/Json.purs at line 60
= Json -> Either String a= Json -> Either JsonDecodeError a - replacement in client/src/Aftok/Api/Json.purs at line 62
decodeDatedJson :: forall t. Traversable t => Decode (t String) -> Json -> ExceptT String Effect (t DateTime)decodeDatedJson ::forall t.Traversable t =>Decode (t String) ->Json ->ExceptT JsonDecodeError Effect (t DateTime) - replacement in client/src/Aftok/Api/Json.purs at line 70
traverse parseDate decoded(withExceptT TypeMismatch $ traverse parseDate decoded) - replacement in client/src/Aftok/Api/Json.purs at line 82
StatusCode 200 -> withExceptT (ParseFailure r.body) $ map fromDateTime <$> decodeDatedJson decode r.bodyStatusCode 200 -> withExceptT ParseFailure $ map fromDateTime <$> decodeDatedJson decode r.body - replacement in client/src/Aftok/Api/Json.purs at line 97[2.919]→[2.919:1045](∅→∅),[4.585]→[4.2782:2860](∅→∅),[2.1045]→[4.2782:2860](∅→∅),[4.2782]→[4.2782:2860](∅→∅)
withExceptT (ParseFailure r.body)$ Just<<< map fromDateTime<$> decodeDatedJson decode r.bodyother -> throwError $ Error { status: Just other, message: r.statusText }[2.919]map Just<<< withExceptT ParseFailure<<< map (map fromDateTime)$ decodeDatedJson decode r.bodyother ->throwError $ Error { status: Just other, message: r.statusText } - replacement in client/src/Aftok/Api/Project.purs at line 7[4.763]→[2.1047:1080](∅→∅),[4.799]→[4.3103:3168](∅→∅),[2.1080]→[4.3103:3168](∅→∅),[4.3103]→[4.3103:3168](∅→∅)
import Data.Argonaut.Core (Json)import Data.Argonaut.Decode (class DecodeJson, decodeJson, (.:))import Data.Argonaut.Core (Json, fromString)import Data.Argonaut.Decode (class DecodeJson, JsonDecodeError(..), decodeJson, (.:)) - replacement in client/src/Aftok/Api/Project.purs at line 54
other -> Left $ "Unrecognized depreciation function: " <> otherother -> Left $ UnexpectedValue (fromString dtype) - replacement in client/src/Aftok/Api/Project.purs at line 81
parseProject :: ProjectId -> Object Json -> Either String (Project' String)parseProject :: ProjectId -> Object Json -> Either JsonDecodeError (Project' String) - replacement in client/src/Aftok/Api/Timeline.purs at line 9
import Data.Argonaut.Decode (class DecodeJson, decodeJson, (.:), (.:?))import Data.Argonaut.Decode (class DecodeJson, JsonDecodeError(..), decodeJson, (.:), (.:?)) - replacement in client/src/Aftok/Api/Timeline.purs at line 72
parseEventFields :: Object Json -> Either String (Event String)parseEventFields :: Object Json -> Either JsonDecodeError (Event String) - replacement in client/src/Aftok/Api/Timeline.purs at line 77
note "Only 'stop' and 'start' events are supported."note (TypeMismatch "Only 'stop' and 'start' events are supported.") - replacement in client/src/Aftok/Api/Types.purs at line 5
import Data.Argonaut.Core (Json, stringify)import Data.Argonaut.Decode (JsonDecodeError) - replacement in client/src/Aftok/Api/Types.purs at line 10
| ParseFailure Json String| ParseFailure JsonDecodeError - replacement in client/src/Aftok/Api/Types.purs at line 16
ParseFailure js e -> "ParseFailure (" <> show (stringify js) <> ") " <> show eParseFailure e -> "ParseFailure (" <> show e <> ") " - replacement in client/src/Aftok/Types.purs at line 4
import Data.Argonaut.Decode (class DecodeJson, decodeJson)import Data.Argonaut.Decode (class DecodeJson, decodeJson, JsonDecodeError(..)) - replacement in client/src/Aftok/Types.purs at line 96
UserId <$> (note "Failed to decode user UUID" $ parseUUID uuidStr)UserId <$> note (TypeMismatch "Failed to decode user UUID") (parseUUID uuidStr) - replacement in client/src/Aftok/Types.purs at line 110
ProjectId <$> (note "Failed to decode project UUID" $ parseUUID uuidStr)ProjectId <$> note (TypeMismatch "Failed to decode project UUID") (parseUUID uuidStr)