Skip to content

Commit c1be24c

Browse files
Cookie consent integration (#1124)
This integrates the new microbit.org-wide cookie consent approach. Mostly this is delegated to the deployment code, but the line between the two changes. New action added to the help menu so cookie settings can be revisited. The welcome dialog is delayed until after a cookie decision is made to avoid a clash of modals.
1 parent 27ef5fb commit c1be24c

29 files changed

+190
-64
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
PRODUCTION_CLOUDFRONT_DISTRIBUTION_ID: E2ELTBTA2OFPY2
2323
STAGING_CLOUDFRONT_DISTRIBUTION_ID: E2ELTBTA2OFPY2
2424
REVIEW_CLOUDFRONT_DISTRIBUTION_ID: E3267W09ZJHQG9
25+
REACT_APP_FOUNDATION_BUILD: ${{ github.repository_owner == 'microbit-foundation' }}
2526

2627
steps:
2728
# Note: This workflow disables deployment steps and micro:bit branding installation on forks.
@@ -35,7 +36,7 @@ jobs:
3536
- run: npm ci
3637
env:
3738
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
- run: npm install --no-save @microbit-foundation/python-editor-v3-microbit@0.1.0-dev.198 @microbit-foundation/[email protected] @microbit-foundation/[email protected] @microbit-foundation/circleci-npm-package-versioner@1
39+
- run: npm install --no-save @microbit-foundation/python-editor-v3-microbit@0.2.0-dev.18 @microbit-foundation/[email protected] @microbit-foundation/[email protected] @microbit-foundation/circleci-npm-package-versioner@1
3940
if: github.repository_owner == 'microbit-foundation'
4041
env:
4142
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lang/ui.ca.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "Alguna cosa ha anat malament. Baixa el teu fitxer hexadecimal per mantenir-lo segur i, a continuació, actualitza la pàgina per tornar-la a carregar.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "Copiat",
200204
"description": "Text shown after copy to clipboard"

lang/ui.en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "Something went wrong. Download your hex file for safe keeping, then refresh the page to reload.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "Copied",
200204
"description": "Text shown after copy to clipboard"

lang/ui.es-es.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "Algo salió mal. Por seguridad, descarga tu archivo HEX y actualiza la página para recargar.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "Copiado",
200204
"description": "Text shown after copy to clipboard"

lang/ui.fr.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "Une erreur est survenue. Téléchargez votre fichier hex pour ne pas le perdre, puis actualisez la page.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "Copié",
200204
"description": "Text shown after copy to clipboard"

lang/ui.ja.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "問題が発生しました。hex ファイルをダウンロードして、ページをリロードしてください。",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "コピーしました",
200204
"description": "Text shown after copy to clipboard"

lang/ui.ko.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "오류가 발생했습니다. hex 파일을 다운로드해 작업물을 보호하고 새로 고침으로 페이지를 다시 불러오세요.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "복사됨",
200204
"description": "Text shown after copy to clipboard"

lang/ui.nl.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "Er is iets fout gegaan. Download je hexadecimale bestand voor een veilige bewaring, ververs daarna de pagina om te herladen.",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "Gekopieerd",
200204
"description": "Text shown after copy to clipboard"

lang/ui.zh-cn.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "出错了。下载您的 hex 文件以便安全保存,然后刷新页面来重新加载。",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "已复制",
200204
"description": "Text shown after copy to clipboard"

lang/ui.zh-tw.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"defaultMessage": "發生錯誤。下載您的 HEX 檔案以便安全儲存,然後重新整理頁面來重新載入。",
196196
"description": "Text displayed when content fails to load"
197197
},
198+
"cookies-action": {
199+
"defaultMessage": "Cookies",
200+
"description": "Action to show dialog to choose website cookie preferences"
201+
},
198202
"copied": {
199203
"defaultMessage": "複製的",
200204
"description": "Text shown after copy to clipboard"

0 commit comments

Comments
 (0)