Skip to content

Releases: hmrc/gform-frontend

0.1845.0

17 Dec 12:40
1e239b7
Compare
Choose a tag to compare

Release : gform-frontend 0.1845.0

Last commit sha : 1e239b7
Last commit author : Dursun Gundogan
Last commit time : 2024-12-17T12:23:06Z

GFORMS-3069 - Production/Accessibility PDF issue- org.xml.sax.SAXPars… (#2350)

0.1844.0

17 Dec 09:27
810d5f4
Compare
Choose a tag to compare

Release : gform-frontend 0.1844.0

Last commit sha : 810d5f4
Last commit author : Carl Manson
Last commit time : 2024-12-17T09:14:26Z

GFORMS-2360 - Specify list of page IDs to revisit on form component data change (#2352)

  • GFORMS-2360 - Add ability to specify page ids to display again on change of field

  • GFORMS-2360 - Refactor revisit code

  • GFORMS-2360 - Added tests

{
"_id": "gforms2360",
"formName": "Redisplay calculations",
"description": "",
"version": 1,
"authConfig": {
"authModule": "hmrc"
},
"sections": [
{
"type": "addToList",
"title": "Tax years",
"shortName": "Tax year $n",
"summaryDescription": "${taxYear}",
"summaryName": "Tax year costs",
"description": "Tax year $n",
"presentationHint": "invisiblePageTitle",
"addAnotherQuestion": {
"id": "addAnotherTaxYear",
"type": "choice",
"label": "Do you want to add another tax year?",
"labelSize": "s",
"format": "yesno",
"errorMessage": "Select yes if you want to add another tax year"
},
"pages": [
{
"title": "What tax year?",
"fields": [
{
"id": "taxYear",
"shortName": "Tax year",
"type": "choice",
"choices": [
"2023",
"2024",
"2025"
]
}
]
},
{
"title": "How many passengers?",
"fields": [
{
"id": "passengers",
"shortName": "Passengers",
"type": "text",
"format": "positiveWholeNumber",
"pageIdsToDisplayOnChange": [
"calculationPage"
]
}
]
},
{
"title": "What rate was paid?",
"fields": [
{
"id": "rate",
"shortName": "Rate paid",
"type": "text",
"format": "positiveSterling",
"pageIdsToDisplayOnChange": [
"calculationPage",
"passengersPage"
]
}
]
},
{
"title": "Calculation",
"id": "calculationPage",
"fields": [
{
"id": "calculation",
"type": "info",
"label": "",
"infoText": "Amount owed - ${rate * passengers}",
"infoType": "noformat"
}
]
}
]
},
{
"title": "How many exempt passengers?",
"presentationHint": "invisiblePageTitle",
"fields": [
{
"id": "passengersExempt",
"shortName": "Exempt passengers",
"type": "text",
"format": "positiveWholeNumber",
"pageIdsToDisplayOnChange": [
"passengersPage"
]
}
]
},
{
"title": "Total passengers",
"id": "passengersPage",
"fields": [
{
"id": "totalPassengers",
"type": "info",
"label": "",
"infoText": "Total passengers - ${passengersExempt + passengers.sum}",
"infoType": "noformat"
}
]
},
{
"title": "Some extra page",
"fields": [
{
"id": "value",
"shortName": "Extra value",
"type": "text",
"format": "positiveSterling"
}
]
}
],
"acknowledgementSection": {
"title": "Confirmation page ",
"fields": []
},
"destinations": [
{
"id": "transitionToSubmitted",
"type": "stateTransition",
"requiredState": "Submitted"
}
]
}

  • GFORMS-2360 - Fix tests after rebase

0.1843.0

17 Dec 09:15
2829d2e
Compare
Choose a tag to compare

Release : gform-frontend 0.1843.0

Last commit sha : 2829d2e
Last commit author : Dursun Gundogan
Last commit time : 2024-12-17T09:03:24Z

GFORMS-3071 - Summary lists for miniSummaryList, summarySection and c… (#2351)

0.1842.0

16 Dec 10:35
23dfdcd
Compare
Choose a tag to compare

Release : gform-frontend 0.1842.0

Last commit sha : 23dfdcd
Last commit author : Josef Vlach
Last commit time : 2024-12-16T10:17:26Z

GFORMS-3005 - Refactor SectionNumber to be more predictable (#2331)

0.1833.3

13 Dec 11:46
c416a7a
Compare
Choose a tag to compare

Release : gform-frontend 0.1833.3

Last commit sha : c416a7a
Last commit author : Josef Vlach
Last commit time : 2024-12-12T17:33:43Z

GFORMS-3073 - Smart strings are not playing back correctly in tables with alternate values based on includeIf expression (#2349)

{
"_id": "multi-value-string-issue",
"formName": "Multi value string issue",
"description": "Multi value string issue",
"version": 1,
"emailTemplateId": "dynamicEmail_confirmation",
"authConfig": {
"authModule": "anonymous"
},
"sections": [
{
"title": "Enter amount",
"fields": [
{
"id": "amount",
"type": "text",
"format": "number",
"value": "${'123'}"
}
]
},
{
"title": [
{
"en": "Table"
}
],
"fields": [
{
"id": "gformTable",
"summaryValue": [
{
"en": "X"
}
],
"type": "table",
"label": [
{
"en": "Header row and Value row must be equal"
}
],
"header": [
{
"en": "${amount}, ${amount}, ${amount}, ${amount}"
}
],
"rows": [
{
"values": [
{
"value": [
{
"en": "${'Foo'} ${'Bar'} ${'Baz'}",
"includeIf": "${1 = 2}"
},
{
"en": "${amount}, ${amount}, ${amount}, ${amount}"
}
]
}
]
}
]
}
]
}
],
"acknowledgementSection": {
"fields": []
},
"destinations": [
{
"id": "transitionToSubmitted",
"type": "stateTransition",
"requiredState": "Submitted"
}
]
}

0.1833.2

13 Dec 10:09
e1ffa22
Compare
Choose a tag to compare

Release : gform-frontend 0.1833.2

Last commit sha : e1ffa22
Last commit author : Dursun Gundogan
Last commit time : 2024-12-13T09:41:06Z

add cavrtemplatescultureupdates

0.1841.0

12 Dec 17:45
adc13fe
Compare
Choose a tag to compare

Release : gform-frontend 0.1841.0

Last commit sha : adc13fe
Last commit author : Josef Vlach
Last commit time : 2024-12-12T17:33:43Z

GFORMS-3073 - Smart strings are not playing back correctly in tables with alternate values based on includeIf expression (#2349)

{
"_id": "multi-value-string-issue",
"formName": "Multi value string issue",
"description": "Multi value string issue",
"version": 1,
"emailTemplateId": "dynamicEmail_confirmation",
"authConfig": {
"authModule": "anonymous"
},
"sections": [
{
"title": "Enter amount",
"fields": [
{
"id": "amount",
"type": "text",
"format": "number",
"value": "${'123'}"
}
]
},
{
"title": [
{
"en": "Table"
}
],
"fields": [
{
"id": "gformTable",
"summaryValue": [
{
"en": "X"
}
],
"type": "table",
"label": [
{
"en": "Header row and Value row must be equal"
}
],
"header": [
{
"en": "${amount}, ${amount}, ${amount}, ${amount}"
}
],
"rows": [
{
"values": [
{
"value": [
{
"en": "${'Foo'} ${'Bar'} ${'Baz'}",
"includeIf": "${1 = 2}"
},
{
"en": "${amount}, ${amount}, ${amount}, ${amount}"
}
]
}
]
}
]
}
]
}
],
"acknowledgementSection": {
"fields": []
},
"destinations": [
{
"id": "transitionToSubmitted",
"type": "stateTransition",
"requiredState": "Submitted"
}
]
}

0.1840.0

12 Dec 14:09
ba16e27
Compare
Choose a tag to compare

Release : gform-frontend 0.1840.0

Last commit sha : ba16e27
Last commit author : Jonathan-Courage
Last commit time : 2024-12-12T13:56:47Z

GFORMS-3062 Update stencils to newer versions provided on email chain (#2347)

0.1839.0

10 Dec 14:57
391417a
Compare
Choose a tag to compare

Release : gform-frontend 0.1839.0

Last commit sha : 391417a
Last commit author : jmartinhmrc
Last commit time : 2024-12-10T14:44:40Z

GFORMS-3052 - Allow employments dataRetrieve to work in addToList and… (#2342)

  • GFORMS-3052 - Allow employments dataRetrieve to work in addToList and for a year selected from a choice. Form template example:
    {
    "_id": "add-to-list-dynamic-employments",
    "formName": "Task list",
    "description": "",
    "version": 1,
    "emailTemplateId": "eeitt_submission_confirmation",
    "authConfig": {
    "authModule": "hmrc"
    },
    "sections": [
    {
    "type": "addToList",
    "title": "Tax years",
    "shortName": "Tax year $n",
    "summaryDescription": "Item $n",
    "summaryName": "Tax year costs",
    "description": "Item $n",
    "addAnotherQuestion": {
    "id": "addAnotherTaxYear",
    "type": "choice",
    "label": "Do you want to add another tax year?",
    "labelSize": "s",
    "format": "yesno",
    "errorMessage": "Select yes if you want to add another tax year"
    },
    "pages": [
    {
    "title": "What tax year?",
    "fields": [
    {
    "id": "taxYearChoiceAtl",
    "type": "choice",
    "choices": [
    {
    "en": "2024",
    "value": "2024"
    },
    {
    "en": "2023",
    "value": "2023"
    }
    ]
    }
    ],
    "dataRetrieve": [
    {
    "type": "employments",
    "id": "individualsEmploymentsAtl",
    "parameters": {
    "nino": "${auth.payenino}",
    "taxYear": "${taxYearChoiceAtl}"
    }
    }
    ]
    },
    {
    "title": "Which employer are you requesting a recalculation for?",
    "shortName": "Employer",
    "fields": [
    {
    "id": "employerAtl",
    "type": "choice",
    "errorMessage": "Select the employment you are requesting a recalculation for",
    "shortName": "Employment for NICs recalculation",
    "dividerPosition": "NONE",
    "choices": [
    {
    "en": "${dataRetrieve.individualsEmploymentsAtl.employerName}",
    "dynamic": "dataRetrieve.individualsEmploymentsAtl.employerName",
    "hint": "Your payroll ID for this job: ${dataRetrieve.individualsEmploymentsAtl.worksNumber}",
    "value": "EMP"
    },
    {
    "en": "None of the above",
    "value": "NONE"
    }
    ]
    }
    ]
    }
    ]
    }
    ],
    "acknowledgementSection": {
    "title": "Confirmation page ",
    "fields": []
    },
    "destinations": [
    {
    "id": "transitionToSubmitted",
    "type": "stateTransition",
    "requiredState": "Submitted"
    }
    ]
    }

  • GFORMS-3052 - Reuse addPrefixToString in expandOptionDataDynamicDataRetrieveCtx

0.1833.1

10 Dec 10:44
2fd8895
Compare
Choose a tag to compare

Release : gform-frontend 0.1833.1

Last commit sha : 2fd8895
Last commit author : Dursun Gundogan
Last commit time : 2024-12-09T14:29:54Z

GFORMS-3063 - Fix rendering of invisible component's value in table w…