Skip to content

Commit

Permalink
Merge pull request #29 from input-output-hk/NPG-8784
Browse files Browse the repository at this point in the history
feat: Add sensitive info confirmation for PoA submission.
  • Loading branch information
coire1 authored Jul 15, 2024
2 parents 61caeb9 + 30ae1e0 commit feb4f6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion milestone-tracker-frontend/src/components/forms/NewPoa.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ const initialSchema = computed(() => {
label: t('new_poa.content'),
help: t('new_poa.content_help'),
validations: yup.string().test('len', t('validations.text_required'), HTMLNotEmpty)
},
no_sensitive_info: {
type: 'checkbox',
label: t('new_poa.no_sensitive_info'),
help: t('new_poa.no_sensitive_info_help'),
validations: yup.boolean().oneOf([true], t('new_poa.no_sensitive_validation'))
}
}
})
Expand All @@ -77,7 +83,7 @@ let SchemaForm = SchemaFormFactory([
const handleCreatePoa = async () => {
submitting.value = true
const response = await createPoa({
...formData.value,
content: formData.value.content,
current: true,
proposal_id: props.proposal.id,
challenge_id: props.proposal.challenge_id,
Expand Down
3 changes: 3 additions & 0 deletions milestone-tracker-frontend/src/locales/messages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export default {
reset: "Reset",
content: "Content",
content_help: "Please describe the Proof of Achievement, including links to resources (if any). Remember that the PoA has to satisfy the \"Outputs\", the \"Acceptance Criteria\" and the \"Evidence of Milestone Completion\" indicated in the Milestone.",
no_sensitive_info: "Please confirm that the content you are submitting does not contain any sensitive info.",
no_sensitive_info_help: "The PoA submission is public and any information submitted here will become publicly available. For this reason and sensitive info (e.g. personal info by third parties) must not be uploaded here.",
no_sensitive_validation: "This confirmation is mandatory."
},
poas: {
title: "Proof of Achievement",
Expand Down

0 comments on commit feb4f6f

Please sign in to comment.