Fix errors with project ID persistence.
[?]
Feb 8, 2021, 5:37 AM
AKM2VYBLAGDWVBPBF2RXKBU3LQCLD7BTVFKCN5UE45ZUGQWE4ADACDependencies
- [2]
ZHV75AENbasic cleanup - [3]
DAPLYXHYSuccessfully rendering QR codes sometimes. - [4]
YBLHJFCNImplement billing modal. - [5]
4GOBY5NQWIP on modals. - [6]
U7YAT2ZKAdd error reporting to signup form. - [7]
ANDJ6GEYAdd billing component skeleton. - [8]
KET5QGQPAdd billable list (in-progress) - [9]
N6FG4EW6Working bootstrap modal! Only a little FFI. - [10]
QH4UB73NFormat with purty. - [11]
KKJSBWO6Add createPaymentRequestHandler - [12]
T2DN23M7Factor out billing create component. - [13]
V54JCKJXPayment request creation. - [14]
VTZT2ILUWire up billing navigation. - [*]
QAC2QJ32Add project overview page to client.
Change contents
- edit in client/src/Aftok/Billing/Create.purs at line 65
data Query a= Tell a - replacement in client/src/Aftok/Billing/Create.purs at line 83
= H.Slot Query Output id= forall query. H.Slot query Output id - replacement in client/src/Aftok/Billing/Create.purs at line 90
forall m.forall query m. - replacement in client/src/Aftok/Billing/Create.purs at line 94
H.Component HH.HTML Query Input Output mH.Component HH.HTML query Input Output m - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 8
import Data.Maybe (Maybe(..))import Data.Maybe (Maybe(..), fromMaybe) - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 10
-- import Data.Traversable (traverse_)import Data.Traversable (traverse_) - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 47
type Input ={ projectId :: ProjectId, billableId :: Maybe BillableId}type Input = ProjectId - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 49
data Query a =SetBillableId BillableId adata Query a= SetProjectId ProjectId a| SetBillableId BillableId a - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 56
= SetName String= ProjectChanged ProjectId| SetName String - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 90
, receive = Just <<< ProjectChanged - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 96
{ projectId: input.projectId, billableId: input.billableId{ projectId: input, billableId: Nothing - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 117
, P.value (fromMaybe "" st.name) - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 131
, P.value (fromMaybe "" st.description) - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 156
SetProjectId pid a -> doH.modify_ (_ { projectId = pid, billableId = Nothing, name = Nothing, description = Nothing })pure (Just a) - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 166
ProjectChanged pid ->H.modify_ (_ { projectId = pid, billableId = Nothing, name = Nothing, description = Nothing }) - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 186
lift $ system.log "Request created." - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 187
H.modify_ (_ { billableId = Nothing, name = Nothing, description = Nothing, fieldErrors = [] }) - edit in client/src/Aftok/Billing/PaymentRequest.purs at line 214
| QrClose - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 246
Modals.modalWithClose qrModalId "Payment Request"Modals.modalWithClose qrModalId "Payment Request" QrClose - replacement in client/src/Aftok/Billing/PaymentRequest.purs at line 259
handleAction _ = pure unithandleAction = case _ ofQrInit -> doreq <- H.gets (_.req)lift $ traverse_ renderQR reqQrClose ->H.modify_ (_ { req = Nothing, dataUrl = Nothing }) - edit in client/src/Aftok/Billing.purs at line 50
, selectedBillable :: Maybe BillableId - edit in client/src/Aftok/Billing.purs at line 105
, selectedBillable: Nothing - replacement in client/src/Aftok/Billing.purs at line 147
{ projectId: (unwrap p).projectId, billableId: st.selectedBillable }(unwrap p).projectId - edit in client/src/Aftok/Billing.purs at line 222
H.modify_ (_ { selectedBillable = Just bid }) - replacement in client/src/Aftok/Modals.purs at line 80
forall i w.forall action slots m. - replacement in client/src/Aftok/Modals.purs at line 83
Array (HH.HTML i w) ->HH.HTML i wmodalWithClose modalId title contents =action ->Array (H.ComponentHTML action slots m) ->H.ComponentHTML action slots mmodalWithClose modalId title action contents = - edit in client/src/Aftok/Modals.purs at line 119
, E.onClick (\_ -> Just action) - replacement in client/src/Aftok/Overview.purs at line 102
[ HH.text "Project Overview - New!" ][ HH.text "Project Overview" ]