Skip to content

Commit

Permalink
Update plan links (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
vimto authored Nov 8, 2023
1 parent d199072 commit d4214a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ VALUES
{
"id": "b012dd3c-6b10-4db7-a332-e25c42667238",
"name": "Kāpiti Whaitua",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=395",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-10.pdf",
"boundaryId": "87e15f4f1b8284a0d6f77316e45108fb1761897012ee87229ebb74f384cb65a0",
"groundwaterLimits": [
{
Expand Down Expand Up @@ -260,15 +260,15 @@ VALUES
{
"id": "0b247e41-d840-4a4e-98c3-0ff6d5c31efd",
"name": "Te Awarua-o-Porirua Whaitua",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=393",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-9.pdf",
"boundaryId": "8069b11b5844a90828c91fcf55deffe9665f1ac1464c54cfd1d80e389adea380",
"defaultFlowManagementSite": "Refer to Policy P.P1",
"defaultFlowManagementLimit": "Refer to Policy P.P1"
},
{
"id": "02df17ed-041e-4bef-854d-7def4f7524d4",
"name": "Te Whanganui-a-Tara Whaitua",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=384",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-8.pdf",
"boundaryId": "a8280a23d2820c34344a402e008e6a48114d315c461e07b4f5ba815dc59861b9",
"groundwaterLimits": [
{
Expand Down Expand Up @@ -441,7 +441,7 @@ VALUES
{
"id": "493cb5ae-4086-4649-8d3a-6d41ee9fded7",
"name": "Ruamahanga Whaitua",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=364",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-7.pdf",
"boundaryId": "5f4835dd489ae103689e742430de37f92067f64fe3e8dddb5ba77e39659b9808",
"groundwaterLimits": [
{
Expand Down Expand Up @@ -1319,7 +1319,7 @@ VALUES
{
"id": "ab941729-fc03-4359-a226-2a6ce8c4ab45",
"name": "Wairarapa Coast Whaitua",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=403",
"referenceUrl": "https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-11.pdf",
"boundaryId": "4cb6c6190e686a5c3d64d062b9ce854d540a0774b4aba8542a9152b05f344727",
"defaultFlowManagementSite": "Refer to Policy WC.P1",
"defaultFlowManagementLimit": "Refer to Policy WC.P1"
Expand Down
4 changes: 2 additions & 2 deletions packages/PlanLimitsUI/src/lib/councilData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export const Councils: Council[] = [
footerLinks: [
{
text: 'Natural Resources Plan',
url: 'https://pnrp.gw.govt.nz/',
url: 'https://www.gw.govt.nz/your-region/plans-policies-and-bylaws/plans-and-reports/environmental-plans/natural-resources-plan/in-depth-on-the-natural-resources-plan/',
},
{
text: 'Water allocation rules',
url: 'https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=276',
url: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-5.pdf#page=121',
},
],
labels: {
Expand Down
4 changes: 2 additions & 2 deletions packages/PlanLimitsUI/src/pages/Limits/LimitsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ const footNoteTexts = [
number: 1,
id: 'PNRP41',
text: 'Refer to Table 4.1 of NRP',
href: 'https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=133',
href: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-4.pdf#page=50',
footNoteText: 'Table 4.1 of the Natural Resources Plan',
},
{
number: 2,
id: 'PNRP121',
text: 'Refer to Policy P121 of NRP',
href: 'https://www.gw.govt.nz/assets/Documents/2023/07/Natural-Resources-Plan-Appeals-Version.pdf#page=139',
href: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-4.pdf#page=57',
footNoteText: 'Policy P121 of the Natural Resources Plan',
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ const defaultFlowLimitsAndSites = [
{
whaituaId: 1,
text: 'Refer to Policy K.P1',
link: 'https://pnrp.gw.govt.nz/assets/Uploads/Chapter-10-Kapiti-Coast-Whaitua-Appeal-version-2023.pdf',
link: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-10.pdf',
},
{
whaituaId: 2,
text: 'Refer to Policy P.P1',
link: 'https://pnrp.gw.govt.nz/assets/Uploads/Chapter-9-Te-Awarua-o-Porirua-Whaitua-Appeal-version-2023.pdf',
link: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-9.pdf',
},
{
whaituaId: 3,
text: 'Refer to Policy TW.P1',
link: 'https://pnrp.gw.govt.nz/assets/Uploads/Chapter-8-Wellington-Harbour-and-Hutt-Valley-Whaitua-Appeal-version-2023.pdf',
link: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-8.pdf',
},
{
whaituaId: 4,
text: 'Refer to Policy R.P1',
link: 'https://pnrp.gw.govt.nz/assets/Uploads/Chapter-7-Ruamahanga-Whaitua-Appeal-version-2023.pdf',
link: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-7.pdf',
},
{
whaituaId: 5,
text: 'Refer to Policy WC.P1',
link: 'https://pnrp.gw.govt.nz/assets/Uploads/Chapter-11-Wairarapa-Coast-Whaitua-Appeal-version-2023.pdf',
link: 'https://www.gw.govt.nz/assets/Documents/2023/07/Chapter-11.pdf',
},
];

export default function defaultFlowLimit(whaituaId: number) {
const limit = defaultFlowLimitsAndSites.find(
(l) => l.whaituaId === whaituaId
(l) => l.whaituaId === whaituaId,
);

if (!limit) return <>None</>;
Expand Down

0 comments on commit d4214a3

Please sign in to comment.