Zach Daniel
61a0379841
improvement: add more exceptions to plug exceptions
2022-12-05 01:24:09 -05:00
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
Zach Daniel
38ec1f0109
Revert "docs: add docs to form_only_fields
"
...
This reverts commit 32842d1c82
.
2022-08-02 19:18:14 -04:00
Zach Daniel
32842d1c82
docs: add docs to form_only_fields
2022-08-02 11:02:21 -04:00
Zach Daniel
bd60b02341
fix: fix nested form_only_fields and add more tests
2022-08-01 23:35:16 -04:00
Zach Daniel
b9cdfd09fc
improvement: add form_only_field/5
2022-08-01 22:07:29 -04:00
Zach Daniel
231a581edd
improvement: warn on unhandled errors by default
2022-07-07 22:22:30 -04:00
Zach Daniel
538784765f
fix: ensure auto forms have unique keys
2022-07-04 21:03:40 -04:00
Zach Daniel
146ec8ec70
improvement: merge _join forms
2022-07-02 11:26:02 -04:00
Zach Daniel
dd65f20204
fix: always merge join form, add fields
2022-07-02 11:03:46 -04:00
Zach Daniel
bffe8b590e
improvement: add fields list to join form
2022-07-02 11:01:33 -04:00
Zach Daniel
bf9c96c109
fix: pass matcher
down in nested validation
2022-06-30 19:27:55 -04:00
Zach Daniel
0afd54e813
fix: deduplicate form keys
2022-06-29 00:21:58 -04:00
Zach Daniel
66026b816c
chore: more debug messages
2022-06-29 00:14:20 -04:00
Zach Daniel
ff3c89900e
chore: more debug messages
2022-06-29 00:10:18 -04:00
Zach Daniel
161e32332b
chore: inspects for debugging
2022-06-29 00:04:34 -04:00
Zach Daniel
2e5f6a9282
chore: don't process duplicate form keys
2022-06-29 00:00:55 -04:00
Zach Daniel
5c3f3bcb90
Revert "fix: when validating, use empty starting point for forms"
...
This reverts commit a658a8085b
.
2022-06-28 23:56:11 -04:00
Zach Daniel
a658a8085b
fix: when validating, use empty starting point for forms
2022-06-28 23:54:14 -04:00
Zach Daniel
42fec6fab4
improvement: helper functions around ignoring forms
2022-06-28 22:31:44 -04:00
Zach Daniel
a554cd9a07
improvement: allow forms to be ignored
2022-06-28 22:28:44 -04:00
Zach Daniel
6ba516aeaa
WIP
2022-06-28 22:22:38 -04:00
Zach Daniel
e8bf9d648d
chore: add explanation for add_form
oddities
2022-06-21 18:33:03 -04:00
Zach Daniel
ec9aca942e
Revert "improvement: pass generated form params in when validating"
...
This reverts commit b54d49074c
.
2022-06-21 18:27:57 -04:00
Zach Daniel
e9466d1e12
Revert "improvement: trialing treating all form parameters as strings for keys/values"
...
This reverts commit 0307ff190c
.
2022-06-21 18:27:44 -04:00
Zach Daniel
0307ff190c
improvement: trialing treating all form parameters as strings for keys/values
...
This is experimental, and may be reverted later
2022-06-21 01:29:00 -04:00
Zach Daniel
b54d49074c
improvement: pass generated form params in when validating
2022-06-21 00:05:35 -04:00
Zach Daniel
677be37d31
improvement: add read_one?
option to submit
2022-06-18 16:31:24 -04:00
Zach Daniel
6505b44452
improvement: track and submit only touched fields by default
2022-06-17 15:11:42 -04:00
Zach Daniel
1873357f61
fix: include forms when !touched_forms
2022-06-13 21:51:48 -04:00
Zach Daniel
d9f2ed5e9a
improvement: add set_params
option
2022-06-10 13:13:50 -04:00
Zach Daniel
45db36d350
improvement: add filter
option to params/2
2022-06-07 21:58:11 -04:00
Zach Daniel
be10b3cd07
fix: keep added?
on validate
2022-06-06 13:08:36 -04:00
Zach Daniel
27761afcf0
fix: set changed after add and remove form
2022-06-06 12:51:15 -04:00
Zach Daniel
e66d4445cb
improvement: add api_opts to submit
2022-06-01 15:56:06 -04:00
Zach Daniel
fa68ae1180
chore: optimize out some to_form
calls
...
fixes #48
2022-05-31 12:05:08 -04:00
Zach Daniel
09f673751b
chore: fix tests
2022-05-28 21:20:54 -04:00
Zach Daniel
d80a87c062
fix: handle case where certain actions are not present
2022-05-25 22:40:26 -04:00
Zach Daniel
6f48087e9f
fix: properly call destroy action with changeset
2022-05-23 02:25:07 -04:00
Darren Black
142bbc3b52
fix: Fix validate_opts when single form ( #44 )
2022-05-22 02:08:43 -04:00
Zach Daniel
de56e1d20a
fix: pass error state down to nested forms properly
...
closes #41
2022-05-20 11:05:28 -04:00
Zach Daniel
a840ca94a0
fix: ensure list forms are always []
after remove_form
...
closes #42
2022-05-19 10:34:44 -04:00
Zach Daniel
3f0e3788e2
fix: add opts to for_action
in add_form
...
closes #41
2022-05-19 10:26:11 -04:00
Zach Daniel
b660254248
improvement: add validate_opts
to add/remove_form
2022-05-19 00:19:24 -04:00
Zach Daniel
873317aa79
fix: validate after adding/removing forms
2022-05-17 11:06:41 -04:00
Zach Daniel
12b27461b6
fix: don't remove a form unless one exists
2022-05-16 22:42:01 -04:00
Zach Daniel
50f6a108b4
fix: raise error on non-existant resource for api
2022-05-16 16:09:38 -04:00
kernel-io
89af1acd41
fix: respect touched forms in params generation ( #37 )
2022-05-13 20:45:07 -04:00
Zach Daniel
8488ba3eaf
chore: add to touched_forms
on add/remove form
2022-05-13 10:41:10 -04:00
Zach Daniel
3d69d41fd7
fix: explicitly set as
and id
in matched form
2022-05-12 19:38:08 -04:00
Zach Daniel
35a4628946
fix: sequence manually matched forms
...
improvement: add `produce` option to `params`
2022-05-12 18:51:35 -04:00