diff --git a/.circleci/config.yml b/.circleci/config.yml index 876b8de3..18451f03 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,53 +2,54 @@ version: 2.1 orbs: gh: circleci/github-cli@2.2.0 jobs: - update-nvrf: - docker: - - image: cimg/base:stable - environment: - URL: https://www.eac.gov/sites/default/files/eac_assets/1/6/Federal_Voter_Registration_ENG.pdf - NVRF_FILE_NAME: Federal_Voter_Registration_ENG.pdf - NEW_BRANCH_NAME: upload-nvrf-pdf - steps: - #Install gh - - gh/install - - run: - name: Git Clone and Config - command: | - GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone -b "update-nvrf-pdf" "$CIRCLE_REPOSITORY_URL" - cd vote-gov-nvrf-app - git config user.email "circleci@df52e93b2563.(none)" - git config user.name "Pipeline Commit" - - run: - name: Fetch NVRF from eac.gov - command: | - curl -o Federal_Voter_Registration_ENG.pdf $URL - #Save pdf as an artifact - - store_artifacts: - path: Federal_Voter_Registration_ENG.pdf - destination: /pdf-files - # Create a variable to store the PDF artifact - - run: - name: Replace current NVRF - command: | - cd vote-gov-nvrf-app - artifacts=$(curl -X GET "https://circleci.com/api/v2/project/github/usagov/vote-gov-nvrf-app/$CIRCLE_BUILD_NUM/artifacts" \ - -H "Accept: application/json" \ - -u "$NVRF_PDF_WRITE:") - echo "read -r -d '' STORED_ARTIFACTS \<< 'EOF_ARTIFACTS'" >> $BASH_ENV - echo "$artifacts" >> $BASH_ENV - echo "EOF_ARTIFACTS" >> $BASH_ENV - cd public/files - rm $NVRF_FILE_NAME - echo $STORED_ARTIFACTS > $NVRF_FILE_NAME - - run: - name: Create Pull Request - shell: /bin/bash - command: | - cd vote-gov-nvrf-app - echo $NVRF_PDF_WRITE | tee /tmp/key.txt - gh auth login --with-token < /tmp/key.txt - gh pr create --title "Update NVRF PDF" --body "Upload the new NVRF PDF from eac.gov. This is an automated job from CircleCI" || true +# turning off job until review of pdf can be done + # update-nvrf: + # docker: + # - image: cimg/base:stable + # environment: + # URL: https://www.eac.gov/sites/default/files/eac_assets/1/6/Federal_Voter_Registration_ENG.pdf + # NVRF_FILE_NAME: Federal_Voter_Registration_ENG.pdf + # NEW_BRANCH_NAME: upload-nvrf-pdf + # steps: + # #Install gh + # - gh/install + # - run: + # name: Git Clone and Config + # command: | + # GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git clone -b "update-nvrf-pdf" "$CIRCLE_REPOSITORY_URL" + # cd vote-gov-nvrf-app + # git config user.email "circleci@df52e93b2563.(none)" + # git config user.name "Pipeline Commit" + # - run: + # name: Fetch NVRF from eac.gov + # command: | + # curl -o Federal_Voter_Registration_ENG.pdf $URL + # #Save pdf as an artifact + # - store_artifacts: + # path: Federal_Voter_Registration_ENG.pdf + # destination: /pdf-files + # # Create a variable to store the PDF artifact + # - run: + # name: Replace current NVRF + # command: | + # cd vote-gov-nvrf-app + # artifacts=$(curl -X GET "https://circleci.com/api/v2/project/github/usagov/vote-gov-nvrf-app/$CIRCLE_BUILD_NUM/artifacts" \ + # -H "Accept: application/json" \ + # -u "$NVRF_PDF_WRITE:") + # echo "read -r -d '' STORED_ARTIFACTS \<< 'EOF_ARTIFACTS'" >> $BASH_ENV + # echo "$artifacts" >> $BASH_ENV + # echo "EOF_ARTIFACTS" >> $BASH_ENV + # cd public/files + # rm $NVRF_FILE_NAME + # echo $STORED_ARTIFACTS > $NVRF_FILE_NAME + # - run: + # name: Create Pull Request + # shell: /bin/bash + # command: | + # cd vote-gov-nvrf-app + # echo $NVRF_PDF_WRITE | tee /tmp/key.txt + # gh auth login --with-token < /tmp/key.txt + # gh pr create --title "Update NVRF PDF" --body "Upload the new NVRF PDF from eac.gov. This is an automated job from CircleCI" || true cypress-testing: docker: - image: cypress/included:cypress-13.3.0-node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1 @@ -70,13 +71,14 @@ workflows: main-workflow: jobs: - cypress-testing - update-nvrf-workflow: - jobs: - - update-nvrf - triggers: - - schedule: - cron: '0 0 * * 5' - filters: - branches: - only: - - stage \ No newline at end of file +# turning off job until review of pdf can be done + # update-nvrf-workflow: + # jobs: + # - update-nvrf + # triggers: + # - schedule: + # cron: '0 0 * * 5' + # filters: + # branches: + # only: + # - stage \ No newline at end of file diff --git a/data/es/Federal_Voter_Registration_es.pdf b/data/es/Federal_Voter_Registration_es.pdf new file mode 100644 index 00000000..5a855823 Binary files /dev/null and b/data/es/Federal_Voter_Registration_es.pdf differ diff --git a/data/es/navigation.json b/data/es/navigation.json index 52805433..ea0a7fc4 100644 --- a/data/es/navigation.json +++ b/data/es/navigation.json @@ -1,7 +1,5 @@ { "back": { - "vote": "Go back to Vote.gov", - "select_state": "Go back to select your state", "state_reg_options": "Go back to state registration options", "eligibility_req": "Back to state eligibility requirements", "reg_options": "Back to registration options", @@ -11,13 +9,13 @@ "edit_info": "Edit registration information" }, "next": { - "next": "Next", "start": "Continue to the digital form filler on vote.gov", "reg_options": "Continue to view registration options", "address_location": "Continue to address and location", "identification": "Continue to identification", "political_party": "Continue to political party", - "confirm_info": "Continue to review your information" + "confirm_info": "Continue to review your information", + "delivery": "Confirm and continue" }, "step_label_1": "Personal information", "step_label_2": "Address and location", diff --git a/data/es/strings.json b/data/es/strings.json index 10aecfe0..d5216ae9 100644 --- a/data/es/strings.json +++ b/data/es/strings.json @@ -1,33 +1,18 @@ { "notRequired": "Not required for your state", - "newWindow": "Go to your state's PDF form in a new tab", "newTab": "Print your mail-in form in a new tab", "nameChange": "I have legally changed my name since I last registered in this state.", - "dob": "Date of Birth", "month": "Month", "day": "Day", "year": "Year", - "stateName": "Go to the PDF form on @state_name's website", - "checkReg": "Check your registration", - "checkRegWY": "Find your local office to check your registration", - "learnMore": "Learn more about your voting options", - "backBtn": "Back to Vote.gov", "backIcon": "back arrow icon", "forwardIcon": "forward arrow icon", - "stateOnlineName": "Register on @state_name's website", - "confirm": "Confirm and continue", "selectState": "Select your state or territory", "selectStateAriaLabel": "State selection dropdown menu", "lastUpdated": "@state_name information last updated ", - "privacyPolicy": "Privacy policy", - "extlink": "External link opens new window", "emailLabel": "Voter Contact", - "emailHint": "For example: email@address.com", "select": "- Select -", "download": "Download your mail-in form", - "downloadText": "If form does not open in a new tab you can download using the option below.", "mailDeadlineLabel": "Mail-in registration deadline:", - "inPersonBtn": "Learn more on @state_name's election website", - "inPersonBtnWY": "Find in-person registration locations", "idSelectionAriaLabel": "Choose identification type" } \ No newline at end of file diff --git a/data/navigation.json b/data/navigation.json index 52805433..ea0a7fc4 100644 --- a/data/navigation.json +++ b/data/navigation.json @@ -1,7 +1,5 @@ { "back": { - "vote": "Go back to Vote.gov", - "select_state": "Go back to select your state", "state_reg_options": "Go back to state registration options", "eligibility_req": "Back to state eligibility requirements", "reg_options": "Back to registration options", @@ -11,13 +9,13 @@ "edit_info": "Edit registration information" }, "next": { - "next": "Next", "start": "Continue to the digital form filler on vote.gov", "reg_options": "Continue to view registration options", "address_location": "Continue to address and location", "identification": "Continue to identification", "political_party": "Continue to political party", - "confirm_info": "Continue to review your information" + "confirm_info": "Continue to review your information", + "delivery": "Confirm and continue" }, "step_label_1": "Personal information", "step_label_2": "Address and location", diff --git a/data/strings.json b/data/strings.json index 10aecfe0..d5216ae9 100644 --- a/data/strings.json +++ b/data/strings.json @@ -1,33 +1,18 @@ { "notRequired": "Not required for your state", - "newWindow": "Go to your state's PDF form in a new tab", "newTab": "Print your mail-in form in a new tab", "nameChange": "I have legally changed my name since I last registered in this state.", - "dob": "Date of Birth", "month": "Month", "day": "Day", "year": "Year", - "stateName": "Go to the PDF form on @state_name's website", - "checkReg": "Check your registration", - "checkRegWY": "Find your local office to check your registration", - "learnMore": "Learn more about your voting options", - "backBtn": "Back to Vote.gov", "backIcon": "back arrow icon", "forwardIcon": "forward arrow icon", - "stateOnlineName": "Register on @state_name's website", - "confirm": "Confirm and continue", "selectState": "Select your state or territory", "selectStateAriaLabel": "State selection dropdown menu", "lastUpdated": "@state_name information last updated ", - "privacyPolicy": "Privacy policy", - "extlink": "External link opens new window", "emailLabel": "Voter Contact", - "emailHint": "For example: email@address.com", "select": "- Select -", "download": "Download your mail-in form", - "downloadText": "If form does not open in a new tab you can download using the option below.", "mailDeadlineLabel": "Mail-in registration deadline:", - "inPersonBtn": "Learn more on @state_name's election website", - "inPersonBtnWY": "Find in-person registration locations", "idSelectionAriaLabel": "Choose identification type" } \ No newline at end of file diff --git a/index.html b/index.html index af18576a..c9f5bd28 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,21 @@
+ + + + + @@ -11,6 +26,10 @@ + + +