Closed jkuester closed 7 months ago
Thanks for taking this on. Reminder to npm version patch
before merging
@kennsippell what is the release process here? I pushed the version change to the package.json
as suggested, but I did not actually push the git tag (I assume we want the tag on master
and not on 249_time_input
).
Should I merge this PR and then someone (aka you) will handle actually tagging the release and publishing it on NPM?
@jkuester I've merged and published. Pretty ghetto. I literally just run npm publish
. Pursuing improvements in https://github.com/medic/cht-conf-test-harness/issues/237 but no progress in a long while.
:tada: This PR is included in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Fixes https://github.com/medic/cht-conf-test-harness/issues/249
I think this was probably a bug introduced in
3.0
(with the new Enekto changes) since I cannot re-create the behavior in2.4.3
. My guess is that Enekto added some extra logic to its time widget around localization (and apparently changed thetype
value). I did a side-by-side comparison between2.4.3
andmaster
and confirmed that a form question that had the typetime
in2.4.3
was now coming back with the typetext
inmaster
.So, I have gone ahead and removed our special handling for the
time
type inform-filler.js
and instead updated thetext
type handling to support filling out the time widget. This code is closely related to the datetime widget. As a helpful reference, here is the form HTML you get for a datetime widget:And here is the HTML you get for just a time widget: