Commit Graph

19 Commits

Author SHA1 Message Date
f9438ba983 fix(ssr): only require account coding for manual transaction edits
Account coding lived in the always-applied base map of edit-form-schema, so
every action (including the link/apply-rule/unlink actions) required a valid
transaction-account/account. The edit modal always submits the Manual tab's
(usually blank) account row, so link submits failed validation before reaching
their save-handler and silently no-op'd. Move account validation into the
:manual branch of the action :multi so link actions validate without it.

Also surface whole-form validation errors in the wizard footer error bar:
default-step-footer only handled top-level/sequential error shapes, so nested
field-error maps (e.g. a hidden tab's account error) produced an empty bar and
a silent failure. Add flatten-form-errors to flatten the humanized error tree.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 21:30:29 -07:00
de73233a08 transaction dialog now uses sidebar. 2026-05-26 21:58:24 -07:00
8e3aa13f4d fixes 2026-05-24 21:54:37 -07:00
ba87805d4c Add vendor pre-population for bulk code and individual edit forms
- 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
2026-05-21 14:45:19 -07:00
4f32527732 Fix form error display for root-level validation errors
When validation errors occur at the root level (e.g., from :fn validators
in multi schemas), they are returned as a vector directly rather than a
map with :errors key. Update default-step-footer to handle both cases.
2026-05-20 21:27:30 -07:00
7c7fc10a8d transactions page progress. 2025-03-02 20:09:40 -08:00
e3b17e50e2 Sales nearly ready 2024-04-30 22:38:21 -07:00
Bryce
71b5b9864c Applies all of the feedback for the new page 2024-04-14 22:29:01 -07:00
dfccbf35cd Makes editing work correctly for non-admins 2024-04-03 20:08:46 -07:00
d2ed08f6f9 Editing works. 2024-04-03 12:55:37 -07:00
Bryce
d34e125b6f Updates page as needed. 2024-03-29 10:43:15 -07:00
Bryce
6496eea485 Warns when an account is unusable 2024-03-28 19:39:47 -07:00
Bryce
13a083e053 Streamlines more user interface 2024-03-27 11:36:41 -07:00
Bryce
5c2d3d4487 Slightly better UX 2024-03-27 09:21:25 -07:00
506c075846 adds general ledger links, allows starting new. 2024-03-25 21:02:35 -07:00
1ac90804b8 Nearly able to create invoices manually 2024-03-24 22:07:17 -07:00
Bryce
a972df1d43 Makes print checks basically work. 2024-03-16 19:50:04 -07:00
5b9c4b7aef progress on invoices. 2024-03-14 07:16:59 -07:00
8063a8fcbd Builds client SSR approach, sunsets old cljs. 2024-02-07 21:22:56 -08:00