dpc-sdp / ripple

Ripple is the frontend framework for Single Digital Presence, delivered using Nuxt and Vue.js
Apache License 2.0
61 stars 37 forks source link

[SDPAP-7052] add support for new back end response notes #1269

Closed lambry closed 1 year ago

lambry commented 1 year ago

Motivation and Context

JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-7052

Changed

  1. Add support for new back end response notes; i.e. status and response message

As the back-end won't be returning a real status code we need to parse it out of a notes field, we could potential move this logic up out of the the vue component, so that postForm returns data and extra info like status instead of just the data. I'm not sure there's any "custom" work that relies on the current API though (https://github.com/dpc-sdp/ripple/blob/develop/packages/ripple-nuxt-tide/modules/webform/mixins/index.js#L11).

Screenshots

form-notes

How Has This Been Tested?

REF: https://app.pr-1269.ripple.sdp4.sdp.vic.gov.au/esta-forms-testing

Types of changes

Checklist