Skip to content

Commit

Permalink
Merge branch 'staging' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
krischarbonneau committed Jul 5, 2024
2 parents 51536ab + 08d2f69 commit f254ec5
Show file tree
Hide file tree
Showing 14 changed files with 411 additions and 2,454 deletions.
8 changes: 8 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'

template: |
## Changes
$CHANGES
24 changes: 24 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Drafter

on:
push:
branches:
- main
workflow_dispatch:

jobs:
update_release_draft:
runs-on: ubuntu-latest
permissions:
# Write permission is required to create a github release
contents: write
# Write permission is required for autolabeler
pull-requests: write
steps:
- uses: release-drafter/release-drafter@v6
with:
name: next
tag: next
version: next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 0 additions & 13 deletions .github/workflows/release-please.yml

This file was deleted.

3 changes: 3 additions & 0 deletions __mocks__/utils.mock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { TextEncoder, TextDecoder } from 'util'

Object.assign(global, { TextDecoder, TextEncoder })

// for testing locally comment.
// process.env.AUTH_DISABLED= "true"
106 changes: 0 additions & 106 deletions __tests__/pages/privacy-notice-terms-conditions.test.js

This file was deleted.

58 changes: 39 additions & 19 deletions components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,25 +199,45 @@ export default function Layout(props) {
refPageAA={props.refPageAA}
/>

<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
<script type="text/javascript">_satellite.pageBottom();</script>
{process.env.ENVIRONMENT === 'production' ? (
<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
) : (
<Footer
lang={!props.locale ? 'en' : props.locale}
brandLinks={[
{
href: t.footerTermsAndConditionDevURL,
id: 'linkTC',
text: t.footerTermsAndCondition,
},
{
href: t.footerPrivacyDevURL,
id: 'linkPR',
text: t.footerPrivacy,
},
]}
contactLink={contactLink}
btnLink="#top"
id="page-footer"
/>
)}
</>
)
}
Expand Down
80 changes: 0 additions & 80 deletions cypress/e2e/termsConditions.cy.js

This file was deleted.

10 changes: 8 additions & 2 deletions locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,18 @@ export default {
footerAboutURL: 'https://www.canada.ca/en/government/about.html',
footerAbout: 'About Canada.ca',

footerTermsAndConditionDevURL:
'https://srv241-s2.sade.hrdc-drhc.gc.ca/ecas-seca/rascl_ii/SCL/TC.aspx?mode=ReadOnly&lang=eng',
footerTermsAndConditionURL:
'/privacy-notice-terms-conditions#termsAndConditions',
'https://srv136.services.gc.ca/ecas-seca/rascl/SCL/TC.aspx?mode=ReadOnly&lang=eng',

footerTermsAndCondition: 'Terms and conditions',
footerTermsAndConditionAnchor: 'termsAndConditions',

footerPrivacyURL: '/privacy-notice-terms-conditions',
footerPrivacyDevURL:
'https://srv241-s2.sade.hrdc-drhc.gc.ca/ecas-seca/rascl_ii/SCL/TC.aspx?mode=ReadOnly&lang=eng',
footerPrivacyURL:
'https://srv136.services.gc.ca/ecas-seca/rascl/SCL/TC.aspx?mode=ReadOnly&lang=eng',
footerPrivacy: 'Privacy',
footerPrivacyAnchor: 'privacy',

Expand Down
9 changes: 7 additions & 2 deletions locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ export default {
footerAboutURL: 'https://www.canada.ca/en/government/about.html',
footerAbout: 'À propos de Canada.ca',

footerTermsAndConditionDevURL:
'https://srv241-s2.sade.hrdc-drhc.gc.ca/ecas-seca/rascl_ii/SCL/TC.aspx?mode=ReadOnly&lang=fra',
footerTermsAndConditionURL:
'/fr/avis-confidentialite-modalites#termesEtConditions',
'https://srv136.services.gc.ca/ecas-seca/rascl/SCL/TC.aspx?mode=ReadOnly&lang=fra',
footerTermsAndCondition: 'Avis',
footerTermsAndConditionAnchor: 'termesEtConditions',

footerPrivacyURL: '/fr/avis-confidentialite-modalites/',
footerPrivacyDevURL:
'https://srv241-s2.sade.hrdc-drhc.gc.ca/ecas-seca/rascl_ii/SCL/TC.aspx?mode=ReadOnly&lang=fra',
footerPrivacyURL:
'https://srv136.services.gc.ca/ecas-seca/rascl/SCL/TC.aspx?mode=ReadOnly&lang=fra',
footerPrivacy: 'Confidentialité',
footerPrivacyAnchor: 'confidentialité',

Expand Down
4 changes: 0 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ const REWRITES = [
source: '/contactez-nous/communiquer-regime-pensions-canada',
destination: '/contact-us/contact-canada-pension-plan',
},
{
source: '/avis-confidentialite-modalites',
destination: '/privacy-notice-terms-conditions',
},
{
source: '/demande-revision',
destination: '/decision-reviews',
Expand Down
Loading

0 comments on commit f254ec5

Please sign in to comment.