All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
v1.2.5 (2023-01-28)
- support latest ash
v1.2.4 (2023-01-18)
-
properly clear value in Form.clear_value/2 (#66)
-
handle raised errors when comparing values
-
ensure that params is always a map in Phoenix.HTML.Form
-
update to new ash docs patterns
-
accept multiple fields in
AshPhoenix.Form.clear_value/2
(#67) -
add
to_filter_map/1
to filter_form
v1.2.3 (2022-12-21)
- update to latest ash and resolve warning
-
add
clear_value/1
-
add update_forms_at_path/4
and
touch/2` -
get rid of phoenix compiler
v1.2.2 (2022-12-15)
-
small logic bug when setting param value
-
transform params before providing them for a field value
- add
prepare_source
option for seeding changesets
v1.2.1 (2022-12-05)
- add more exceptions to plug exceptions
v1.2.0 (2022-11-30)
- add custom HTTP status codes for specific types of errors that can be thrown (#62)
v1.1.2 (2022-10-31)
- properly honor
value_is_key
option
v1.1.1 (2022-10-28)
- properly retain sorting of list forms
v1.1.0 (2022-10-17)
-
specify
@derive
in proper place -
infinite loop in inspect
- update to Ash 2.0
v1.1.0-rc.3 (2022-10-10)
-
handle
%Phoenix.HTML.Form{}
inputs in some cases -
require
%AshPhoenix.Form{}
inputs in some cases -
carry over negated on validate for groups
v1.1.0-rc.2 (2022-10-07)
-
populate hidden fields from server-side form by default
-
don't sanitize arguments out of predicate form
-
change filter form value even if value doesn't match
-
select first public attribute as field when remapping path
-
update_predicate correctly handles existing predicate
-
nested groups have correct form names (#54)
-
support calculation arguments in FilterForm
-
clear filter form value when field changes
-
add
update
anddestroy
types toadd_form
v1.1.0-rc.1 (2022-09-28)
- properly synthesize nested action errors
v1.1.0-rc.0 (2022-09-27)
- append predicate path w/ field when relationship (#53)
-
support latest phoenix/surface
-
support latest phoenix
v1.0.0-rc.1 (2022-09-21)
-
only impl Phoenix.HTML.Safe if it hasn't already been
-
argument mismatch when calling handle_forms (#50)
-
call
get_function/3
-
update to latest ash
-
support latest ash
-
decimal protocols (#51)
v0.7.7 (2022-08-22)
-
remove typo from new transform_params logic
-
shore up missing cases around transform_params
-
mark forms updated with
update_form/4
as touched by default
-
unlock unnecessary deps
-
update to latest ash
-
support non-map type nested forms
v0.7.6-rc.0 (2022-08-15)
- handle errors in form change tracking
v0.7.5 (2022-08-13)
-
properly parse string paths in
FilterForm
-
don't stringify form value
-
add
update_predicate/3
-
pass must load opts when building auto forms
v0.7.4 (2022-08-10)
- reuse opts when validating before submit
- add
merge_options
andupdate_options
v0.7.3 (2022-08-09)
-
ensure auto forms have unique keys
-
always merge join form, add
fields
-
pass
matcher
down in nested validation -
deduplicate form keys
-
when validating, use empty starting point for forms
-
include forms when !touched_forms
-
keep
added?
on validate -
set changed after add and remove form
-
handle case where certain actions are not present
-
properly call destroy action with changeset
-
Fix validate_opts when single form (#44)
-
pass error state down to nested forms properly
-
ensure list forms are always
[]
after remove_form -
add opts to
for_action
inadd_form
-
update to latest ash
-
fix typespecs on form submit
-
warn on unhandled errors by default
-
merge _join forms
-
add fields list to join form
-
helper functions around ignoring forms
-
allow forms to be ignored
-
trialing treating all form parameters as strings for keys/values
-
pass generated form params in when validating
-
add
read_one?
option to submit -
track and submit only touched fields by default
-
add
set_params
option -
add
filter
option toparams/2
-
add api_opts to submit
-
add
validate_opts
toadd/remove_form
v0.7.2-rc.2 (2022-06-29)
-
include forms when !touched_forms
-
keep
added?
on validate -
set changed after add and remove form
-
handle case where certain actions are not present
-
properly call destroy action with changeset
-
Fix validate_opts when single form (#44)
-
pass error state down to nested forms properly
-
ensure list forms are always
[]
after remove_form -
add opts to
for_action
inadd_form
-
helper functions around ignoring forms
-
allow forms to be ignored
-
trialing treating all form parameters as strings for keys/values
-
pass generated form params in when validating
-
add
read_one?
option to submit -
track and submit only touched fields by default
-
add
set_params
option -
add
filter
option toparams/2
-
add api_opts to submit
-
add
validate_opts
toadd/remove_form
v0.7.2-rc.1 (2022-05-23)
-
properly call destroy action with changeset
-
Fix validate_opts when single form (#44)
-
pass error state down to nested forms properly
-
ensure list forms are always
[]
after remove_form -
add opts to
for_action
inadd_form
- add
validate_opts
toadd/remove_form
v0.7.2-rc.0 (2022-05-17)
-
validate after adding/removing forms
-
don't remove a form unless one exists
-
raise error on non-existant resource for api
-
respect touched forms in params generation (#37)
-
explicitly set
as
andid
in matched form -
sequence manually matched forms
- add
produce
option toparams
v0.7.1 (2022-05-09)
-
synthetically cast attributes in read forms
-
raise explicitly on non-existent action
-
bad key access in
keep_live
-
show hidden fields for read actions
-
add pkey ids as params when creating read forms from data
-
track data properly for reads generated from data
-
handle read_actions with data
-
fetch data for read_actions as well
-
remove more managed relationship context
-
set a _form error field
-
removed source changesets as they are gone from ash
-
add destroy_action/destroy_resource for forms
-
fix & clarify logic in do_decode_path/4 (#35)
-
handle nil paths in do_decode_path/4 (#34)
-
use Map.get instead of direct key access (#33)
-
support
data
option onadd_form
-
add
after_fetch
option to keep_live
v0.7.0 (2022-03-17)
v0.6.0-rc.7 (2022-02-17)
- don't create forms unnecessarily
v0.6.0-rc.6 (2022-01-18)
-
properly restrict errors to the current form
-
Fix logic for change detection of boolean defaults (#31)
-
check for operators first
-
properly set nested names
-
allow the
as
option to be set -
properly set params on validate
-
don't return ids by default
-
better default name, just use ids elsewhere
v0.6.0-rc.5 (2021-12-06)
-
set proper form ids and names
-
support only predicate in params
v0.6.0-rc.4 (2021-12-02)
to_filter
->to_filter_expression
v0.6.0-rc.3 (2021-12-02)
- don't make operators externally, only
%Call{}
structs
v0.6.0-rc.2 (2021-12-02)
-
better sanitized parameters
-
add params_for_query
v0.6.0-rc.1 (2021-12-02)
-
expose paths for filters
-
simple error handling patterns for filter forms
v0.6.0-rc.0 (2021-12-01)
- new
FilterForm
for building forms to produceAsh.Filter
s
v0.5.19-rc.2 (2021-11-13)
-
typo on checking if errors are set to the same value as before
-
pass matcher in correct argument position
- support custom matcher experimental
v0.5.19-rc.1 (2021-11-08)
- don't rebuild a form when params haven't changed
v0.5.19-rc.0 (2021-11-08)
- use existing forms on
validate
, instead of rebuilding
v0.5.18 (2021-11-06)
- enrich but also simplify
changed?
behavior
v0.5.17 (2021-11-06)
- add a
.changed?
field
v0.5.16 (2021-10-21)
-
fix some error transforming logic
-
forms now receive an error if no nested path matches the error path
v0.5.15 (2021-09-30)
- ensure
transform_errors
is never unset
-
always pass errors to
transform_errors/2
-
improve typespec on errors/2 (#27)
-
Allow Phoenix 1.6.0 (#25)
v0.5.14 (2021-09-15)
-
only include primary key's in hidden
-
don't show hidden primary keys
-
don't add forms for remaining data
- work on LiveView being available for regular sockets
v0.5.13 (2021-09-06)
- don't guess on data matches w/
sparse?: true
v0.5.12 (2021-09-06)
- handle forms for to_one relationships with data better
v0.5.11 (2021-09-01)
-
don't allow embeds to be sparse
-
remove sparse lists
-
don't fallback to list with index sort
-
only access
params["_touched"]
w/ map params -
don't check params in
get_changing_value/2
-
don't check params for attributes/arguments in
input_value/2
-
add phoenix_html 3.x to allowed deps (#24)
-
experimental
Form.params
options -
add
hidden
option to params -
implement error protocol for invalid relationship
-
undo some data tracking changes that didn't work
-
continue improving sparse forms
-
more work on sparse forms
-
track touched forms for saner removal cases
-
add
sparse?
option for list forms -
add auto options, including sparse forms and relationship_fetcher
v0.5.10 (2021-08-11)
-
if data was nilled, don't make a form with it
-
attempt to fix data removal for to_one relationships
- customize relationship fetcher (experimental)
v0.5.9 (2021-08-05)
- don't return NotLoaded from input_value
- add
Form.value/2
v0.5.8 (2021-08-01)
-
retain original data for form submission
-
update to latest ash
v0.5.7 (2021-07-23)
- fix type signature of
Form.errors/2
v0.5.6 (2021-07-23)
-
looser ash version requirement
-
add
Form.errors/2
, deprecateForm.errors_for/3
v0.5.5 (2021-07-21)
- don't consider
www.
as part of the host
v0.5.4 (2021-07-20)
- track data modifications and execute them again
v0.5.3 (2021-07-20)
-
only prepend to data when necessary
-
Fix remove form path when a nested single (#19)
-
Add form to single (#18)
-
actually reindex this time
-
reindex after remove form
- Improve error message when incorrect api configured for resource (#15)
v0.5.2 (2021-07-19)
- Fix nested form naming (#14)
v0.5.1 (2021-07-18)
-
set form aliases properly
-
ensure existing forms is a list before adding
- move
api
to initial form creation option
v0.5.0 (2021-07-18)
- refactor forms
v0.4.24 (2021-07-18)
-
Fix default form id when :as provided (#12)
-
various auto form fixes
-
always pass forms down
-
show forms on single
-
always List.wrap() forms
-
set manage_opts properly
-
don't set data unless necessary
-
Wrap single items on to_form (#8)
-
don't assume an empty map is an indexed map
-
alter behavior of
params
option to submit -
add
set_data/2
-
lots of improvements around errors
-
track submission states
-
add
AshPhoenix.update_form/3
-
id defaults to name
-
add
auto?: true
flag -
update to latest ash
-
add destroy error message
-
first edition of auto forms
-
refactor forms with new data structure
AshPhoenix.Form
(#6) -
add
use_data?
opt toadd_related
v0.4.23-rc.1 (2021-07-18)
-
various auto form fixes
-
always pass forms down
-
show forms on single
-
always List.wrap() forms
-
set manage_opts properly
-
don't set data unless necessary
-
Wrap single items on to_form (#8)
-
don't assume an empty map is an indexed map
-
lots of improvements around errors
-
track submission states
-
add
AshPhoenix.update_form/3
-
id defaults to name
-
add
auto?: true
flag -
update to latest ash
-
add destroy error message
-
first edition of auto forms
-
refactor forms with new data structure
AshPhoenix.Form
(#6) -
add
use_data?
opt toadd_related
v0.4.23-rc.0 (2021-07-15)
- don't assume an empty map is an indexed map
-
refactor forms with new data structure
AshPhoenix.Form
(#6) -
add
use_data?
opt toadd_related
v0.4.23 (2021-07-02)
- update to latest ash
v0.4.22-rc2 (2021-06-24)
v0.4.22-rc1 (2021-06-24)
-
use new ash type primitives
-
map_input_to_list on manage
-
understand indexed lists in relationship data
-
fix case where "lists" weren't properly added to
v0.4.22-rc0 (2021-06-24)
- use new ash type primitives
v0.4.21 (2021-05-14)
- use proper input params for embeds
v0.4.20 (2021-05-14)
- Regression in
AshPhoenix.add_to_path/3
ash-project#2
- add removed embeds to hidden fields
- various improvements to relationship manipulation functions
v0.4.19 (2021-05-13)
- support for to many rels as to_one manipulations
v0.4.18 (2021-05-10)
- track
manage_relationship_source
, as a utility
v0.4.17 (2021-05-10)
- ensure error message is always a string
v0.4.16 (2021-04-27)
- support embeds in relationships
v0.4.15 (2021-04-17)
- remove IO.inspect (facepalm)
v0.4.14 (2021-04-17)
- support proper nested embedded appends
v0.4.13 (2021-04-16)
- add
add_value/4
andremove_value/3
helpers
v0.4.12 (2021-04-14)
- check for managed relationship before embedded input
v0.4.11 (2021-04-06)
- handle empty error fields
- support invalid argument errors
v0.4.10 (2021-03-30)
-
fix remove from path with indices
-
append values to maps properly
v0.4.9 (2021-03-28)
- handle adding to array paths bettter
v0.4.8 (2021-03-28)
- add to path when is a map should be a list
v0.4.7 (2021-03-28)
- fix doubly nested forms and various other issues
- added various utility functions
v0.4.6 (2021-03-25)
- many fixes around relationship forms
v0.4.5 (2021-03-22)
- transform error order of operations
v0.4.4 (2021-03-22)
- set
impl
correctly
v0.4.3 (2021-03-21)
-
improve pagination helpers
-
update ash dep
v0.4.2 (2021-03-19)
- readability refactor + additional docs
v0.4.1 (2021-03-19)
- properly set params on related create changeset
v0.4.0 (2021-03-19)
- add initial support for relationships in
inputs_for
v0.3.2 (2021-03-17)
- bump ash version
v0.3.1 (2021-03-17)
-
remove
value
option -
don't render NotLoaded
v0.3.0 (2021-03-05)
-
support queries as form targets
-
new helpers in
AshPhoenix
-
various fixes
-
a whole new error paradigm
-
don't assume action is set
-
don't filter errors based on params
-
support latest ash version
v0.2.3 (2021-02-08)
-
add
params_only
for form helpers -
add
SubdomainPlug
v0.2.2 (2021-01-25)
- store changeset params in form
v0.2.1 (2021-01-24)
- better error messages
- support ci_string in html
v0.2.0 (2021-01-22)
- support arguments in changeset
-
support the latest ash
-
support arguments in form_data
v0.1.2 (2020-12-28)
- various improvements
v0.1.1 (2020-10-21)
v0.1.0 (2020-10-21)
-
general cleanup, ready for initial release
-
init
- setup project