Angus McLeod
a19a1fa3b1
Refactor wizard client and add tests
2022-06-15 08:03:38 +02:00
Faizaan Gagan
51553bc71d
FEATURE: validate liquid templates on wizard save ( #156 )
...
* DEV: validate liquid templates on wizard save
* minor fix
* code improvements and spec
* version bump
* fixed failing specs
* FIX: handle displaying backend validation errors on frontend
* fixed linting
* improved error display
* validate raw description for steps
* refactor conditional
* Identify attribute with liquid template error and pass syntax error
Co-authored-by: angusmcleod <angus@mcleod.org.au>
Co-authored-by: Angus McLeod <angusmcleod@users.noreply.github.com>
2022-01-31 15:11:14 +05:30
Angus McLeod
5e5b5e67ee
FIX: Cache valid directs and only allow one type in a template ( #176 )
...
* Cache valid directs and only allow one type in a template
* Add spec
* Bump version
* Bump version
* Exclude current wizard from other_after_signup
2022-01-31 14:48:04 +05:30
Faizaan Gagan
00682fb4c2
FIX: field validation was not working in backend ( #165 )
...
* FIX: field validation was not working in backend
* added tests
2021-12-07 14:20:34 +05:30
Faizaan Gagan
998757f857
FIX: apply text length validations for non-empty fields only ( #137 )
...
* apply text length validations for non-empty fields only
* consolidated logic
* fixed formatting
* fix formatting
* calculate length only for string type values
* fix assignment
* added specs
2021-07-30 16:03:48 +05:30
Faizaan Gagan
c9f90fb8ce
FIX: text length validation bug
2021-07-07 11:50:56 +05:30
Angus McLeod
f80f40d6b3
Apply consistent date validation on the server (using v8) ( #124 )
...
* Apply consistent date validation on the server (using v8)
* Variable fix
* added specs to verify date/time field validation
* minor text change
Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
2021-06-26 13:15:33 +05:30
Angus McLeod
4edb40e526
Apply rubcop and get tests pass ( #76 )
2021-03-11 12:00:15 +05:30
angusmcleod
5794349244
Ensure url field validates properly and accepts empty inputs
2021-02-20 17:59:41 +11:00
Faizaan Gagan
4f7d18d193
FEATURE: added max length setting for text type fields
2020-12-08 12:44:37 +05:30
Angus McLeod
8274884505
Remove step_template from field validator arguments
2020-11-30 11:05:52 +11:00
Angus McLeod
f31054f75d
Isolate and specify template and update validation
2020-11-26 14:05:50 +11:00