Revisions on grid page to make parameters easier to grok
This commit is contained in:
@@ -111,7 +111,8 @@
|
||||
(sort-by (fn [[client _ amount]]
|
||||
[(:client/code client ) amount]))
|
||||
(into []))
|
||||
paginated (apply-pagination-raw args all)]
|
||||
paginated (apply-pagination-raw {:start (:start (:parsed-query-params args))
|
||||
:per-page (:per-page (:parsed-query-params args))} all)]
|
||||
[(:entries paginated) (:count paginated)]))
|
||||
|
||||
(def grid-page {:id "vendor-table"
|
||||
|
||||
@@ -142,7 +142,12 @@
|
||||
:nav (com/company-aside-nav)
|
||||
:id-fn :db/id
|
||||
:fetch-page (fn [user args]
|
||||
(get-page (assoc args :id user)))
|
||||
(get-page {:client (:client args)
|
||||
:clients (:clients args)
|
||||
:start (:start (:parsed-query-params args))
|
||||
:sort (:sort (:parsed-query-params args))
|
||||
:per-page (:per-page (:parsed-query-params args))
|
||||
}))
|
||||
:breadcrumbs [[:a {:href (bidi/path-for ssr-routes/only-routes
|
||||
:company)}
|
||||
"My Company"]
|
||||
@@ -175,8 +180,8 @@
|
||||
"Reauthenticate")]])
|
||||
:headers [{:key "plaid-item"
|
||||
:name "Plaid Item"
|
||||
:sort-key "id"
|
||||
:render :db/id}
|
||||
:sort-key "external-id"
|
||||
:render :plaid-item/external-id}
|
||||
{:key "status"
|
||||
:name "Status"
|
||||
:sort-key "status"
|
||||
|
||||
@@ -19,7 +19,13 @@
|
||||
:nav (com/company-aside-nav)
|
||||
:id-fn :db/id
|
||||
:fetch-page (fn [user args]
|
||||
(r/get-graphql (into args {:id user})))
|
||||
(prn args)
|
||||
(r/get-graphql {:client (:client args)
|
||||
:clients (:clients args)
|
||||
:start (:start (:parsed-query-params args))
|
||||
:per-page (:per-page (:parsed-query-params args))
|
||||
:sort (:sort (:parsed-query-params args))
|
||||
}))
|
||||
:breadcrumbs [[:a {:href (bidi/path-for ssr-routes/only-routes
|
||||
:company)}
|
||||
"My Company"]
|
||||
|
||||
@@ -81,7 +81,12 @@ fastlink.open({fastLinkURL: '%s',
|
||||
:nav (com/company-aside-nav)
|
||||
:id-fn :db/id
|
||||
:fetch-page (fn [user args]
|
||||
(yodlee2/get-graphql (assoc args :id user)))
|
||||
(yodlee2/get-graphql
|
||||
{:client (:client args)
|
||||
:clients (:clients args)
|
||||
:sort (:sort (:parsed-query-params args))
|
||||
:start (:start (:parsed-query-params args))
|
||||
:per-page (:per-page (:parsed-query-params args))}))
|
||||
:breadcrumbs [[:a {:href (bidi/path-for ssr-routes/only-routes
|
||||
:company)}
|
||||
"My Company"]
|
||||
|
||||
Reference in New Issue
Block a user