Commit graph

32 commits

Author SHA1 Message Date
Zach Daniel
a8223ecc09 fix: add pkey ids as params when creating read forms from data 2022-03-21 22:34:50 -04:00
Zach Daniel
f5357b5af4 fix: track data properly for reads generated from data 2022-03-21 22:24:19 -04:00
Zach Daniel
9e8ab6c904 test: fix test 2022-02-20 23:34:57 -05:00
Zach Daniel
0d6a20ff5f fix: typo on checking if errors are set to the same value as before 2021-11-12 22:10:33 -05:00
Darren Black
6afdd21f95
Validation issue in rc (#30) 2021-11-12 21:22:55 -05:00
Zach Daniel
1fe82efd04 chore: add a test trying to reproduce an issue
chore: update locked version of ash
2021-11-10 15:11:22 -05:00
Zach Daniel
4eabe074af improvement: use existing forms on validate, instead of rebuilding 2021-11-08 04:47:12 -05:00
Zach Daniel
a8b6a7d1e5 improvement: enrich but also simplify changed? behavior 2021-11-06 14:12:53 -04:00
Zach Daniel
3c56731aae improvement: add a .changed? field 2021-11-06 12:15:50 -04:00
Zach Daniel
16cf384e5e test: fix failing test cases 2021-08-27 13:21:48 -04:00
Zach Daniel
f194e157ae improvement: undo some data tracking changes that didn't work
improvement: continue improving sparse forms
2021-08-15 11:30:46 -04:00
Zach Daniel
942c69dafb improvement: track touched forms for saner removal cases
improvement: add `sparse?` option for list forms
improvement: add auto options, including sparse forms and relationship_fetcher
2021-08-11 18:48:52 -04:00
Zach Daniel
48df4c1eb5 improvement: customize relationship fetcher (experimental)
fix: attempt to fix data removal for to_one relationships
2021-08-11 01:27:07 -04:00
Zach Daniel
aa97ffe2f2 chore: release version v0.5.9 2021-08-05 02:07:36 -04:00
Darren Black
913947b457
test: Failing test (#23) 2021-08-05 00:45:09 -04:00
Zach Daniel
e43ab34f2a fix: don't return NotLoaded from input_value
improvement: add `Form.value/2`
2021-08-03 22:59:04 -04:00
Zach Daniel
6c8e92bd65 improvement: retain original data for form submission
improvement: update to latest ash
2021-08-01 13:19:01 -04:00
Zach Daniel
24cbc780de improvement: add Form.errors/2, deprecate Form.errors_for/3 2021-07-21 21:52:04 -04:00
Darren Black
6ca6435263
test: Error on submit when removing the last item from a single resource (#20) 2021-07-20 01:54:36 -04:00
Darren Black
380a67a1fa
fix: Fix remove form path when a nested single (#19) 2021-07-20 01:00:44 -04:00
Darren Black
72a341a6c1
test: Failing test for invalid path (#17) 2021-07-19 23:42:11 -04:00
Darren Black
2373c19e8b
test: Failing test for remove_form reindex (#16) 2021-07-19 22:55:05 -04:00
Darren Black
8194e433cb
improvement: Improve error message when incorrect api configured for resource (#15) 2021-07-19 00:58:46 -04:00
Darren Black
c861cc9092
fix: Fix nested form naming (#14) 2021-07-18 22:07:54 -04:00
Zach Daniel
d1889a5bfb fix: set form aliases properly
improvement: move `api` to initial form creation option
2021-07-18 19:20:25 -04:00
Zach Daniel
ff40864c6b improvement: alter behavior of params option to submit
improvement: add `set_data/2`
2021-07-18 12:43:59 -04:00
Darren Black
e8d8aebaa3
fix: Fix default form id when :as provided (#12) 2021-07-18 12:28:47 -04:00
Zach Daniel
f36e6c30f2 fix: always pass forms down 2021-07-17 16:06:15 -04:00
Darren Black
785263e514
test: Add failing test (#9) 2021-07-17 15:57:27 -04:00
Zach Daniel
ea9ec350cd test: add another test for validation errors
fix: don't set data unless necessary
2021-07-16 19:58:14 -04:00
Darren Black
8378a38713
fix: Wrap single items on to_form (#8) 2021-07-16 18:23:07 -04:00
Zach Daniel
d7ec7da419
improvement: refactor forms with new data structure AshPhoenix.Form (#6)
Co-authored-by: Darren Black <dblack@totaltrash.net>
2021-07-15 14:09:15 -04:00