Commit Graph

548 Commits

Author SHA1 Message Date
Dillon Kearns
0b05b5c03c Use higher precedence for matching on hiddenKind. 2022-08-24 08:17:56 -07:00
Dillon Kearns
255cd8c6a4 Update form parsing logic with new server form parsers. 2022-08-23 15:38:10 -07:00
Dillon Kearns
a106496052 Update tests to use new combined forms type. 2022-08-23 15:12:42 -07:00
Dillon Kearns
eccd3d2998 Delete unused duplicate file. 2022-08-09 11:40:16 -07:00
Dillon Kearns
426d42b0bf Fix errors. 2022-08-08 10:49:43 -07:00
Dillon Kearns
a0477a0441 Remove redundant functions. 2022-08-03 10:11:41 +02:00
Dillon Kearns
32c451fe82 Remove obsolete function. 2022-08-03 09:52:51 +02:00
Dillon Kearns
fb8e23e5b6 Change argument order. 2022-07-25 15:15:45 +02:00
Dillon Kearns
d234d7d9b7 Review fixes. 2022-07-24 21:33:03 +02:00
Dillon Kearns
9834fe00ec Fix test errors. 2022-07-24 21:03:38 +02:00
Dillon Kearns
f1f25f787e Rename types. 2022-07-24 21:00:47 +02:00
Dillon Kearns
f84be86bcc Fix error. 2022-07-24 20:43:04 +02:00
Dillon Kearns
6757b27ea4 Rename types. 2022-07-24 20:20:05 +02:00
Dillon Kearns
ea22871b65 Change Validation type to support constraints for named fields with new design. 2022-07-24 15:06:07 +02:00
Dillon Kearns
c853df574b Rename functions. 2022-07-24 09:21:55 +02:00
Dillon Kearns
b4c26d5401 Rename functions. 2022-07-24 09:14:48 +02:00
Dillon Kearns
0c4e76c247 Rename functions. 2022-07-24 09:12:31 +02:00
Dillon Kearns
c37eb3668e Rename functions. 2022-07-24 09:11:12 +02:00
Dillon Kearns
02c5a7a613 Rename type. 2022-07-24 09:08:15 +02:00
Dillon Kearns
30cbc970de Remove unused. 2022-07-24 09:04:15 +02:00
Dillon Kearns
320374cee7 Migrate use of old Form type. 2022-07-23 20:29:03 +02:00
Dillon Kearns
7c843b714f Migrate test case. 2022-07-23 20:20:22 +02:00
Dillon Kearns
c31f1b43ed Migrate a test case. 2022-07-23 20:16:32 +02:00
Dillon Kearns
fc6d544558 Migrate more tests. 2022-07-23 11:12:23 +02:00
Dillon Kearns
93e2afc158 Migrate more test cases. 2022-07-23 08:51:24 +02:00
Dillon Kearns
0e2ab10e50 Migrate some test cases. 2022-07-23 08:48:44 +02:00
Dillon Kearns
1a588ed576 Fix tests. 2022-07-09 08:30:13 -07:00
Dillon Kearns
169bf18561 Rename some WIP function names. 2022-07-09 08:03:02 -07:00
Dillon Kearns
102d27c84b Update docs. 2022-07-08 18:00:30 -07:00
Dillon Kearns
8ce539a3a3 Rename module. 2022-07-08 17:56:52 -07:00
Dillon Kearns
76d2ac367f Change module name. 2022-07-08 17:51:26 -07:00
Dillon Kearns
0275c296d3 Get fields from queryParams in Request.formData. 2022-07-05 09:56:27 -07:00
Dillon Kearns
86890804e4 Review fix. 2022-07-02 09:04:51 -07:00
Dillon Kearns
5f148bf277 Run dead-code elimination for Route Modules' action function in addition to data function. 2022-06-30 12:24:01 -07:00
Dillon Kearns
325004f3fc Try removing symlink. 2022-06-30 11:56:13 -07:00
Dillon Kearns
e5e9f8211a Update elm-test and elm-test-rs, and remove redundant describe in test. 2022-06-30 11:42:49 -07:00
Dillon Kearns
1b52b4a15c Remove NonEmpty type reference to see if it fixes CI error. 2022-06-30 10:54:24 -07:00
Dillon Kearns
c2bff93c8e Fix review errors. 2022-06-30 10:15:33 -07:00
Dillon Kearns
44c2b0a6f5 Apply fixes. 2022-06-30 09:54:25 -07:00
Dillon Kearns
7ca1b4178f Remove obosolete Form API in favor of new API. 2022-06-30 08:18:53 -07:00
Dillon Kearns
3e78e1deea Add time of day picker field. 2022-06-29 09:16:51 -07:00
Dillon Kearns
8ea702f4e7 Update examples. 2022-06-28 15:45:36 -07:00
Dillon Kearns
dfb9a81761 Fix tests. 2022-06-28 14:30:41 -07:00
Dillon Kearns
b82602e18f Add Validation.withErrorIf helper. 2022-06-27 10:24:34 -07:00
Dillon Kearns
b6d03955bc Fix test failure. 2022-06-25 15:38:15 -07:00
Dillon Kearns
669bc2e53f Run dependent validations even if an individual field fails so that you can have more fine-grained control over dependent errors. 2022-06-25 14:30:31 -07:00
Dillon Kearns
9713e2f637 Add helper to fail dependent parser. 2022-06-23 10:48:50 -07:00
Dillon Kearns
5e9492d45a Use new validated min/max field attributes in place of obsolete non-validated versions. 2022-06-23 10:29:28 -07:00
Dillon Kearns
6928e0cbbe Add minlength and maxlength. 2022-06-23 10:07:27 -07:00
Dillon Kearns
fabbec5d80 Add float field. 2022-06-23 09:36:22 -07:00
Dillon Kearns
7a655336f1 Add checked min/max field helpers. 2022-06-23 09:14:27 -07:00
Dillon Kearns
1830425a12 Add required int tests. 2022-06-23 07:41:55 -07:00
Dillon Kearns
b5b3296b05 Add some date parsing tests. 2022-06-23 07:22:48 -07:00
Dillon Kearns
fb1d6c5430 Fix optional int parsing for empty case. 2022-06-22 16:32:26 -07:00
Dillon Kearns
bd840d289f Add a field tests module. 2022-06-22 16:26:32 -07:00
Dillon Kearns
89278009be Fix tests. 2022-06-22 16:11:52 -07:00
Dillon Kearns
58c7a84038 Add basic prototype for dependent form parsing. 2022-06-20 14:20:39 -07:00
Dillon Kearns
0e682cba4b Rename module. 2022-06-18 10:34:55 -07:00
Dillon Kearns
d5b6c5bd47 Rename module. 2022-06-18 10:29:41 -07:00
Dillon Kearns
9b5a1871b3 Rename function. 2022-06-18 10:02:59 -07:00
Dillon Kearns
814794db19 Rename some types. 2022-06-18 10:01:36 -07:00
Dillon Kearns
3e44e8eccc Add test case for non-matching password confirmation. 2022-06-18 09:52:54 -07:00
Dillon Kearns
df16cf19fc Allow form parser combining function to do dependent field errors. 2022-06-18 08:44:57 -07:00
Dillon Kearns
c653bad6a4 Remove unused. 2022-06-17 09:34:04 -07:00
Dillon Kearns
04ff00414e Add initial setup for <select> form input. 2022-06-15 11:48:24 -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
7a289700df Use form field defined in Field module. 2022-06-10 11:21:39 -07:00
Dillon Kearns
3c0bce5769 Include field errors in FormParser view function. 2022-06-09 09:54:48 -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
a8de3da635 Use new approach for form proof-of-concept API. 2022-06-06 13:20:10 -07:00
Dillon Kearns
cfad541029 Update form parser API. 2022-06-03 07:23:26 -07:00
Dillon Kearns
bd98bdb095 Add prototype for form parser. 2022-06-02 11:30:15 -07:00
Dillon Kearns
16e78e8f31 Remove obsolete test case. 2022-05-11 15:53:51 -07:00
Dillon Kearns
ec40fa4740 Ensure that ActionData is exposed. 2022-05-11 15:52:15 -07:00
Dillon Kearns
cd049aaebb Fix some test errors. 2022-05-11 15:49:04 -07:00
Dillon Kearns
6a464f4418 Fix form tests. 2022-05-11 15:37:18 -07:00
Dillon Kearns
8ce0e08efa Fix hardcoded value in non-matching expectFormPost message. 2022-04-07 09:24:32 -07:00
Dillon Kearns
089db1378e Update examples. 2022-04-05 08:28:56 -07:00
Dillon Kearns
8dc986d60d Fix test error. 2022-04-04 16:48:09 -07:00
Dillon Kearns
d50846cf9b Check for exposed head function in NoContractViolations. 2022-03-31 09:17:49 -07:00
Dillon Kearns
14bee8d395 Fix test. 2022-03-31 09:17:33 -07:00
Dillon Kearns
339d54a9e9 Update examples to use ErrorPage, and add to NoContractViolations. 2022-03-29 15:32:43 -07:00
Dillon Kearns
2b8e923a30 Add annotation in test. 2022-03-25 10:42:00 -07:00
Dillon Kearns
5f183c5f89 Review fixes. 2022-03-25 10:36:09 -07:00
Dillon Kearns
91a084266f Fix Request.Parser errors for content-type mismatch. 2022-03-25 10:25:14 -07:00
Dillon Kearns
97424df15a Fix test. 2022-03-25 10:17:24 -07:00
Dillon Kearns
019b1a3242 Fix test error. 2022-03-25 10:16:08 -07:00
Dillon Kearns
f5e2b511a0 Report contract violation errors for missing exposed types and values for core modules. 2022-03-24 16:10:35 -07:00
Dillon Kearns
a6870989a1 Report missing core modules in NoContractViolations review check. 2022-03-24 15:18:28 -07:00
Dillon Kearns
58ba422c2a Fix test compilation error. 2022-03-24 10:04:12 -07:00
Dillon Kearns
4424929c0c Review fixes. 2022-03-11 11:52:33 -08:00
Dillon Kearns
717d1a8a2a Use module name lookup table to make sure RouteBuilder references are caught whether or not it is aliased/unqualified. 2022-03-11 11:29:57 -08:00
Dillon Kearns
8c87da2d04 Fix tests. 2022-03-09 09:50:34 -08:00
Dillon Kearns
9fe97c7b9a Update elm-review codemod and contract enforcer with new route naming. 2022-03-09 09:48:48 -08:00
Dillon Kearns
d1829d6cd1 Move Request Parser definition to internal package-opaque type. 2022-03-09 09:29:11 -08:00
Dillon Kearns
8911ef9bb3 Rename Server.Request.Request -> Server.Request.Parser. 2022-03-08 08:57:46 -08:00
Dillon Kearns
f16a30320d Rename Page.elm -> RouteBuilder.elm. 2022-03-05 09:50:01 -08:00
Dillon Kearns
18666e18be Update error messages and internal naming in no contract violations rule. 2022-03-05 09:40:23 -08:00