Commit Graph

4035 Commits

Author SHA1 Message Date
Dillon Kearns
aa9c1d09d7 Wire up properties and field types to field renderer. 2022-06-16 08:42:02 -07:00
Dillon Kearns
116e9b775d Fix initial value for checkbox event decoders. 2022-06-16 08:40:44 -07:00
Dillon Kearns
5b92530e29 Render checkboxes correctly. 2022-06-15 13:24:04 -07:00
Dillon Kearns
f742a1c5ae Add rendering logic for <select>. 2022-06-15 12:40:18 -07:00
Dillon Kearns
04ff00414e Add initial setup for <select> form input. 2022-06-15 11:48:24 -07:00
Dillon Kearns
082ba3e037 Update docs. 2022-06-15 09:25:49 -07:00
Dillon Kearns
145bc194ad Add edit page. 2022-06-15 09:11:55 -07:00
Dillon Kearns
c83e3bb957 Handle parsing multiple form shapes. 2022-06-14 16:49:02 -07:00
Dillon Kearns
061643eedc Add prototype for oneOf form parsing. 2022-06-14 11:17:17 -07:00
Dillon Kearns
cc81cf6bfb Fix test. 2022-06-14 09:42:59 -07:00
Dillon Kearns
4117e072ca Use initial values to parse preview of form data. 2022-06-14 09:27:48 -07:00
Dillon Kearns
9dc5a92671 Add form state to track whether submit was attempted and expose in form state. 2022-06-14 08:43:08 -07:00
Dillon Kearns
cb63a023b6 Update error message for smoothie not found page. 2022-06-14 07:49:35 -07:00
Dillon Kearns
ec64c146d8 Add smoothie update action. 2022-06-13 12:55:03 -07:00
Dillon Kearns
d2b794bfa5 Add edit screen. 2022-06-13 12:47:18 -07:00
Dillon Kearns
7f5e4f9266 Add new smoothie route. 2022-06-13 12:18:38 -07:00
Dillon Kearns
a35f51600a Don't add required error to field for unparseable values when the raw field value is non-empty. 2022-06-13 10:04:42 -07:00
Dillon Kearns
156c843926 Add way to provide default values from DataSource. 2022-06-12 16:03:34 -07:00
Dillon Kearns
68cfe7019f Add checkbox and int fields. 2022-06-12 08:34:04 -07:00
Dillon Kearns
a0f8585fd0 Extract some form rendering logic and add Field.withClientValidation. 2022-06-10 11:59:09 -07:00
Dillon Kearns
7a289700df Use form field defined in Field module. 2022-06-10 11:21:39 -07:00
Dillon Kearns
3ec9b2157e Fix condition for checking if there are errors in form request parser. 2022-06-10 09:40:21 -07:00
Dillon Kearns
d1bea1df35 Remove unused code. 2022-06-10 09:40:05 -07:00
Dillon Kearns
cb1226af8c Including transitioning state in form view context. 2022-06-10 07:23:06 -07:00
Dillon Kearns
071e0d6dd9 Add client-side errors to view. 2022-06-09 10:49:14 -07:00
Dillon Kearns
3c0bce5769 Include field errors in FormParser view function. 2022-06-09 09:54:48 -07:00
Dillon Kearns
79d03cf768 Wire up example with new form parser. 2022-06-09 09:08:26 -07:00
Dillon Kearns
c543da051b Provide field status in raw field. 2022-06-09 09:04:34 -07:00
Dillon Kearns
5a1555fb2c Update field status on events. 2022-06-09 09:03:39 -07:00
Dillon Kearns
10111e15a2 Update styles. 2022-06-09 09:03:23 -07:00
Dillon Kearns
5e9275ec4c Include a view function in form parser. 2022-06-08 08:37:36 -07:00
Dillon Kearns
4f5bbce442 Parse form data into more structure. 2022-06-08 07:23:21 -07:00
Dillon Kearns
33183024ad Remove Maybe from parsed fields. 2022-06-06 13:33:41 -07:00
Dillon Kearns
a8de3da635 Use new approach for form proof-of-concept API. 2022-06-06 13:20:10 -07:00
Dillon Kearns
9430c9a630 Add profile page. 2022-06-03 17:27:23 -07:00
Dillon Kearns
eed054a7b7 Add a SetField helper. 2022-06-03 17:20:18 -07:00
Dillon Kearns
e13f3def99 Use FormParser API in smoothies example. 2022-06-03 07:24:03 -07:00
Dillon Kearns
2e1fbf0fe7 Add some form parser helpers. 2022-06-03 07:23:44 -07:00
Dillon Kearns
cfad541029 Update form parser API. 2022-06-03 07:23:26 -07:00
Dillon Kearns
d133441cb7 Wire up prototype for client-side form state. 2022-06-02 11:32:35 -07:00
Dillon Kearns
bd98bdb095 Add prototype for form parser. 2022-06-02 11:30:15 -07:00
Dillon Kearns
fe3cd5fea8 Completed exercise. 2022-05-26 09:55:57 -07:00
Dillon Kearns
b26e281bab Update login logic. 2022-05-25 15:51:44 -07:00
Dillon Kearns
69e7a5b153 Add expectSessionData helper. 2022-05-25 14:30:09 -07:00
Dillon Kearns
1c485e95c2 Reset to initial starting point. 2022-05-25 10:18:02 -07:00
Dillon Kearns
ab8b747cb5 Extract some styles to css file. 2022-05-25 10:00:31 -07:00
Dillon Kearns
30133498d6 Use redirect helper. 2022-05-25 09:56:13 -07:00
Dillon Kearns
1e83fbe6db Remove circular import. 2022-05-25 09:50:10 -07:00
Dillon Kearns
414f192bed Move definition. 2022-05-25 09:29:31 -07:00
Dillon Kearns
71867fddb9 Extract function. 2022-05-25 09:28:50 -07:00