Zach Daniel
c526768670
improvement: remove unknown keys option from embedded attributes
...
docs: update upgrade docs to reflect change of skip_unknown_attributes
2024-04-17 00:18:59 +01:00
Zach Daniel
1f511de8ca
improvement: add error hints for NoFormConfigured
errors
2024-04-11 18:47:31 -04:00
Darren Black
01ca583443
improvement!: upgrade to Ash 3.0
...
Co-Authored By: Zach Daniel
2024-03-28 19:12:13 -04:00
Zach Daniel
99a3a4915f
fix: get casted values from form (requires Ash 2.20+)
2024-03-11 12:35:44 -04:00
Pierre Le Gall
b92b04c77f
improvement: #133 use resource defined Api ( #134 )
2024-02-21 10:07:17 -05:00
Zach Daniel
c5c1a23514
feat: update to latest phoenix_html
2024-01-21 13:00:44 -05:00
Nduati Kuria
ae1a2d0aa2
Fix: do_decode_path
for string paths ( #127 )
...
* Raise InvalidPath exception instead of "Invalid Path: #{original_path}" string
* Add regression test
2024-01-14 14:17:56 -05:00
Zach Daniel
fceed874e6
fix: remove system added error vars to ensure deduplication works properly
2023-12-28 15:42:47 -05:00
Robert Graff
57dfbab56e
nested form errors should not multiply ( #123 )
2023-12-28 14:46:31 -05:00
Zach Daniel
9c2539a312
improvement: carry over nested errors on creation, validation and submission
2023-11-29 19:45:34 -05:00
Zach Daniel
63042cc84c
chore: format
2023-11-29 18:48:57 -05:00
Robert Graff
c0f883d048
test: Add test for errors appearing on inputs_for forms ( #120 )
2023-11-29 18:41:34 -05:00
Zach Daniel
c292848c57
improvement: properly return nested errors with for_path: :all
2023-11-28 15:54:30 -05:00
Zach Daniel
bace1b1ec4
chore: format
2023-11-28 14:34:02 -05:00
Robert Graff
a098a830b1
test: Nested form errors for argument attribute ( #119 )
2023-11-28 14:32:38 -05:00
Zach Daniel
6ddddf7316
improvement: properly get invalid values provided to forms
2023-11-27 19:48:02 -05:00
Zach Daniel
91218dd24e
fix: check for values in changeset params
2023-09-27 18:56:55 -04:00
Zach Daniel
e39558a7dd
fix: undo previous change for only_touched?
on form submit
2023-09-18 19:06:54 -04:00
Zach Daniel
3a7d436079
fix: properly track form params for nested unions
...
fix: produce type errors for wrapped union values
2023-08-13 05:46:42 -07:00
Zach Daniel
e295fb72f7
improvement: tests and better behavior for union forms
2023-08-12 21:29:37 -07:00
Zach Daniel
a3436fcc32
improvement: initial stab at support for forms against unions
2023-08-12 19:54:35 -07:00
Zach Daniel
22611cd4e1
improvement: add support for target
and only_touched?
validate opts
...
chore: update elixir/erlang versions
2023-07-19 00:35:58 -04:00
Zach Daniel
98d717e3ca
chore: properly address test message
2023-04-30 23:03:12 -04:00
Zach Daniel
8921df95be
chore: update test for newer versions of ash
2023-04-30 22:48:04 -04:00
Eduardo B. A
9bdcc7943d
improvement: Add option to not reset on validate ( #94 )
...
* Add option to reset or not values on validate field changes
* Adds a test to it
* Adds some documentation about the reset_on_change? flag
---------
Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
2023-04-25 16:48:50 -06:00
Darren Black
d22a48a514
Fix remove_component ( #86 )
2023-03-28 03:21:41 -04:00
Zach Daniel
057e7fd426
improvement: support auto? options as auto?: [...]
2023-03-20 10:20:30 -04:00
Zach Daniel
340af977f9
improvement: return phoenix forms if phoenix forms are given
...
this is done to support the new pattern in phoenix of assigning the html
form instead of the underlying data structure
2023-03-05 17:23:43 -05:00
Amos King
bb39ba3f03
Fixes default values on dead forms ( #74 )
2023-02-20 18:32:04 -05:00
Egor Kislitsyn
351f46e5af
improvement: accept multiple fields in AshPhoenix.Form.clear_value/2
( #67 )
2023-01-05 13:51:03 -05:00
Egor Kislitsyn
bd3a6fbb1f
fix: properly clear value in Form.clear_value/2 ( #66 )
2023-01-05 12:39:42 -05:00
Zach Daniel
7e634c1d25
chore: fix build
2022-12-21 03:52:08 -05:00
Zach Daniel
ecdce6e894
improvement: add to_filter_map/1
to filter_form
2022-12-21 03:07:07 -05:00
Zach Daniel
6bf3aa2fd6
improvement: add clear_value/1
2022-12-20 22:18:55 -05:00
Zach Daniel
44c9ffb04c
improvement: add prepare_source
option for seeding changesets
...
fix: small logic bug when setting param value
2022-12-15 16:40:24 -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
87cd90cfc0
improvement: properly pass actor and tenant down to nested changesets
2022-11-02 20:37:41 -07:00
Zach Daniel
701512f23b
fix: properly retain sorting of list forms
2022-10-27 22:43:20 -05:00
Zach Daniel
72b4de3f4f
fix: infinite loop in inspect
...
test: test new form errors
2022-10-09 23:22:13 -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
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
Frank Dugan III
b088969315
feat: append predicate path w/ field when relationship ( #53 )
2022-09-26 19:32:49 -04:00
Zach Daniel
bcfb2b9483
improvement: update to latest ash
2022-09-21 01:24:52 -04:00
Zach Daniel
b64cd13941
improvement: support latest ash
2022-09-14 13:21:36 -04:00
Zach Daniel
b2f0e77d09
improvement: support ash 2.0 properly
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
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