Skip to content

Commit 01f2c5f

Browse files
authored
Major: Site footer, Byline, Page details... - Remove of deprecated code and Deprecating demoted versions (#2582)
* Major - Byline - Feature deprecated exception when context of use is a news article * Major - Contributor - Context of use changed to be limited inside the page details section, along with the date modified. * Major - GC Feedback - Deprecated of the initial ajax fragment version which didn't included the PII check. * Major - Site footer - Removed CSS that was used by deprecated pattern prior GCWeb v13.0.0 * Major - Site footer - Deprecated version 8.1 and 8.0 * Major - Page details - Deprecated version 3.0, 3.1 and 3.2 * Major - Template, Institutional landing page - Removal of deprecated template v1 * Major - Template, Topic - Deprecate version 2.0.0 (should use v2.2 instead)
1 parent e80cae9 commit 01f2c5f

30 files changed

+67
-833
lines changed

_data/components.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
},
190190
"modified": "2024-12-10",
191191
"componentName": "byline",
192-
"status": "demoted",
192+
"status": "deprecated",
193193
"version": "1.1.0",
194194
"pages": {
195195
"docs": [
@@ -212,7 +212,7 @@
212212
"en": "Institutional byline - default",
213213
"fr": "Institution responsable - par défaut"
214214
},
215-
"status": "demoted",
215+
"status": "deprecated",
216216
"description": {
217217
"en": "The institutional byline provides people with a link to the institution or institutions responsible for the content.",
218218
"fr": "La signature institutionnelle fournit aux personnes un lien vers l’institution ou les institutions responsables du contenu."
@@ -228,6 +228,10 @@
228228
"_:implement_byline"
229229
],
230230
"history": [
231+
{
232+
"en": "June 2025 - Deprecation of the component - Moved to the Main title component. Use the Contributors component instead.",
233+
"fr": "Juin 2025 - Composante maintenant obsolète - Déplacée vers la composante Titre principal. Utilisez plutôt la composante Contributeurs."
234+
},
231235
{
232236
"en": "December 2024 - Demotion of the component - Moved to the Main title component. Use the Contributors component instead.",
233237
"fr": "Décembre 2024 - Composante maintenant rétrogradée - Déplacée vers la composante Titre principal. Utilisez plutôt la composante Contributeurs."
@@ -340,7 +344,7 @@
340344
{
341345
"@id": "_:cs_byline_2",
342346
"name": "Institutional byline - version 2",
343-
"status": "demoted",
347+
"status": "deprecated",
344348
"baseOnIteration": "_:iteration_byline_2",
345349
"detectableBy": ".gc-byline",
346350
"guidance": "The component must be located directly after the first <h1> of the page.",
@@ -358,7 +362,7 @@
358362
{
359363
"@id": "_:cs_byline",
360364
"name": "Institutional byline",
361-
"status": "demoted",
365+
"status": "deprecated",
362366
"baseOnIteration": "_:iteration_byline",
363367
"detectableBy": "h1#wb-cont+p>strong>a",
364368
"guidance": "The component must be located directly after the first <h1> of the page.",

_data/sites.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@
540540
"fr": { "href": "contributors-fr.html", "text": "Collaborateurs" }
541541
},
542542
{
543-
"en": { "href": "demoted/contributors-v1-en.html", "text": "Demoted as of GCWeb v16.2.0 - Contributors version 1.0" },
544-
"fr": { "href": "demoted/contributors-v1-fr.html", "text": "Rétrogradée à partir de GCWeb v16.2.0 - Collaborateurs 1.0" }
543+
"en": { "href": "deprecated/contributors-v1-en.html", "text": "Deprecated as of GCWeb v17.0.0 - Contributors version 1.0" },
544+
"fr": { "href": "deprecated/contributors-v1-fr.html", "text": "Obsolète à partir de GCWeb v17.0.0 - Collaborateurs 1.0" }
545545
}
546546
],
547547
"implementation": [
@@ -749,7 +749,7 @@
749749
{
750750
"@id": "_:cs_contributors",
751751
"name": "Contributors - Version 1",
752-
"status": "demoted",
752+
"status": "deprecated",
753753
"baseOnIteration": "_:iteration_contributors_2",
754754
"detectableBy": ".gc-contributors",
755755
"layout": "Title and list are displayed inline on medium screens and up. They are displayed vertically on smaller screens.",
@@ -765,8 +765,8 @@
765765
"contributors object: contributor name, contributor link"
766766
],
767767
"test": [
768-
"<a href=\"demoted/contributors-v1-en.html\">Contributors version 1</a>",
769-
"<a href=\"demoted/contributors-v1-fr.html\">Contributeurs version 1</a>"
768+
"<a href=\"deprecated/contributors-v1-en.html\">Contributors version 1</a>",
769+
"<a href=\"deprecated/contributors-v1-fr.html\">Contributeurs version 1</a>"
770770
]
771771
}
772772
]
@@ -2015,21 +2015,21 @@
20152015
"@type": "source-code",
20162016
"@language": "en",
20172017
"description": "Code sample",
2018-
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/demoted/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"></div>"
2018+
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/deprecated/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"></div>"
20192019
},
20202020
{
20212021
"@type": "source-code",
20222022
"@language": "en",
20232023
"description": "Code sample with contact link",
2024-
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/demoted/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"\ndata-feedback-link=\"[Contact link text]\"\ndata-feedback-url=\"[Contact link URL]\"></div>"
2024+
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/deprecated/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"\ndata-feedback-link=\"[Contact link text]\"\ndata-feedback-url=\"[Contact link URL]\"></div>"
20252025
},
20262026
{
20272027
"@type": "source-code",
20282028
"@language": "en",
20292029
"description": "Ajaxed-in content",
20302030
"code": {
20312031
"@type": [ "rdf:HTML", "@id" ],
2032-
"@value": "assets/demoted/page-feedback-v1-en.html"
2032+
"@value": "assets/deprecated/page-feedback-v1-en.html"
20332033
}
20342034
},
20352035
{
@@ -2050,7 +2050,7 @@
20502050
"description": "Contenu ajouté via Ajax",
20512051
"code": {
20522052
"@type": [ "rdf:HTML", "@id" ],
2053-
"@value": "assets/demoted/page-feedback-v1-fr.html"
2053+
"@value": "assets/deprecated/page-feedback-v1-fr.html"
20542054
}
20552055
}
20562056
]
@@ -3280,8 +3280,8 @@
32803280
"fr": { "href": "page-details-contributors-fr.html", "text": "Détails de la page avec Contributeurs" }
32813281
},
32823282
{
3283-
"en": { "href": "demoted/page-details-v3.2-en.html", "text": "Demoted as of GCWeb v16.2.0 - Page details version 3.2" },
3284-
"fr": { "href": "demoted/page-details-v3.2-fr.html", "text": "Rétrogradée à partir de GCWeb v16.2.0 - Détails de la page version 3.2" }
3283+
"en": { "href": "deprecated/page-details-v3.2-en.html", "text": "Deprecated as of GCWeb v17.0.0 - Page details version 3.2" },
3284+
"fr": { "href": "deprecated/page-details-v3.2-fr.html", "text": "Obsolète à partir de GCWeb v17.0.0 - Détails de la page version 3.2" }
32853285
},
32863286
{
32873287
"en": { "href": "deprecated/page-details-v3.1-en.html", "text": "Deprecated as of GCWeb v16.0.0 - Page details version 3.1" },
@@ -3847,7 +3847,7 @@
38473847
{
38483848
"@id": "_:cs_pd_5",
38493849
"name": "Page details - version 3.2",
3850-
"status": "demoted",
3850+
"status": "deprecated",
38513851
"baseOnIteration": "_:iteration_pd_5",
38523852
"detectableBy": "section.pagedetails",
38533853
"layout": [

_data/templates.json

Lines changed: 5 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -749,14 +749,6 @@
749749
"Reportez-vous à l'exemple pratique pour un exemple de code.",
750750
"Référez-vous à l'exemple pratique et aux directives pour plus d'informations sur l'implémentation ce modèle de page."
751751
]
752-
},
753-
"notes": {
754-
"en": [
755-
"Not adding the required CSS class (<code>.page-type-ilp</code>) will result in the styles specific to this template not being applied. We did implement a temporary workaround as a transition to this new template. The workaround is going to be removed at the same time as the demoted/deprecated ILP version 1."
756-
],
757-
"fr": [
758-
"Si vous n'ajoutez pas la classe CSS requise (<code>.page-type-ilp</code>), les styles spécifiques à ce gabarit ne seront pas appliqués. Nous avons mis en œuvre une solution de contournement temporaire en guise de transition vers ce nouveau modèle. La solution de contournement sera supprimée en même temps que la version 1 de la PAI rétrogradée/obsolète."
759-
]
760752
}
761753
},
762754
{
@@ -813,46 +805,6 @@
813805
"Stabilization of the page template."
814806
],
815807
"detectableBy": ".page-type-ilp"
816-
},
817-
{
818-
"@id": "_:iteration_ilp_2",
819-
"name": "Institutional landing page - Iteration 2",
820-
"date": "2021-06",
821-
"detectableBy": "Social media channels have the horizontal layout. About the institution and social media channels are on a white background.",
822-
"example": {
823-
"en": [
824-
{
825-
"href": "deprecated/institution-landing-en.html",
826-
"text": "Institutional landing page version 2 (beta)"
827-
}
828-
],
829-
"fr": [
830-
{
831-
"href": "deprecated/institution-landing-fr.html",
832-
"text": "Page d'accueil institutionnelle version 2 (bêta)"
833-
}
834-
]
835-
}
836-
},
837-
{
838-
"@id": "_:iteration_ilp_1",
839-
"name": "Institutional landing page - Iteration 1",
840-
"date": "2014-04",
841-
"detectableBy": "Social media channels at top right. Latest news directly under intro block.",
842-
"example": {
843-
"en": [
844-
{
845-
"href": "deprecated/institution-en.html",
846-
"text": "Institutional landing page version 1"
847-
}
848-
],
849-
"fr": [
850-
{
851-
"href": "deprecated/institution-fr.html",
852-
"text": "Page d'accueil institutionnelle version 1"
853-
}
854-
]
855-
}
856808
}
857809
],
858810
"changesets": [
@@ -1769,8 +1721,8 @@
17691721
"fr": { "href": "topic-fr.html", "text": "Page de sujet" }
17701722
},
17711723
{
1772-
"en": { "href": "demoted/topic_v2-en.html", "text": "Demoted as of GCWeb v16.2.0 - Topic page version 2" },
1773-
"fr": { "href": "demoted/topic_v2-fr.html", "text": "Rétrogradée à partir de GCWeb v16.2.0 - Page de sujet version 2" }
1724+
"en": { "href": "deprecated/topic_v2-en.html", "text": "Deprecated as of GCWeb v17.0.0 - Topic page version 2" },
1725+
"fr": { "href": "deprecated/topic_v2-fr.html", "text": "Obsolète à partir de GCWeb v17.0.0 - Page de sujet version 2" }
17741726
}
17751727
],
17761728
"implementation": [
@@ -1816,8 +1768,8 @@
18161768
"fr": { "href": "topic-stackedheader-fr.html", "text": "Page de sujet avec en-tête superposé" }
18171769
},
18181770
{
1819-
"en": { "href": "demoted/topic-stackedheader_v2-en.html", "text": "Demoted as of GCWeb v16.2.0 - Topic page with stacked header version 2" },
1820-
"fr": { "href": "demoted/topic-stackedheader_v2-fr.html", "text": "Rétrogradée à partir de GCWeb v16.2.0 - Page de sujet avec en-tête superposé version 2" }
1771+
"en": { "href": "deprecated/topic-stackedheader_v2-en.html", "text": "Deprecated as of GCWeb v17.0.0 - Topic page with stacked header version 2" },
1772+
"fr": { "href": "deprecated/topic-stackedheader_v2-fr.html", "text": "Obsolète à partir de GCWeb v17.0.0 - Page de sujet avec en-tête superposé version 2" }
18211773
}
18221774
],
18231775
"implementation": [
@@ -2060,7 +2012,7 @@
20602012
{
20612013
"@id": "_:cs_topic_2",
20622014
"name": "Topic page - Version 2",
2063-
"status": "demoted",
2015+
"status": "deprecated",
20642016
"baseOnIteration": "_:iteration_topic_2",
20652017
"detectableBy": "By the sequence of the mandatory implemented design pattern and components and limited to its optional components.",
20662018
"layout": [

components/byline/index.json-ld

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"modified": "2024-12-10",
1818
"componentName": "byline",
19-
"status": "demoted",
19+
"status": "deprecated",
2020
"version": "1.1.0",
2121
"pages": {
2222
"docs": [
@@ -39,7 +39,7 @@
3939
"en": "Institutional byline - default",
4040
"fr": "Institution responsable - par défaut"
4141
},
42-
"status": "demoted",
42+
"status": "deprecated",
4343
"description": {
4444
"en": "The institutional byline provides people with a link to the institution or institutions responsible for the content.",
4545
"fr": "La signature institutionnelle fournit aux personnes un lien vers l’institution ou les institutions responsables du contenu."
@@ -55,6 +55,10 @@
5555
"_:implement_byline"
5656
],
5757
"history": [
58+
{
59+
"en": "June 2025 - Deprecation of the component - Moved to the Main title component. Use the Contributors component instead.",
60+
"fr": "Juin 2025 - Composante maintenant obsolète - Déplacée vers la composante Titre principal. Utilisez plutôt la composante Contributeurs."
61+
},
5862
{
5963
"en": "December 2024 - Demotion of the component - Moved to the Main title component. Use the Contributors component instead.",
6064
"fr": "Décembre 2024 - Composante maintenant rétrogradée - Déplacée vers la composante Titre principal. Utilisez plutôt la composante Contributeurs."
@@ -167,7 +171,7 @@
167171
{
168172
"@id": "_:cs_byline_2",
169173
"name": "Institutional byline - version 2",
170-
"status": "demoted",
174+
"status": "deprecated",
171175
"baseOnIteration": "_:iteration_byline_2",
172176
"detectableBy": ".gc-byline",
173177
"guidance": "The component must be located directly after the first <h1> of the page.",
@@ -185,7 +189,7 @@
185189
{
186190
"@id": "_:cs_byline",
187191
"name": "Institutional byline",
188-
"status": "demoted",
192+
"status": "deprecated",
189193
"baseOnIteration": "_:iteration_byline",
190194
"detectableBy": "h1#wb-cont+p>strong>a",
191195
"guidance": "The component must be located directly after the first <h1> of the page.",

sites/contributors/index.json-ld

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"fr": { "href": "contributors-fr.html", "text": "Collaborateurs" }
7676
},
7777
{
78-
"en": { "href": "demoted/contributors-v1-en.html", "text": "Demoted as of GCWeb v16.2.0 - Contributors version 1.0" },
79-
"fr": { "href": "demoted/contributors-v1-fr.html", "text": "Rétrogradée à partir de GCWeb v16.2.0 - Collaborateurs 1.0" }
78+
"en": { "href": "deprecated/contributors-v1-en.html", "text": "Deprecated as of GCWeb v17.0.0 - Contributors version 1.0" },
79+
"fr": { "href": "deprecated/contributors-v1-fr.html", "text": "Obsolète à partir de GCWeb v17.0.0 - Collaborateurs 1.0" }
8080
}
8181
],
8282
"implementation": [
@@ -284,7 +284,7 @@
284284
{
285285
"@id": "_:cs_contributors",
286286
"name": "Contributors - Version 1",
287-
"status": "demoted",
287+
"status": "deprecated",
288288
"baseOnIteration": "_:iteration_contributors_2",
289289
"detectableBy": ".gc-contributors",
290290
"layout": "Title and list are displayed inline on medium screens and up. They are displayed vertically on smaller screens.",
@@ -300,8 +300,8 @@
300300
"contributors object: contributor name, contributor link"
301301
],
302302
"test": [
303-
"<a href=\"demoted/contributors-v1-en.html\">Contributors version 1</a>",
304-
"<a href=\"demoted/contributors-v1-fr.html\">Contributeurs version 1</a>"
303+
"<a href=\"deprecated/contributors-v1-en.html\">Contributors version 1</a>",
304+
"<a href=\"deprecated/contributors-v1-fr.html\">Contributeurs version 1</a>"
305305
]
306306
}
307307
]

sites/feedback/index.json-ld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,21 +1076,21 @@
10761076
"@type": "source-code",
10771077
"@language": "en",
10781078
"description": "Code sample",
1079-
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/demoted/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"></div>"
1079+
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/deprecated/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"></div>"
10801080
},
10811081
{
10821082
"@type": "source-code",
10831083
"@language": "en",
10841084
"description": "Code sample with contact link",
1085-
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/demoted/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"\ndata-feedback-link=\"[Contact link text]\"\ndata-feedback-url=\"[Contact link URL]\"></div>"
1085+
"code": "<div class=\"wb-disable-allow\" \ndata-ajax-replace=\"assets/deprecated/page-feedback-v1-en.html\" \ndata-feedback-section=\"[Text defining the theme of your page]\" \ndata-feedback-theme=\"[Text defining the section where your page resides]\"\ndata-feedback-link=\"[Contact link text]\"\ndata-feedback-url=\"[Contact link URL]\"></div>"
10861086
},
10871087
{
10881088
"@type": "source-code",
10891089
"@language": "en",
10901090
"description": "Ajaxed-in content",
10911091
"code": {
10921092
"@type": [ "rdf:HTML", "@id" ],
1093-
"@value": "assets/demoted/page-feedback-v1-en.html"
1093+
"@value": "assets/deprecated/page-feedback-v1-en.html"
10941094
}
10951095
},
10961096
{
@@ -1111,7 +1111,7 @@
11111111
"description": "Contenu ajouté via Ajax",
11121112
"code": {
11131113
"@type": [ "rdf:HTML", "@id" ],
1114-
"@value": "assets/demoted/page-feedback-v1-fr.html"
1114+
"@value": "assets/deprecated/page-feedback-v1-fr.html"
11151115
}
11161116
}
11171117
]

0 commit comments

Comments
 (0)