Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the ability to submit electronic (Quicker Sign) signatures from the (react) client. This also adjust the gating for the
SyncManifestBtn
,RcraApiUserBtn
and the newQuickerSignModalBtn
. The Quicker Sign Form has default values of the user's username and the current date. (however, we may consider remove the default username since we want the signature to be an intention action.We also need to add front end validation for the QuickerSignForm.
The following general rules apply for the above buttons
SyncManifestBtn
there must be a siteId to sync toRcraApiUserBtn
the user's profile must haveapiUser
set to true in the redux store (in thier RcraProfile)QuickerSignModalBtn
the manifest must be in either"Scheduled"
"InTransit"
"ReadyForSignature"
4.for
QuickerSignModalBtn
In addition, thesigned
property for the relevantManifestHandler
must be falsedisabled
prop is passed astrue
then the button should be disabled.This PR fixes the above gating criteria for when the button can be used and also fixes the serializer
signed
property on theManifestHandlerSerializer
.Issue ticket number and link
relevant to #412
Checklist
Other Stuff