From 669627834119f1077a685f1a22b1d0a6dcc689fb Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 31 Jan 2024 19:20:03 +0100 Subject: [PATCH] update default content --- titleBoundary/helpers.js | 33 +++++++++++++++------------------ titleBoundary/index.js | 6 +++--- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/titleBoundary/helpers.js b/titleBoundary/helpers.js index 67b2f27..7aeb6d1 100644 --- a/titleBoundary/helpers.js +++ b/titleBoundary/helpers.js @@ -34,31 +34,28 @@ const delay = (ms) => new Promise(res => setTimeout(res, ms)); * 4. Run migration script to bulk update existing nodes across all applicable flows */ const defaultSubmissionDrawBoundaryNodeData = { - title: "Check or amend the outline of your property and works", - description: - "

The red line shown below should include:

If the red line already includes all these, tap continue. If it does not, tap More information for guidance on how to amend or redraw the outline.

", - dataFieldBoundary: "property.boundary.site", - dataFieldArea: "property.boundary.area", - hideFileUpload: false, - titleForUploading: "Upload a location plan", - descriptionForUploading: - "

Your location plan must:

", + howMeasured: "

We have pre-populated the map with a red outline that includes the entire property using information from the Land Registry.

In some cases, this outline might not include all the works or the areas that will be closed off. This might be because you're proposing works to a public highway (such as a dropped kerb), doing works that involve multiple properties, or works to a building that is part of a larger estate.

In these cases, you should amend the red outline by dragging the edges, or erase it by clicking the 🗑-icon on the map and draw a new outline.

How to draw and amend the outline

  1. Move the cursor to the corner you want to start with and click or tap once.

  2. Move the cursor to the next corner and click or tap.

  3. Repeat until you have the shape you need.

  4. Click or tap the last corner again to stop drawing.

  5. To amend the outline, click or tap on a line and drag it into a new position.

", + policyRef: "

The Town and Country Planning (Development Management Procedure) (England) Order 2015,

Planning Practice Guidance (PPG)

", info: "

This outline identifies the location of the proposed changes on a map. This information is required for all planning applications. It is sometimes called a 'red line drawing' or 'location plan'.

", - policyRef: - '

The Town and Country Planning (Development Management Procedure) (England) Order 2015,

Planning Practice Guidance (PPG)

', - howMeasured: - '

We have pre-populated the map with a red outline that includes the entire property, using information from Land Registry.

In some cases, this outline might not include all the works or the areas that will be closed off. This could be the case if you are proposing works to a public highway (such as a dropped kerb), doing works that involve multiple properties, or works to a building that is part of a larger estate.

In these cases, you should amend the red outline by dragging the edges, or erase it by clicking the 🗑-icon on the map and draw a new outline.

How to draw and amend the outline

  1. Move the cursor to the corner you want to start with and click or tap once.

  2. Move the cursor to the next corner and click or tap.

  3. Repeat until you have the shape you need.

  4. Click or tap the last corner again to stop drawing.

  5. To amend the outline, click or tap on a line and drag it into a new position.

', + title: "Confirm your location plan", + description: "

The red line shown below should include:

If the red line already includes all these, select continue. If not, select More information for guidance on how to amend or redraw the outline.

", + titleForUploading: "Upload a location plan", + descriptionForUploading: "

Your location plan must:

", + hideFileUpload: false, + dataFieldBoundary: "property.boundary.site", + dataFieldArea: "property.boundary.area" }; const defaultGuidanceDrawBoundaryNodeData = { + info: "

This outline identifies the location of the proposed changes on a map. It helps us tell you if there are any planning constraints that might affect your project. It is sometimes called a 'red line drawing' or 'location plan'.

", title: "Check or amend the outline of your property and works", - description: "

The red line shown below should include:

If the red line already includes all these, tap continue. If it does not, tap More information for guidance on how to amend or redraw the outline.

", - dataFieldBoundary: "property.boundary.site", + policyRef: "

The Town and Country Planning (Development Management Procedure) (England) Order 2015,

Planning Practice Guidance (PPG)

", + description: "

The red line shown below should include:

If the red line already includes all these, select continue. If it does not, select More information for guidance on how to amend or redraw the outline.

", + howMeasured: "

We have pre-populated the map with a red outline that includes the entire property using information from the Land Registry.

In some cases, this outline might not include all the works or the areas that will be closed off. This could be the case if you are proposing works to a public highway (such as a dropped kerb), doing works that involve multiple properties, or works to a building that is part of a larger estate.

In these cases, you should amend the red outline by dragging the edges, or erase it by clicking the 🗑-icon on the map and draw a new outline.

How to draw and amend the outline

  1. Move the cursor to the corner you want to start with and click or tap once.

  2. Move the cursor to the next corner and click or tap.

  3. Repeat until you have the shape you need.

  4. Click or tap the last corner again to stop drawing.

  5. To amend the outline, click or tap on a line and drag it into a new position.

", dataFieldArea: "property.boundary.area", hideFileUpload: true, - info: "

This outline identifies the location of the proposed changes on a map. It helps us tell you if there are any planning constraints that might affect your project. It is sometimes called a 'red line drawing' or 'location plan'.

", - policyRef: "

The Town and Country Planning (Development Management Procedure) (England) Order 2015,

Planning Practice Guidance (PPG)

", - howMeasured: "

We have pre-populated the map with a red outline that includes the entire property, using information from Land Registry.

In some cases, this outline might not include all the works or the areas that will be closed off. This could be the case if you are proposing works to a public highway (such as a dropped kerb), doing works that involve multiple properties, or works to a building that is part of a larger estate.

In these cases, you should amend the red outline by dragging the edges, or erase it by clicking the :wastebasket:-icon on the map and draw a new outline.

How to draw and amend the outline

  1. Move the cursor to the corner you want to start with and click or tap once.

  2. Move the cursor to the next corner and click or tap.

  3. Repeat until you have the shape you need.

  4. Click or tap the last corner again to stop drawing.

  5. To amend the outline, click or tap on a line and drag it into a new position.

", + dataFieldBoundary: "property.boundary.site", + descriptionForUploading: "

" }; const defaultPropertyInformationNodeData = { diff --git a/titleBoundary/index.js b/titleBoundary/index.js index 0934d83..61cb6c6 100644 --- a/titleBoundary/index.js +++ b/titleBoundary/index.js @@ -3,7 +3,7 @@ const chalk = require("chalk"); const Client = require("../client"); const { setupPrompts } = require("../prompts"); -const { updateDrawBoundaryNodeData, updatePropertyInformationNodeData } = require("./helpers"); +const { updateDrawBoundaryNodeData, updatePropertyInformationNodeData, delay } = require("./helpers"); ask.start(); @@ -80,8 +80,8 @@ ask.start(); console.log(chalk.red(error)); } - // wait 5 seconds before proceeding through next item in loop to avoid Hasura timeouts - await delay(5000); + // wait 3.5 seconds before proceeding through next item in loop to avoid Hasura timeouts + await delay(3500); }); } else { console.log(chalk.red(`Cannot find any flows matching slug: ${formattedSlug}. Exiting migration script`));