Zach Daniel
6b0676d662
fix: don't assume all embeds have a create/update action
2024-05-22 09:43:33 -04:00
Zach Daniel
1c4d9ebd90
fix: improve union handling
...
improvement: support adding a form by inserting to an index
2024-05-17 18:07:52 -05:00
Rebecca Le
30244db414
fix: Convert entered action names into atoms for lookup in the resource ( #187 )
2024-05-15 07:18:09 -04:00
Josh Price
be0b4cd05e
docs: fix capitalisation
2024-05-01 16:20:09 -04:00
Zach Daniel
2b1e2bb7ac
fix: various fixes around union forms
...
docs: add documentation for union forms
closes #173
closes #174
2024-04-30 13:37:38 -04:00
Zach Daniel
38e9f89a7e
fix: don't use public_attributes?
, check for all accepted attributes
...
fix: show proper error message for accepted/non accepted missing forms
fixes #170
2024-04-29 20:21:11 -04:00
Jinkyou Son
94e17780ff
improvement: Remove domain opt from AshPhoenix.LiveView ( #167 )
2024-04-24 06:24:14 -04:00
Zach Daniel
b8c2d4034e
chore: format
2024-04-23 10:32:24 -04:00
78f2206f8e
fix: Pass the tenant to Ash.can/3
and Ash.can?/3
. ( #165 )
...
* fix: Pass the tenant to `Ash.can/3` and `Ash.can?/3`.
* Update lib/ash_phoenix/form/form.ex
* Update lib/ash_phoenix/form/form.ex
---------
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2024-04-23 10:25:41 -04:00
Zach Daniel
055d20e930
fix: ensure nested form names are remapped on remove form
2024-04-23 10:14:38 -04:00
Zach Daniel
66ef3e5db8
fix: ensure nested forms included as params when adding forms get proper names
2024-04-22 11:00:35 -04:00
Zach Daniel
40b3f63dd3
fix: handle unions on initial form creation
...
closes #154
2024-04-19 14:29:26 +01:00
Robert Graff
676015a6b7
fix: always include domain on add_form ( #157 )
2024-04-18 02:51:46 +01:00
Jinkyou Son
742df54da0
docs: Fix typo in doc for AshPhoenix.Form.add_form/3 ( #153 )
2024-04-17 07:49:46 +01:00
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
d7155040f4
fix: ensure domain is passed down to all child forms
2024-04-11 21:50:32 -04:00
Zach Daniel
1f511de8ca
improvement: add error hints for NoFormConfigured
errors
2024-04-11 18:47:31 -04:00
Zach Daniel
925ff65b2e
fix: handle cases where changesets/queries are not returned with errors
2024-04-05 14:58:23 -04:00
Zach Daniel
79092e8123
chore: format
2024-04-04 14:05:39 -04:00
Zach Daniel
0d606e9948
fix: undo the change of not returning hidden fields
...
this caused issues with setting ids for related entities. Instead,
we tell each changeset/query that they can ignore any unknown inputs
2024-04-04 14:03:20 -04:00
Zach Daniel
fa1eba47c5
chore: fix warnings
2024-03-28 19:59:01 -04:00
Zach Daniel
bca5a2dcf8
chore: update templates
2024-03-28 19:52: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
f657d0e462
fix: handle destroy that only affects join resource in auto forms
...
fixes #143
2024-03-19 09:43:59 -04:00
Emad Shaaban
124267d448
fix: properly fetch refetch_window from config ( #141 )
2024-03-15 18:25:44 -04:00
Minsub Kim
ab28a4dc06
fix: fix params/1 typespec ( #140 )
2024-03-12 21:49:51 -04:00
Zach Daniel
99a3a4915f
fix: get casted values from form (requires Ash 2.20+)
2024-03-11 12:35:44 -04:00
Zach Daniel
ecc8ee8246
fix: properly fetch nested form values
2024-03-07 09:25:59 -05:00
Pierre Le Gall
b92b04c77f
improvement: #133 use resource defined Api ( #134 )
2024-02-21 10:07:17 -05:00
Rebecca Le
3726d07ee2
fix: the API is defined on the form, not on the form.source ( #131 )
2024-02-05 21:30:08 -05:00
Zach Daniel
8ccbed8f06
chore: draw the rest of the owl on ensure_can_submit
2024-02-05 19:58:57 -05:00
Zach Daniel
7d9c876e41
improvement: add can_submit?/1
and ensure_can_siubmit!/1
2024-02-05 19:53:02 -05:00
Zach Daniel
6c21c613d3
fix: validate destroy forms properly
2024-02-04 10:56:22 -05:00
Zach Daniel
0f3a0c7542
improvement: add add_error/3
2024-01-22 10:44:09 -05:00
Zach Daniel
4afb10473e
chore: format
2024-01-21 13:06:16 -05:00
Zach Daniel
c5c1a23514
feat: update to latest phoenix_html
2024-01-21 13:00:44 -05:00
KingdomCoder
4df9a007b4
fix: new_params replaced with updated changeset_params ( #129 )
2024-01-17 08:09:09 -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
e297a1889c
fix: List.wrap data in list case
2024-01-12 11:47:16 -05:00
Zach Daniel
7360ff066e
fix: validate action type when constructing forms
...
closes #125
2024-01-05 10:13:37 -05:00
Zach Daniel
fceed874e6
fix: remove system added error vars to ensure deduplication works properly
2023-12-28 15:42:47 -05:00
Zach Daniel
78b80b3530
fix: ensure next page is detected for offset pages w/ more?: true
2023-12-18 20:25:01 -05:00
Robert Graff
580be7e13e
chore: remove IO.inspect ( #121 )
2023-11-30 12:22:25 -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
c292848c57
improvement: properly return nested errors with for_path: :all
2023-11-28 15:54:30 -05:00
Zach Daniel
6ddddf7316
improvement: properly get invalid values provided to forms
2023-11-27 19:48:02 -05:00
Darren Black
1df8b7be1b
docs: update filter form doco ( #116 )
2023-11-13 15:26:53 -05:00
Henricus Louwhoff
6f8a53b606
fix: remove multiple attribute from select for one_of fields ( #115 )
...
This removes the 'multiple' attribute from the select input in case the field is an atom field with the `one_of` option set.
2023-11-13 13:41:25 -05:00
Zach Daniel
459dca3dfe
improvement: make generators more consistent
2023-10-24 10:22:24 -04:00
Stefan Wintermeyer
18fa99259e
improvement: ash_phoenix.gen.html generator ( #112 )
2023-10-16 18:17:22 -04:00