Commit graph

260 commits

Author SHA1 Message Date
Rebecca Le
ac3e2dc9ac
feat: add custom HTTP status codes for specific types of errors that can be thrown (#62) 2022-11-23 03:42:06 -05:00
Zach Daniel
7b8130eee9 improvement: use new docs 2022-11-03 09:45:54 -07:00
Zach Daniel
87cd90cfc0 improvement: properly pass actor and tenant down to nested changesets 2022-11-02 20:37:41 -07:00
Zach Daniel
5ffcd1916e fix: properly handle single values in value_is_key relationships 2022-11-01 03:12:06 -04:00
Zach Daniel
c1976e1eaa fix: properly honor value_is_key option 2022-10-31 19:43:23 -04:00
Zach Daniel
701512f23b fix: properly retain sorting of list forms 2022-10-27 22:43:20 -05:00
Zach Daniel
bc06804393 fix: specify @derive in proper place 2022-10-09 23:23:58 -04:00
Zach Daniel
72b4de3f4f fix: infinite loop in inspect
test: test new form errors
2022-10-09 23:22:13 -04:00
Zach Daniel
ee0668bbcd improvement: handle %Phoenix.HTML.Form{} inputs in some cases
will raise much better errors when incorrect input is provided

improvement: require `%AshPhoenix.Form{}` inputs in some cases

will raise much better errors when incorrect input is provided
2022-10-09 22:59:22 -04:00
Zach Daniel
ce2a2f2ffa improvement: carry over negated on validate for groups 2022-10-07 12:02:16 -04:00
Zach Daniel
6fb3b7ac9f fix: populate hidden fields from server-side form by default 2022-10-06 22:33:36 -04:00
Zach Daniel
609a4fbe4a fix: don't sanitize arguments out of predicate form 2022-10-05 20:28:32 -04:00
Zach Daniel
1f245f14b2 improvement: support calculation arguments in FilterForm 2022-10-05 16:15:22 -04:00
Zach Daniel
84d110afdb chore: fix lint again 2022-10-04 16:51:39 -04:00
Zach Daniel
69bd4560cb chore: fix lint 2022-10-04 16:44:18 -04:00
Zach Daniel
28d149d7c1 fix: change filter form value even if value doesn't match 2022-10-04 16:43:16 -04:00
Zach Daniel
882fe2fb65 improvement: clear filter form value when field changes 2022-10-04 00:54:50 -04:00
Frank Dugan III
e1f283636e
fix: select first public attribute as field when remapping path
fix: update_predicate correctly handles existing predicate
2022-09-30 16:40:23 -04:00
Frank Dugan III
8f59f15bea
fix: nested groups have correct form names (#54) 2022-09-28 14:34:50 -04:00
Zach Daniel
0478c31270 improvement: add update and destroy types to add_form 2022-09-28 03:28:26 -04:00
Zach Daniel
6759794d60 fix: properly synthesize nested action errors 2022-09-28 02:11:42 -04:00
Zach Daniel
4f545f4360 improvement: support latest phoenix/surface 2022-09-27 18:37:27 -04:00
Zach Daniel
3b56ee5d2c improvement: support latest phoenix 2022-09-27 18:37:27 -04:00
Frank Dugan III
b088969315
feat: append predicate path w/ field when relationship (#53) 2022-09-26 19:32:49 -04:00
Zach Daniel
75f07d1235 fix: only impl Phoenix.HTML.Safe if it hasn't already been 2022-09-15 18:46:21 -04:00
Zach Daniel
b64cd13941 improvement: support latest ash 2022-09-14 13:21:36 -04:00
ymijorski
02f4b54690
improvement: decimal protocols (#51) 2022-09-12 12:20:19 -04:00
ymijorski
effbc60ebc
fix: argument mismatch when calling handle_forms (#50) 2022-09-08 12:10:32 -04:00
Zach Daniel
47fba77237 fix: call get_function/3 2022-08-30 17:44:57 -06:00
Zach Daniel
c9192a4905 chore: bump pre version
docs: add/tweak docs
chore: update ash
2022-08-30 17:40:03 -06:00
Zach Daniel
ee27b25cd7 docs: explain submitted_once? and just_submitted? 2022-08-30 17:40:03 -06:00
Zach Daniel
84aca9411b docs: work on docs & docs structure 2022-08-30 17:40:03 -06:00
Zach Daniel
b2f0e77d09 improvement: support ash 2.0 properly 2022-08-30 17:40:03 -06:00
Zach Daniel
0d1d5b5465 improvement: update to latest ash, prepare for ash-2.0 2022-08-30 17:40:03 -06:00
Zach Daniel
5723a449a7 improvemnt: upgrade to ash 2.0 2022-08-30 17:40:03 -06:00
Zach Daniel
443342c76f fix: require setting include_non_map_types? for non map types 2022-08-23 22:45:13 -04:00
Zach Daniel
7b9f3070a6 fix: don't validate values that aren't maps 2022-08-23 22:26:04 -04:00
Zach Daniel
2e061428a4 fix: don't transform nested params if transform? is false 2022-08-23 22:01:34 -04:00
Zach Daniel
343e70b6d5 improvement: update to latest ash
fix: remove typo from new transform_params logic
2022-08-22 16:14:27 -04:00
Zach Daniel
336b5c7931 fix: shore up missing cases around transform_params 2022-08-22 15:44:42 -04:00
Zach Daniel
dff7d12e86 improvement: support non-map type nested forms 2022-08-22 14:31:28 -04:00
Zach Daniel
1bbe7c34db fix: mark forms updated with update_form/4 as touched by default 2022-08-16 22:16:47 -04:00
Zach Daniel
6ad0183759 fix: handle errors in form change tracking 2022-08-15 12:31:07 -04:00
Zach Daniel
72a2965107 fix: properly parse string paths in FilterForm
improvement: add `update_predicate/3`
2022-08-13 15:10:47 -04:00
Zach Daniel
c7278d0f04 improvement: pass must load opts when building auto forms
fix: don't stringify form value
2022-08-12 16:29:02 -04:00
Zach Daniel
a84258a0d7 improvement: add merge_options and update_options 2022-08-09 13:22:33 -04:00
Zach Daniel
66720d9697 fix: reuse opts when validating before submit 2022-08-09 13:00:37 -04:00
Zach Daniel
4b9ec85d5a improvement: fix typespecs on form submit 2022-08-09 00:20:52 -04:00
Zach Daniel
9cc3ceb636 Revert "improvement: add form_only_field/5"
This reverts commit b9cdfd09fc.
2022-08-02 19:18:27 -04:00
Zach Daniel
549caa40bc Revert "fix: fix nested form_only_fields and add more tests"
This reverts commit bd60b02341.
2022-08-02 19:18:20 -04:00