Commit graph

149 commits

Author SHA1 Message Date
Zach Daniel
116b050269 improvement: looser ash version requirement 2021-07-23 12:15:22 -04:00
Zach Daniel
24cbc780de improvement: add Form.errors/2, deprecate Form.errors_for/3 2021-07-21 21:52:04 -04:00
Zach Daniel
03ed35c801 chore: release version v0.5.5 2021-07-21 01:01:04 -04:00
Zach Daniel
b904af654c fix: don't consider www. as part of the host 2021-07-21 01:00:43 -04:00
Zach Daniel
7f29471916 chore: remove commented out code 2021-07-20 12:02:52 -04:00
Zach Daniel
60ad428974 docs: better liveview example 2021-07-20 10:49:14 -04:00
Zach Daniel
afd094da6a docs: add api option to docs 2021-07-20 10:45:20 -04:00
Zach Daniel
b7c7fb32e8 chore: release version v0.5.4 2021-07-20 10:24:06 -04:00
Zach Daniel
77e0a6337f fix: track data modifications and execute them again 2021-07-20 10:23:36 -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
Zach Daniel
e4202b0931 chore: release version v0.5.3 2021-07-20 01:49:27 -04:00
Zach Daniel
5d64d77aed fix: only prepend to data when necessary 2021-07-20 01:46:19 -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
843923cb65
fix: Add form to single (#18) 2021-07-20 00:42:46 -04:00
Darren Black
72a341a6c1
test: Failing test for invalid path (#17) 2021-07-19 23:42:11 -04:00
Zach Daniel
54a4b76832 fix: actually reindex this time 2021-07-19 23:04:36 -04:00
Darren Black
2373c19e8b
test: Failing test for remove_form reindex (#16) 2021-07-19 22:55:05 -04:00
Zach Daniel
d0bfdf37d9 fix: reindex after remove form 2021-07-19 22:29:34 -04:00
Darren Black
8194e433cb
improvement: Improve error message when incorrect api configured for resource (#15) 2021-07-19 00:58:46 -04:00
Zach Daniel
d06fd1cf42 chore: release version v0.5.2 2021-07-18 22:09:02 -04:00
Darren Black
c861cc9092
fix: Fix nested form naming (#14) 2021-07-18 22:07:54 -04:00
Zach Daniel
429e510b47 chore: release version v0.5.1 2021-07-18 19:20: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
b058f6b276 fix: ensure existing forms is a list before adding 2021-07-18 17:09:04 -04:00
Zach Daniel
e07e8da22f chore: release version v0.5.0 2021-07-18 12:57:30 -04:00
Zach Daniel
b498a90b37 improvement!: refactor forms 2021-07-18 12:57:21 -04:00
Zach Daniel
9a41ddd21d chore: release version v0.4.24 2021-07-18 12:53:56 -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
968e1e068a chore: release version v0.4.23-rc.1 2021-07-18 02:55:47 -04:00
Zach Daniel
2af4024562 improvement: lots of improvements around errors
improvement: track submission states
fix: various auto form fixes
2021-07-18 02:55:08 -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
948dde6f4b fix: show forms on single
fix: always List.wrap() forms
2021-07-17 14:52:18 -04:00
Zach Daniel
e8da89bdbc improvement: add AshPhoenix.update_form/3
docs: add docs for special cases of auto forms
2021-07-17 14:17:05 -04:00
Zach Daniel
75bb281348 improvement: id defaults to name 2021-07-16 21:16:56 -04:00
Zach Daniel
080508c1f7 fix: set manage_opts properly 2021-07-16 21:03:48 -04:00
Zach Daniel
0508ff48d5 improvement: add auto?: true flag 2021-07-16 20:40:49 -04:00
Zach Daniel
c81568508e improvement: update to latest ash 2021-07-16 20:20:46 -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
b9f4b4345a chore: update docs 2021-07-16 17:03:55 -04:00
Zach Daniel
42c6612641 improvement: add destroy error message 2021-07-16 16:55:52 -04:00
Zach Daniel
defbf581dc improvement: first edition of auto forms 2021-07-16 16:50:36 -04:00
Zach Daniel
1eee011e26
chore: more documentation (#7)
Co-authored-by: Darren Black <dblack@totaltrash.net>
2021-07-15 14:43:11 -04:00
Zach Daniel
652ad320df chore: release version v0.4.23-rc.0 2021-07-15 14:11:03 -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
Zach Daniel
a7b2296d43 chore: refactor the use_data? change 2021-07-12 17:37:06 -04:00
Zach Daniel
e98c617405 chore: fix lint 2021-07-12 17:19:17 -04:00
Zach Daniel
9350101bb5 improvement: add use_data? opt to add_related
test: add some tests for `add_related`
fix: don't assume an empty map is an indexed map
2021-07-12 17:19:06 -04:00