diff --git a/.claude/skills/ssr-form-migration/reference/scorecard.md b/.claude/skills/ssr-form-migration/reference/scorecard.md index 5a30b28e..5d8a49f4 100644 --- a/.claude/skills/ssr-form-migration/reference/scorecard.md +++ b/.claude/skills/ssr-form-migration/reference/scorecard.md @@ -39,7 +39,7 @@ Each migration appends one row (after-numbers), referencing the before in the di | Phase | Modal | LOC | Routes | no-cursor twins | faked roots | snapshot merges | OOB | mixed hx- | cookbook reused / added | |-------|-------|-----|--------|-----------------|-------------|-----------------|-----|-----------|-------------------------| | 1 (baseline) | Transaction Edit `transaction/edit.clj` | 1608 | ~12 | 1 | 2 | ~75 | 0 | 8 | — / seeded 7 entries | -| 2 (in progress) | Transaction Edit `transaction/edit.clj` | 1570 | ~12 | **0** | **0** | ~75 | 0 | 8 | — / 0 | +| 2 (in progress) | Transaction Edit `transaction/edit.clj` | ~1558 | **~10** | **0** | **0** | ~75 | 0 | 8 | — / 0 | > **Phase 2 progress (partial).** Achieved with parity held (swap spec 6/6 + Shared > Location green, full suite 31 pass / no regression): deleted the dead `*-no-cursor*` diff --git a/src/clj/auto_ap/ssr/transaction/edit.clj b/src/clj/auto_ap/ssr/transaction/edit.clj index 3e4cbce5..4979e0be 100644 --- a/src/clj/auto_ap/ssr/transaction/edit.clj +++ b/src/clj/auto_ap/ssr/transaction/edit.clj @@ -387,12 +387,6 @@ "text-red-300")} (format "$%,.2f" balance)])) -(defn account-total [request] - (html-response (account-total* request))) - -(defn account-balance [request] - (html-response (account-balance* request))) - (defn ->percentage [amount total] (when (and amount total (not= total 0)) (* 100.0 (/ amount total)))) @@ -1526,14 +1520,6 @@ [:maybe entity-id]] [:account-id {:optional true} [:maybe entity-id]]])) - ::route/account-total (-> account-total - (mm/wrap-wizard edit-wizard) - (wrap-entity [:multi-form-state :snapshot :db/id] d-transactions/default-read) - (mm/wrap-decode-multi-form-state)) - ::route/account-balance (-> account-balance - (mm/wrap-wizard edit-wizard) - (wrap-entity [:multi-form-state :snapshot :db/id] d-transactions/default-read) - (mm/wrap-decode-multi-form-state)) ::route/edit-form-changed (-> edit-form-changed-handler (mm/wrap-wizard edit-wizard) (wrap-entity [:multi-form-state :snapshot :db/id] d-transactions/default-read) diff --git a/src/cljc/auto_ap/routes/transactions.cljc b/src/cljc/auto_ap/routes/transactions.cljc index 30f77dcc..e5c6c48e 100644 --- a/src/cljc/auto_ap/routes/transactions.cljc +++ b/src/cljc/auto_ap/routes/transactions.cljc @@ -30,8 +30,6 @@ "/edit-submit" ::edit-submit "/edit-vendor-changed" ::edit-vendor-changed "/location-select" ::location-select - "/account-total" ::account-total - "/account-balance" ::account-balance "/toggle-amount-mode" ::toggle-amount-mode "/edit-form-changed" ::edit-form-changed "/edit-wizard-new-account" ::edit-wizard-new-account