Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(EMS-3611): declaration - Anti-bribery code of conduct version update #2824

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
import { SHARED } from '../shared';
import { LINKS } from '../../../../links';

const HINT = {
INTRO: 'If no, your attention is drawn to',
LINK: {
TEXT: 'Ministry of Justice guidance',
HREF: LINKS.EXTERNAL.BRIBERY_ACT_2010_GUIDANCE,
},
};

const ANSWER_YES_REVEAL = {
TEXT: "We will email you after you submit your application (also known as a 'proposal') to request your anti-bribery code of conduct.",
};

export const ANTI_BRIBERY_CODE_OF_CONDUCT = {
VERSIONS: [
{
VERSION: 1,
VERSION: '1',
abhi-markan marked this conversation as resolved.
Show resolved Hide resolved
...SHARED,
PAGE_TITLE:
'Do you have in place a code of conduct and written procedures of the type contemplated by Section(2) of the Bribery Act to discourage and prevent corrupt activity?',
HINT: {
INTRO: 'If no, your attention is drawn to',
LINK: {
TEXT: 'Ministry of Justice guidance',
HREF: LINKS.EXTERNAL.BRIBERY_ACT_2010_GUIDANCE,
},
},
ANSWER_YES_REVEAL: {
TEXT: "We will email you after you submit your application (also known as a 'proposal') to request your anti-bribery code of conduct.",
},
HINT,
ANSWER_YES_REVEAL,
},
{
VERSION: '2',
...SHARED,
PAGE_TITLE:
'Do you have in place a code of conduct and written procedures of the type contemplated by Section 7(2) of the Bribery Act to discourage and prevent corrupt activity?',
HINT,
ANSWER_YES_REVEAL,
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { INSURANCE_ROUTES } from '../../../../../../../constants/routes/insuranc

const { taskList } = partials.insurancePartials;

const CONTENT_STRINGS = PAGES.INSURANCE.DECLARATIONS.ANTI_BRIBERY_CODE_OF_CONDUCT.VERSIONS[0];
const CONTENT_STRINGS = PAGES.INSURANCE.DECLARATIONS.ANTI_BRIBERY_CODE_OF_CONDUCT.VERSIONS[1];

const {
ROOT: INSURANCE_ROOT,
Expand Down
4 changes: 2 additions & 2 deletions src/api/.keystone/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/api/constants/declarations/versions/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('api/constants/declarations/versions', () => {
HOW_YOUR_DATA_WILL_BE_USED: '1',
},
{
ANTI_BRIBERY: '1',
ANTI_BRIBERY_CODE_OF_CONDUCT: '1',
ANTI_BRIBERY: '2',
ANTI_BRIBERY_CODE_OF_CONDUCT: '2',
ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT: '1',
CONFIDENTIALITY: '1',
CONFIRMATION_AND_ACKNOWLEDGEMENTS: '1',
Expand Down
4 changes: 2 additions & 2 deletions src/api/constants/declarations/versions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const DECLARATION_VERSIONS = [
HOW_YOUR_DATA_WILL_BE_USED: '1',
},
{
ANTI_BRIBERY: '1',
ANTI_BRIBERY_CODE_OF_CONDUCT: '1',
ANTI_BRIBERY: '2',
ANTI_BRIBERY_CODE_OF_CONDUCT: '2',
ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT: '1',
CONFIDENTIALITY: '1',
CONFIRMATION_AND_ACKNOWLEDGEMENTS: '1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('server/constants/declarations/get-latest-declarations', () => {
const expected = {
CONFIDENTIALITY: CONFIDENTIALITY.VERSIONS[0],
ANTI_BRIBERY: ANTI_BRIBERY.VERSIONS[1],
ANTI_BRIBERY_CODE_OF_CONDUCT: ANTI_BRIBERY_CODE_OF_CONDUCT.VERSIONS[0],
ANTI_BRIBERY_CODE_OF_CONDUCT: ANTI_BRIBERY_CODE_OF_CONDUCT.VERSIONS[1],
ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT: ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT.VERSIONS[0],
CONFIRMATION_AND_ACKNOWLEDGEMENTS: CONFIRMATION_AND_ACKNOWLEDGEMENTS.VERSIONS[0],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('server/constants/declarations/versions', () => {
},
{
ANTI_BRIBERY: '2',
ANTI_BRIBERY_CODE_OF_CONDUCT: '1',
ANTI_BRIBERY_CODE_OF_CONDUCT: '2',
ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT: '1',
CONFIDENTIALITY: '1',
CONFIRMATION_AND_ACKNOWLEDGEMENTS: '1',
Expand Down
2 changes: 1 addition & 1 deletion src/ui/server/constants/declarations/versions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const DECLARATION_VERSIONS = [
},
{
ANTI_BRIBERY: '2',
ANTI_BRIBERY_CODE_OF_CONDUCT: '1',
ANTI_BRIBERY_CODE_OF_CONDUCT: '2',
ANTI_BRIBERY_EXPORTING_WITH_CODE_OF_CONDUCT: '1',
CONFIDENTIALITY: '1',
CONFIRMATION_AND_ACKNOWLEDGEMENTS: '1',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
import { SHARED } from '../shared';
import { LINKS } from '../../../../links';

const HINT = {
INTRO: 'If no, your attention is drawn to',
LINK: {
TEXT: 'Ministry of Justice guidance',
HREF: LINKS.EXTERNAL.BRIBERY_ACT_2010_GUIDANCE,
},
};

const ANSWER_YES_REVEAL = {
TEXT: "We will email you after you submit your application (also known as a 'proposal') to request your anti-bribery code of conduct.",
};

export const ANTI_BRIBERY_CODE_OF_CONDUCT = {
VERSIONS: [
{
VERSION: '1',
...SHARED,
PAGE_TITLE:
'Do you have in place a code of conduct and written procedures of the type contemplated by Section(2) of the Bribery Act to discourage and prevent corrupt activity?',
HINT: {
INTRO: 'If no, your attention is drawn to',
LINK: {
TEXT: 'Ministry of Justice guidance',
HREF: LINKS.EXTERNAL.BRIBERY_ACT_2010_GUIDANCE,
},
},
ANSWER_YES_REVEAL: {
TEXT: "We will email you after you submit your application (also known as a 'proposal') to request your anti-bribery code of conduct.",
},
HINT,
ANSWER_YES_REVEAL,
},
{
VERSION: '2',
...SHARED,
PAGE_TITLE:
'Do you have in place a code of conduct and written procedures of the type contemplated by Section 7(2) of the Bribery Act to discourage and prevent corrupt activity?',
HINT,
ANSWER_YES_REVEAL,
},
],
};
Loading