Commit graph

160 commits

Author SHA1 Message Date
Zach Daniel
4c013819d0 fix: synthetically cast attributes in read forms
fix: raise explicitly on non-existent action
2022-05-09 15:45:57 -04:00
Zach Daniel
728df80432 improvement: remove more managed relationship context
improvement: set a _form error field
2022-05-04 03:02:12 -04:00
Zach Daniel
6b1223b7f8 improvement: removed source changesets as they are gone from ash
improvement: add destroy_action/destroy_resource for forms
2022-05-04 02:08:13 -04:00
kernel-io
66a1b4002f
improvement: fix & clarify logic in do_decode_path/4 (#35) 2022-04-29 23:20:54 -04:00
kernel-io
3829807631
improvement: handle nil paths in do_decode_path/4 (#34) 2022-04-29 22:48:07 -04:00
kernel-io
37d02e20cb
improvement: use Map.get instead of direct key access (#33)
Co-authored-by: kernel-io <git@omnium.co>
Co-authored-by: Zach Daniel <zachary.s.daniel@gmail.com>
2022-04-25 12:24:46 -04:00
Zach Daniel
367e893598 fix: bad key access in keep_live 2022-04-06 21:58:52 -04:00
Zach Daniel
9de0ff8778 improvement: support data option on add_form 2022-03-22 16:54:10 -04:00
Zach Daniel
89db16968d fix: show hidden fields for read actions 2022-03-21 22:42:34 -04:00
Zach Daniel
a8223ecc09 fix: add pkey ids as params when creating read forms from data 2022-03-21 22:34:50 -04:00
Zach Daniel
f5357b5af4 fix: track data properly for reads generated from data 2022-03-21 22:24:19 -04:00
Zach Daniel
c7bf6ee272 fix: handle read_actions with data 2022-03-21 22:05:05 -04:00
Zach Daniel
82933c6bfa Revert "Revert "fix: fetch data for read_actions as well""
This reverts commit 922f11c815.
2022-03-21 21:52:53 -04:00
Zach Daniel
922f11c815 Revert "fix: fetch data for read_actions as well"
This reverts commit 1234071dfe.
2022-03-21 21:31:32 -04:00
Zach Daniel
1234071dfe fix: fetch data for read_actions as well 2022-03-21 21:18:23 -04:00
Zach Daniel
be10fb666e improvement: add after_fetch option to keep_live 2022-03-20 20:31:43 -04:00
Zach Daniel
2104ec8850 fix: don't create forms unnecessarily 2022-02-17 14:57:10 -05:00
Zach Daniel
f400a9fc1f fix: properly restrict errors to the current form 2022-01-14 19:06:47 -05:00
Zach Daniel
6f011a55fe chore: update tests/docs 2021-12-28 22:30:06 -05:00
Frank Dugan III
e1f0e66f23
fix: Fix logic for change detection of boolean defaults (#31) 2021-12-21 21:34:10 -05:00
Zach Daniel
b590e8ff72 fix: check for operators first
improvement: don't return ids by default
2021-12-06 14:17:30 -05:00
Zach Daniel
b8fae705a5 fix: properly set nested names 2021-12-06 01:13:40 -05:00
Zach Daniel
2b44ee50d5 chore: fix compiler warning 2021-12-06 01:07:20 -05:00
Zach Daniel
724b0defc2 fix: allow the as option to be set 2021-12-06 01:05:47 -05:00
Zach Daniel
6e21815628 improvement: better default name, just use ids elsewhere 2021-12-06 00:30:00 -05:00
Zach Daniel
076d9fe356 fix: properly set params on validate 2021-12-05 21:51:35 -05:00
Zach Daniel
6f9bc82895 fix: set proper form ids and names 2021-12-05 21:17:26 -05:00
Zach Daniel
4c4ca71609 fix: support only predicate in params 2021-12-05 20:24:08 -05:00
Zach Daniel
332046e824 improvement: to_filter -> to_filter_expression 2021-12-02 16:41:04 -05:00
Zach Daniel
9671841bf6 fix: don't make operators externally, only %Call{} structs 2021-12-02 15:58:22 -05:00
Zach Daniel
8ee53e4bfc improvement: better sanitized parameters
improvement: add params_for_query
2021-12-02 12:52:14 -05:00
Zach Daniel
0687568299 improvement: expose paths for filters
improvement: simple error handling patterns for filter forms
2021-12-02 03:12:18 -05:00
Zach Daniel
a61a7763cc chore: release version v0.6.0-rc.0 2021-12-01 15:28:59 -05:00
Zach Daniel
6e26f89fd1 feat: new FilterForm for building forms to produce Ash.Filters 2021-12-01 15:28:38 -05:00
Zach Daniel
dcc7edfaa7 WIP on filter_form 2021-11-29 21:40:46 -05:00
Zach Daniel
0d6a20ff5f fix: typo on checking if errors are set to the same value as before 2021-11-12 22:10:33 -05:00
Zach Daniel
1fe82efd04 chore: add a test trying to reproduce an issue
chore: update locked version of ash
2021-11-10 15:11:22 -05:00
Zach Daniel
b2fa924bbf fix: pass matcher in correct argument position 2021-11-09 02:25:46 -05:00
Zach Daniel
80777883f8 improvement: support custom matcher experimental 2021-11-09 02:17:11 -05:00
Zach Daniel
3f3c83dfa4 improvement: don't rebuild a form when params haven't changed 2021-11-08 17:26:24 -05:00
Zach Daniel
4eabe074af improvement: use existing forms on validate, instead of rebuilding 2021-11-08 04:47:12 -05:00
Zach Daniel
a8b6a7d1e5 improvement: enrich but also simplify changed? behavior 2021-11-06 14:12:53 -04:00
Zach Daniel
3c56731aae improvement: add a .changed? field 2021-11-06 12:15:50 -04:00
Zach Daniel
be5c0de5f1 fix: fix some error transforming logic 2021-10-21 18:42:09 -04:00
Zach Daniel
8f5b0f9df7 fix: forms now receive an error if no nested path matches the error path 2021-10-21 18:13:33 -04:00
kernel-io
ed062a3007
bugfix: fix typo (#28) 2021-10-16 22:08:03 -04:00
Zach Daniel
5326b2d198 fix: ensure transform_errors is never unset
improvement: always pass errors to `transform_errors/2`
2021-09-30 15:24:46 -04:00
kernel-io
eacf05487b
improvement: improve typespec on errors/2 (#27)
Co-authored-by: kernel-io <git@omnium.co>
2021-09-30 15:24:40 -04:00
Zach Daniel
d6f5f3266f fix: only include primary key's in hidden 2021-09-15 12:55:23 -04:00
Zach Daniel
d707fc3884 improvement: work on LiveView being available for regular sockets
fix: don't show hidden primary keys
2021-09-14 17:17:21 -04:00