Wire up billing navigation.

[?]
Feb 2, 2021, 1:15 AM
VTZT2ILU7VWP5EY4526HU72Z5HZB6VRVQIVJJTB6Q5NL2AUFZRSAC

Dependencies

  • [2] ANDJ6GEY Add billing component skeleton.
  • [3] NJNMO72S Add zcash.com submodule and update client to modern halogen.
  • [4] WRPIYG3E Use project listing functionality to check for whether we have a cookie.
  • [5] QH4UB73N Format with purty.
  • [6] NAFJ6RB3 Minor module reorg.
  • [7] PPW6ROC5 Render project data
  • [8] SAESJLLY Initial experiments in hash routing.
  • [9] U7YAT2ZK Add error reporting to signup form.
  • [10] PT4276XC Add logout functionality.
  • [11] AAALU5A2 Fix client routing
  • [12] GLQSD33Y Use mock capability for overview init.
  • [*] EA5BFM5G Split Login component into its own module.
  • [*] RB2ETNIF Add skeletal PureScript client project.
  • [*] 7TQPQW3N Begin adding parsing for project detail.
  • [*] QAC2QJ32 Add project overview page to client.
  • [*] TKGBRIQT Login component now raises LoginComplete message.

Change contents

  • replacement in client/package-lock.json at line 1918
    [3.84536][3.84536:84780]()
    "version": "1.0.30001114",
    "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001114.tgz",
    "integrity": "sha512-ml/zTsfNBM+T1+mjglWRPgVsu2L76GAaADKX5f4t0pbhttEp0WMawJsHDYlFkVZkoA+89uvBRrVrEE4oqenzXQ==",
    [3.84536]
    [3.84780]
    "version": "1.0.30001181",
    "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001181.tgz",
    "integrity": "sha512-m5ul/ARCX50JB8BSNM+oiPmQrR5UmngaQ3QThTTp5HcIIQGP/nPBs82BYLE+tigzm3VW+F4BJIhUyaVtEweelQ==",
  • edit in client/src/Aftok/Api/Billing.purs at line 11
    [2.421]
    [2.421]
    import Data.Interval.Duration (Duration)
  • edit in client/src/Aftok/Api/Billing.purs at line 31
    [2.1086]
    [2.1086]
    import Aftok.Zcash
    ( Zatoshi )
  • edit in client/src/Aftok/Api/Billing.purs at line 55
    [2.1634]
    [2.1634]
    data Recurrence
    = Annually
    | Monthly Int
    | Weekly Int
    | OneTime
  • replacement in client/src/Aftok/Api/Billing.purs at line 63
    [2.1666][2.1666:1670]()
    {
    [2.1666]
    [2.1670]
    { name :: String
    , description :: String
    , recurrence :: Recurrence
    , amount :: Zatoshi
    , gracePeriod :: Duration
    , expiryPeriod :: Duration
  • replacement in client/src/Aftok/Billing.purs at line 102
    [2.5640][2.5640:5715]()
    [ HH.text "Your project's payment requests & payments" ]
    [2.5640]
    [2.5715]
    [ HH.text "Your project's payment requests & payments" ]
  • file addition: Zcash.purs (----------)
    [14.1]
    module Aftok.Zcash where
    newtype Zatoshi = Zatoshi Int
  • edit in client/src/Main.purs at line 26
    [16.7475]
    [3.1541]
    import Aftok.Billing as Billing
  • replacement in client/src/Main.purs at line 47
    [3.1685][3.38721:38803]()
    mainComponent = component liveSystem login signup timeline project overview
    [3.1685]
    [3.38803]
    billing = Billing.mockCapability
    mainComponent = component liveSystem login signup timeline project overview billing
  • edit in client/src/Main.purs at line 61
    [3.39059]
    [3.624]
    | VBilling
  • edit in client/src/Main.purs at line 70
    [3.39206]
    [3.39206]
    , VBilling <$ lit "billing"
  • edit in client/src/Main.purs at line 79
    [17.7091]
    [3.876]
    VBilling -> "billing"
  • edit in client/src/Main.purs at line 108
    [3.39512]
    [3.39512]
    , billing :: Billing.Slot Unit
  • edit in client/src/Main.purs at line 118
    [3.308276]
    [18.1181]
    _billing = SProxy :: SProxy "billing"
  • edit in client/src/Main.purs at line 130
    [3.39719]
    [3.39719]
    Billing.Capability m ->
  • replacement in client/src/Main.purs at line 132
    [3.39766][3.39766:39821]()
    component system loginCap signupCap tlCap pCap ovCap =
    [3.39766]
    [3.39821]
    component system loginCap signupCap tlCap pCap ovCap bcap =
  • edit in client/src/Main.purs at line 169
    [3.41050]
    [3.1702]
    VBilling ->
    withNavBar
    $ HH.div_
    [ HH.slot _billing unit (Billing.component system bcap pCap) st.selectedProject (Just <<< ProjectAction) ]
  • edit in client/src/Main.purs at line 230
    [3.42783]
    [3.42783]
    , { label: "Billing", path: "billing" }