Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EES-5170: Add missing boundary level details to glossary section, advise of file size limit on file upload #5067

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function BoundaryDataUploadPage() {
return Yup.object({
boundaryLevel: Yup.string().required('Select a boundary level type'),
boundaryLevelLabel: Yup.string().required('Enter a boundary level name'),
boundaryDataFile: Yup.file().required('Select a boundary file'),
boundaryDataFile: Yup.file().required('Select a boundary file').maxSize(134217728, 'Boundary file must be under 128mb in size'),
boundaryLevelPublishedDate: Yup.date().required(
'Enter a boundary file publication date',
),
Expand Down Expand Up @@ -119,7 +119,7 @@ export default function BoundaryDataUploadPage() {
id="boundaryDataFile"
name="boundaryDataFile"
label="Upload new boundary data file"
hint="Must be a GeoJSON file type"
hint="Must be a GeoJSON file type, and no larger than 128mb"
/>
</FormFieldset>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,40 @@ const boundaryTypesMap: Dictionary<{
label: string;
description: string;
}> = {
BFC: {
label: 'BFC',
description:
'Full resolution - clipped to the coastline (Mean High Water mark)',
},
BFE: {
label: 'BFE',
description:
'Full resolution - extent of the realm (usually this is the Mean Low Water mark but, in some cases, boundaries extend beyond this to include offshore islands)',
'Full Extent - full resolution boundaries go to the Extent of the Realm (Low Water Mark) and are the most detailed of the boundaries',
},
BFC: {
label: 'BFC',
description:
'Full Clipped - full resolution boundaries that are clipped to the coastline (Mean High Water mark)',
},
BGC: {
label: 'BGC',
description:
'Generalised (20m) - clipped to the coastline (Mean High Water mark)',
'Generalised Clipped - generalised to 20m and clipped to the coastline (Mean High Water mark) and more generalised than the BFE boundaries',
},
BSC: {
label: 'BSC',
description:
'Super Generalised Clipped - generalised to 200m and clipped to the coastline (Mean High Water mark)',
},
BUC: {
label: 'BUC',
description:
'Ultra Generalised (500m) - clipped to the coastline (Mean High Water mark)',
'Ultra Generalised Clipped - generalised to 500m and clipped to the coastline (Mean High Water mark)',
},

BGE: {
label: 'BGE',
description:
'Grid, Extent - grid formed of equally sized cells which extend beyond the coastline',
},
BGG: {
label: 'BGG',
description: 'Generalised, Grid - generalised 50m grid squares',
},
};

Expand Down
Loading