Skip to content

Commit

Permalink
chore: Import all checklist schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jun 25, 2024
1 parent cb4de6f commit e8a6735
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 88 deletions.
10 changes: 10 additions & 0 deletions editor.planx.uk/src/@planx/components/List/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { ProtectedSpaceGLA } from "./schemas/GLA/ProtectedSpace";
import { ResidentialUnitsExisting } from "./schemas/ResidentialUnits/Existing";
import { ResidentialUnitsGLAGained } from "./schemas/ResidentialUnits/GLA/Gained";
import { ResidentialUnitsGLALost } from "./schemas/ResidentialUnits/GLA/Lost";
import { ResidentialUnitsGLANew } from "./schemas/ResidentialUnits/GLA/New";
import { ResidentialUnitsGLARebuilt } from "./schemas/ResidentialUnits/GLA/Rebuilt";
import { ResidentialUnitsGLARemoved } from "./schemas/ResidentialUnits/GLA/Removed";
import { ResidentialUnitsProposed } from "./schemas/ResidentialUnits/Proposed";

Expand All @@ -36,6 +38,14 @@ export const SCHEMAS = [
schema: ResidentialUnitsGLAGained,
},
{ name: "Residential units (GLA) - Lost", schema: ResidentialUnitsGLALost },
{
name: "Residential units (GLA) - New",
schema: ResidentialUnitsGLANew,
},
{
name: "Residential units (GLA) - Rebuilt",
schema: ResidentialUnitsGLARebuilt,
},
{
name: "Residential units (GLA) - Removed",
schema: ResidentialUnitsGLARemoved,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,28 @@ export const ResidentialUnitsGLAGained: Schema = {
],
},
},
// {
// type: "checklist", // @todo
// data: {
// title: "Is this unit compliant with any of the following?",
// fn: "compliance",
// options: [
// {
// id: "m42",
// data: { text: "Part M4(2) of the Building Regulations 2010" },
// },
// {
// id: "m432a",
// data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
// },
// {
// id: "m432b",
// data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
// },
// { id: "none", data: { text: "None of these" } },
// ],
// },
// },
{
type: "checklist",
data: {
title: "Is this unit compliant with any of the following?",
fn: "compliance",
options: [
{
id: "m42",
data: { text: "Part M4(2) of the Building Regulations 2010" },
},
{
id: "m432a",
data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
},
{
id: "m432b",
data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
},
{ id: "none", data: { text: "None of these" } },
],
},
},
{
type: "question",
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@ export const ResidentialUnitsGLALost: Schema = {
],
},
},
// {
// type: "checklist", // @todo
// data: {
// title: "Is this unit compliant with any of the following?",
// fn: "compliance",
// options: [
// {
// id: "m42",
// data: { text: "Part M4(2) of the Building Regulations 2010" },
// },
// {
// id: "m432a",
// data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
// },
// {
// id: "m432b",
// data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
// },
// { id: "none", data: { text: "None of these" } },
// ],
// },
// },
{
type: "checklist",
data: {
title: "Is this unit compliant with any of the following?",
fn: "compliance",
options: [
{
id: "m42",
data: { text: "Part M4(2) of the Building Regulations 2010" },
},
{
id: "m432a",
data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
},
{
id: "m432b",
data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
},
{ id: "none", data: { text: "None of these" } },
],
},
},
{
type: "question",
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,28 +90,28 @@ export const ResidentialUnitsGLANew: Schema = {
],
},
},
// {
// type: "checklist", // @todo
// data: {
// title: "Is this unit compliant with any of the following?",
// fn: "compliance",
// options: [
// {
// id: "m42",
// data: { text: "Part M4(2) of the Building Regulations 2010" },
// },
// {
// id: "m432a",
// data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
// },
// {
// id: "m432b",
// data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
// },
// { id: "none", data: { text: "None of these" } },
// ],
// },
// },
{
type: "checklist",
data: {
title: "Is this unit compliant with any of the following?",
fn: "compliance",
options: [
{
id: "m42",
data: { text: "Part M4(2) of the Building Regulations 2010" },
},
{
id: "m432a",
data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
},
{
id: "m432b",
data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
},
{ id: "none", data: { text: "None of these" } },
],
},
},
{
type: "question",
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,28 +90,28 @@ export const ResidentialUnitsGLARebuilt: Schema = {
],
},
},
// {
// type: "checklist", // @todo
// data: {
// title: "Is this unit compliant with any of the following?",
// fn: "compliance",
// options: [
// {
// id: "m42",
// data: { text: "Part M4(2) of the Building Regulations 2010" },
// },
// {
// id: "m432a",
// data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
// },
// {
// id: "m432b",
// data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
// },
// { id: "none", data: { text: "None of these" } },
// ],
// },
// },
{
type: "checklist",
data: {
title: "Is this unit compliant with any of the following?",
fn: "compliance",
options: [
{
id: "m42",
data: { text: "Part M4(2) of the Building Regulations 2010" },
},
{
id: "m432a",
data: { text: "Part M4(3)(2a) of the Building Regulations 2010" },
},
{
id: "m432b",
data: { text: "Part M4(3)(2b) of the Building Regulations 2010" },
},
{ id: "none", data: { text: "None of these" } },
],
},
},
{
type: "question",
data: {
Expand Down

0 comments on commit e8a6735

Please sign in to comment.