Skip to content

Commit

Permalink
Feedback: deprecating RAP and Page details 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Garneauma committed Nov 15, 2023
1 parent 21a50d9 commit c1bcd6a
Show file tree
Hide file tree
Showing 8 changed files with 350 additions and 231 deletions.
120 changes: 87 additions & 33 deletions _data/sites.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sites/feedback/feedback-docs-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title_section": "GCWeb (the Canada.ca theme in WET)",
"language": "en",
"altLangPage": "feedback-docs-fr.html",
"dateModified": "2023-08-28",
"dateModified": "2023-11-08",
"layout": "documentation",
"index_json": "index.json-ld",
"before_start_ajax_url": "dto-guidance-en.html #beforeYouBegin"
Expand Down
2 changes: 1 addition & 1 deletion sites/feedback/feedback-docs-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title_section": "GCWeb (le thème de Canada.ca dans la BOEW)",
"language": "fr",
"altLangPage": "feedback-docs-en.html",
"dateModified": "2023-08-28",
"dateModified": "2023-11-08",
"layout": "documentation",
"index_json": "index.json-ld",
"before_start_ajax_url": "dto-guidance-fr.html #beforeYouBegin"
Expand Down
59 changes: 31 additions & 28 deletions sites/feedback/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"modified": "2023-01-10",
"componentName": "feedback",
"status": "stable",
"version": "1.5",
"version": "2.0",
"pages": {
"docs": [
{
Expand Down Expand Up @@ -142,7 +142,7 @@
"en": "Report a problem (RAP)",
"fr": "Signaler un problème (SUP)"
},
"status": "stable",
"status": "deprecated",
"description": {
"en": "The Report a problem variation features an expand/collapse button with a list of checkboxes.",
"fr": "La variation Signaler un problème comporte un bouton développer/réduire avec une liste de cases à cocher."
Expand All @@ -158,12 +158,11 @@
"fr": { "href": "report-problem-fr.html", "text": "Signaler un problème" }
}
],
"implementation": [
"_:implement_rap",
"_:implement_rap_aa",
"_:implement_rap_gcweb"
],
"history": [
{
"en": "October 2023 - RAP status is now deprecated.",
"fr": "Octobre 2023 – SUP passe au statut obsolète."
},
{
"en": "August 2023 - Removed JSON Manager extraction for 'externalReferer' and 'subject'.",
"fr": "Août 2023 – Suppression de l’extraction via le Gestionnaire JSON pour « externalReferer » et « subject »."
Expand Down Expand Up @@ -224,7 +223,7 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "<div data-ajax-replace=\"ajax/report-problem-en.html\">\n\t<div class=\"row row-no-gutters\">\n\t\t<div class=\"col-sm-9 col-md-6 col-lg-5\">\n\t\t\t<a class=\"btn btn-default btn-block\" href=\"https://www.canada.ca/en/report-problem.html\">Report a problem on this page</a>\n\t\t</div>\n\t</div>\n</div>"
"code": "<div data-ajax-replace=\"ajax/report-problem-en.html\">\n\t<div class=\"row row-no-gutters\">\n\t\t<div class=\"col-sm-9 col-md-6 col-lg-5\">\n\t\t\t<a class=\"btn btn-default btn-block\" href=\"https://www.canada.ca/en/report-problem.html\">Report a problem on this page</a>\n\t\t</div>\n\t</div>\n</div>"
},
{
"@type": "source-code",
Expand All @@ -240,12 +239,12 @@
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "&lt;div data-ajax-replace=\"ajax/report-problem-en.html\"&gt;\n\t&lt;div class=\"row row-no-gutters\"&gt;\n\t\t&lt;div class=\"col-sm-9 col-md-6 col-lg-5\"&gt;\n\t\t\t&lt;a class=\"btn btn-default btn-block\" href=\"https://www.canada.ca/fr/signaler-probleme.html&quot;&gt;Signaler un problème sur cette page&lt;/a&gt;\n\t\t&lt;/div&gt;\n\t&lt;/div&gt;\n&lt;/div&gt;"
"code": "<div data-ajax-replace=\"ajax/report-problem-en.html\">\n\t<div class=\"row row-no-gutters\">\n\t\t<div class=\"col-sm-9 col-md-6 col-lg-5\">\n\t\t\t<a class=\"btn btn-default btn-block\" href=\"https://www.canada.ca/fr/signaler-probleme.html\">Signaler un problème sur cette page</a>\n\t\t</div>\n\t</div>\n</div>"
},
{
"@type": "source-code",
"collapsed": true,
"description": "Contenu ajouté via Ajax :",
"description": "Contenu ajouté via Ajax",
"code": {
"@type": [ "@id", "rdf:HTML" ],
"@value": "ajax/report-problem-fr.html"
Expand Down Expand Up @@ -278,14 +277,14 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "&lt;div class=\"checkbox\"&gt;\n\t&lt;label for=\"problem2\"&gt;\n\t\t&lt;input name=\"problem2\" id=\"problem2\" type=\"checkbox\" value=\"Yes\" <ins>data-gc-analytics-rap=\"It has a spelling mistake-Il y a une erreur d&apos;orthographe ou de grammaire\"</ins>&gt;It has a spelling mistake\n\t&lt;/label&gt;\n\t&lt;input name=\"problem2\" type=\"hidden\" value=\"\"&gt;\n&lt;/div&gt;"
"code": "<div class=\"checkbox\">\n\t<label for=\"problem2\">\n\t\t<input name=\"problem2\" id=\"problem2\" type=\"checkbox\" value=\"Yes\" data-gc-analytics-rap=\"It has a spelling mistake-Il y a une erreur d'orthographe ou de grammaire\" It has a spelling mistake\n\t</label>\n\t<input name=\"problem2\" type=\"hidden\" value=\"\">\n</div>"
}
],
"fr": [
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "&lt;div class=\"checkbox\"&gt;\n\t&lt;label for=\"problem2\"&gt;\n\t\t&lt;input name=\"problem2\" id=\"problem2\" type=\"checkbox\" value=\"Yes\" <ins>data-gc-analytics-rap=\"Il y a une erreur d&apos;orthographe ou de grammaire-It has a spelling mistake\"</ins>&gt;Il y a une erreur d'orthographe ou de grammaire\n\t&lt;/label&gt;\n\t&lt;input name=\"problem2\" type=\"hidden\" value=\"\"&gt;\n&lt;/div&gt;"
"code": "<div class=\"checkbox\">\n\t<label for=\"problem2\">\n\t\t<input name=\"problem2\" id=\"problem2\" type=\"checkbox\" value=\"Yes\" data-gc-analytics-rap=\"Il y a une erreur d'orthographe ou de grammaire-It has a spelling mistake\">Il y a une erreur d'orthographe ou de grammaire\n\t</label>\n\t<input name=\"problem2\" type=\"hidden\" value=\"\">\n</div>"
}
]
}
Expand Down Expand Up @@ -314,14 +313,14 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "\"feedback\": true, \n\"feedbackFallback\": true, \n\"feedbackPath\": \"ajax-report-problem-en.html\""
"code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-en.html\"\n\t...\n}\n---"
}
],
"fr": [
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "\"feedback\": true, \n\"feedbackFallback\": true, \n\"feedbackPath\": \"ajax-report-problem-fr.html\""
"code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackFallback\": true, \n\t\"feedbackPath\": \"ajax-report-problem-fr.html\"\n\t...\n}\n---"
}
]
}
Expand Down Expand Up @@ -366,7 +365,7 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "&lt;div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html\" \ndata-feedback-section=\"[Text defining the section where your page resides]\" \ndata-feedback-theme=\"[Text defining the theme of your page]\"&gt;&lt;/div&gt;"
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html\" \ndata-feedback-section=\"[Text defining the section where your page resides]\" \ndata-feedback-theme=\"[Text defining the theme of your page]\"></div>"
},
{
"@type": "source-code",
Expand All @@ -382,12 +381,12 @@
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "&lt;div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html\" \ndata-feedback-section=\"[Texte définissant la section où réside votre page]\" \ndata-feedback-theme=\"[Texte définissant le thème de votre page]\"&gt;&lt;/div&gt;"
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html\" \ndata-feedback-section=\"[Texte définissant la section où réside votre page]\" \ndata-feedback-theme=\"[Texte définissant le thème de votre page]\"></div>"
},
{
"@type": "source-code",
"collapsed": true,
"description": "Contenu ajouté via Ajax :",
"description": "Contenu ajouté via Ajax",
"code": {
"@type": [ "@id", "rdf:HTML" ],
"@value": "assets/page-feedback-fr.html"
Expand Down Expand Up @@ -422,14 +421,14 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "\"feedback\": true,\n\"feedbackData\": {\n\t\"theme\": \"Theme\",\n\t\"section\": \"Section\"\n}"
"code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
}
],
"fr": [
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "\"feedback\": true,\n\"feedbackData\": {\n\t\"theme\": \"Thème\",\n\t\"section\": \"Section\"\n}"
"code": "---\n{\n\t...\n\t\"feedback\": true,\n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
}
]
}
Expand Down Expand Up @@ -522,7 +521,7 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "&lt;div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html\" \ndata-feedback-section=\"[Text defining the section where your page resides]\" \ndata-feedback-theme=\"[Text defining the theme of your page]\" \ndata-feedback-link=\"[Contact link text]\" \ndata-feedback-url=\"[Contact link URL]\"&gt;&lt;/div&gt;"
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html\" \ndata-feedback-section=\"[Text defining the section where your page resides]\" \ndata-feedback-theme=\"[Text defining the theme of your page]\" \ndata-feedback-link=\"[Contact link text]\" \ndata-feedback-url=\"[Contact link URL]\"></div>"
},
{
"@type": "source-code",
Expand All @@ -538,12 +537,12 @@
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "&lt;div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html\" \ndata-feedback-section=\"[Texte définissant la section où réside votre page]\" \ndata-feedback-theme=\"[Texte définissant le thème de votre page]\" \ndata-feedback-link=\"[Texte du lien de contact]\" \ndata-feedback-url=\"[URL du lien de contact]\"&gt;&lt;/div&gt;"
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html\" \ndata-feedback-section=\"[Texte définissant la section où réside votre page]\" \ndata-feedback-theme=\"[Texte définissant le thème de votre page]\" \ndata-feedback-link=\"[Texte du lien de contact]\" \ndata-feedback-url=\"[URL du lien de contact]\"></div>"
},
{
"@type": "source-code",
"collapsed": true,
"description": "Contenu ajouté via Ajax :",
"description": "Contenu ajouté via Ajax",
"code": {
"@type": [ "@id", "rdf:HTML" ],
"@value": "assets/page-feedback-fr.html"
Expand Down Expand Up @@ -580,14 +579,14 @@
{
"@type": "source-code",
"description": "Code sample:",
"code": "\"feedback\": true, \n\"feedbackContact\": {\n\t\"link\": \"Contact link\",\n\t\"url\": \"https://canada.ca/en\"\n}, \n\"feedbackData\": {\n\t\"theme\": \"Theme\",\n\t\"section\": \"Section\"\n}"
"code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Contact link\",\n\t\t\"url\": \"https://canada.ca/en\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Theme\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
}
],
"fr": [
{
"@type": "source-code",
"description": "Exemple de code :",
"code": "\"feedback\": true, \n\"feedbackContact\": {\n\t\"link\": \"Lien de contact\",\n\t\"url\": \"https://canada.ca/fr\"\n}, \n\"feedbackData\": {\n\t\"theme\": \"Thème\",\n\t\"section\": \"Section\"\n}"
"code": "---\n{\n\t...\n\t\"feedback\": true, \n\t\"feedbackContact\": {\n\t\t\"link\": \"Lien de contact\",\n\t\t\"url\": \"https://canada.ca/fr\"\n\t}, \n\t\"feedbackData\": {\n\t\t\"theme\": \"Thème\",\n\t\t\"section\": \"Section\"\n\t}\n\t...\n}\n---"
}
]
}
Expand All @@ -597,7 +596,8 @@
{
"@id": "_:cs_rap_inline",
"name": "Report a problem inline",
"status": "stable",
"status": "deprecated",
"schema:expires": "2024-12",
"baseOnIteration": "_:iteration_rap_1",
"detectableBy": "The RAP web form is hardcoded in each page and the form inputs are server-side personalized/configured.",
"layout": [
Expand Down Expand Up @@ -653,7 +653,8 @@
{
"@id": "_:cs_rap_container",
"name": "Report a problem with AJAX",
"status": "stable",
"status": "deprecated",
"schema:expires": "2024-12",
"baseOnIteration": "_:iteration_rap_5",
"detectableBy": "The RAP web form is inserted via ajax",
"layout": [
Expand Down Expand Up @@ -704,7 +705,8 @@
{
"@id": "_:cs_rap_ajax",
"name": "Report a problem AJAX file",
"status": "stable",
"status": "deprecated",
"schema:expires": "2024-12",
"baseOnIteration": "_:iteration_rap_2",
"dependOnChangeSet": "_:cs_rap_container",
"detectableBy": "HTML fragment that starts with a \"row row-no-gutters\", containing a form and a wrapper \"div.gc-rprt-prlm\"",
Expand Down Expand Up @@ -768,7 +770,8 @@
{
"@id": "_:cs_rap_ajax_2",
"name": "Report a problem AJAX file Data-JSON",
"status": "stable",
"status": "deprecated",
"schema:expires": "2024-12",
"baseOnIteration": "_:iteration_rap_5",
"dependOnChangeSet": "_:cs_rap_container",
"detectableBy": "Hidden inputs genereted via Data-JSON and \"subject\" and \"externalReferer\" are static",
Expand Down
Loading

0 comments on commit c1bcd6a

Please sign in to comment.