Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
chore: Add documentation, redirect to topical, and remove sanity keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrik-Klijnsma-Work committed Mar 1, 2023
1 parent 1cd1873 commit bcaeb76
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/deleting-a-page-procedure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Deleting a page Procedure

## For every file you delete do the following:
1. ### imports (if there are any)
Is the imported function/variable/type used elsewhere?
- Yes. only delete the import.
- No. Delete that file too. (Go recursively through the files meaning go to the first step of this list)
2. ### getStaticProps
- Delete the sanity lokalize keys in the nl_export.json
- Delete the JSON schema if the proto data is not used elsewhere.
- Delete the Sanity schema/structure if the imported sanity content is not used elsewhere.

3. ### delete the whole page file.
- solve typescript errors

4. ### follow up search for the page
- Look into the redirect.js file and remove/adjust the current or add redirects if needed.
- Look into the sitemap for references.
- Check the sidebar and layout files for references.
- Do an overall search for the page name: camelCased, and PascalCased.

5. ### Do other checks
- ```yarn typecheck```
- ```yarn bootstrap```
- ```yarn build:app```
- ```yarn start```


[Back to index](index.md)
21 changes: 21 additions & 0 deletions packages/app/src/next-config/redirects/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,27 @@ async function redirects() {
destination: '/artikelen',
permanent: true,
},
// Redirects for removal of recommanded advices page - COR-1431
{
source: '/veiligheidsregio/:code/maatregelen',
destination: '/',
permanent: true,
},
{
source: '/landelijk/maatregelen',
destination: '/',
permanent: true,
},
{
source: '/veiligheidsregio/:code/geldende-adviezen',
destination: '/',
permanent: true,
},
{
source: '/landelijk/geldende-adviezen',
destination: '/',
permanent: true,
},
];
}

Expand Down
31 changes: 31 additions & 0 deletions packages/cms/src/lokalize/key-mutations.csv
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
timestamp,action,key,document_id,move_to
2023-03-01T14:33:00.243Z,delete,pages.measures_page.nl.titel,jF33EuwumlGuwav2FD42bc,__
2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.linktext_regionpage,jF33EuwumlGuwav2FD42qi,__
2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.metadata.title,jF33EuwumlGuwav2FD42vk,__
2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.titel,jF33EuwumlGuwav2FD42k0,__
2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.titel_aanvullendemaatregelen,jF33EuwumlGuwav2FD42sO,__
2023-03-01T14:33:00.244Z,delete,pages.measures_page.vr.toelichting_aanvullendemaatregelen,jF33EuwumlGuwav2FD42u4,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR01,jF33EuwumlGuwav2FD432S,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR02,jF33EuwumlGuwav2FD4348,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR03,jF33EuwumlGuwav2FD435o,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR04,jF33EuwumlGuwav2FD437U,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR05,jF33EuwumlGuwav2FD439A,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR06,jF33EuwumlGuwav2FD43Aq,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR07,jF33EuwumlGuwav2FD43CW,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR08,jF33EuwumlGuwav2FD43EC,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR09,jF33EuwumlGuwav2FD43Fs,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR10,jF33EuwumlGuwav2FD43HY,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR11,jF33EuwumlGuwav2FD43JE,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR12,jF33EuwumlGuwav2FD43Ku,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR13,jF33EuwumlGuwav2FD43Ma,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR14,jF33EuwumlGuwav2FD43OG,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR15,jF33EuwumlGuwav2FD43Pw,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR16,jF33EuwumlGuwav2FD43Rc,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR17,jF33EuwumlGuwav2FD43TI,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR18,jF33EuwumlGuwav2FD43Uy,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR19,jF33EuwumlGuwav2FD43We,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR20,jF33EuwumlGuwav2FD43YK,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR21,jF33EuwumlGuwav2FD43a0,__
2023-03-01T14:33:00.245Z,delete,pages.measures_page.vr.urls.VR22,jF33EuwumlGuwav2FD43bg,__
2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR23,jF33EuwumlGuwav2FD43dM,__
2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR24,jF33EuwumlGuwav2FD43f2,__
2023-03-01T14:33:00.246Z,delete,pages.measures_page.vr.urls.VR25,jF33EuwumlGuwav2FD43gi,__

0 comments on commit bcaeb76

Please sign in to comment.