- Add vendor-changed HTMX handlers for both bulk code and individual edit - Pre-populate default account at 100% when vendor is selected and no accounts exist - Fix render-accounts-section to render from step-params correctly - Change bulk code vendor-changed from hx-get to hx-post to include form data - Add routes for vendor-changed endpoints - Update e2e tests to cover vendor pre-population - Run lein cljfmt fix across codebase
14 lines
358 B
Clojure
14 lines
358 B
Clojure
(ns auto-ap.datomic.yodlee-merchants
|
|
(:require
|
|
[auto-ap.datomic :refer [conn]]
|
|
[datomic.api :as dc]))
|
|
|
|
(defn get-merchants [_]
|
|
;; TODO admin?
|
|
(->>
|
|
(dc/q {:find ['(pull ?e [:yodlee-merchant/name :yodlee-merchant/yodlee-id :db/id])]
|
|
:in ['$]
|
|
:where [['?e :yodlee-merchant/name]]}
|
|
(dc/db conn))
|
|
(mapv first)))
|