Skip to content

Commit

Permalink
wip [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
somabadri committed Dec 14, 2024
1 parent 5e0cc30 commit 0e176b3
Show file tree
Hide file tree
Showing 30 changed files with 1,465 additions and 519 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
slug: property-assessment
filename: property-assessment
header: Property Assessment
displayname: Property Assessment
---

A property assessment takes place before a business buys property. The goal of this work is to test the property for:

- Existing environmental issues
- Possible environmental issues
69 changes: 50 additions & 19 deletions content/src/fieldConfig/waste-questionnaire-page.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,66 @@
{
"wasteQuestionnaireQuestionsPage": {
"title": "Tell Us About Your Business",
"question": "Which of the following are true?",
"footer": "To learn more about waste permits, visit [NJDEP’s page on Sustainable Waste Management](https://www.nj.gov/dep/dshw/).",
"buttonText": "See My Results",
"errorText": "Select a response below.",
"wasteQuestionnaireOptions": {
"hazardousMedicalWaste": "My business will generate `hazardous waste|hazardous-waste` or `medical waste|medical-waste`.",
"compostWaste": "My business will `compost waste|compost-waste` on site.",
"treatProcessWaste": "My business will treat or process waste.",
"constructionDebris": "My business will process `construction/demolition debris|construction-and-demo-debris` and recyclable materials.",
"noWaste": "None of the above apply."
"envReqQuestionsPage": {
"generic": {
"title": "Tell Us About Your Business",
"question": "Which of the following are true?",
"buttonText": "See My Results",
"errorText": "Select a response below.",
"footerText": "To learn more about ${mediaAreaText} permits, visit ${mediaAreaLink}."
},
"waste": {
"mediaAreaText": "waste",
"mediaAreaLink": "[NJDEP’s page on Sustainable Waste Management](https://www.nj.gov/dep/dshw/)",
"questionnaireOptions": {
"hazardousMedicalWaste": "My business will generate `hazardous waste|hazardous-waste` or `medical waste|medical-waste`.",
"compostWaste": "My business will `compost waste|compost-waste` on site.",
"treatProcessWaste": "My business will treat or process waste.",
"constructionDebris": "My business will process `construction/demolition debris|construction-and-demo-debris` and recyclable materials.",
"noWaste": "None of the above apply."
}
},
"land": {
"mediaAreaText": "land management",
"mediaAreaLink": "[NJDEP’s page on the Watershed and Land Management Program](https://dep.nj.gov/wlm/)",
"questionnaireOptions": {
"takeOverExistingBiz": "My business will take over an existing business or a site where a business used to be.",
"propertyAssessment": "My business will carry out `property assessment|property-assessment` work at the site.",
"constructionActivities": "My business will carry out construction activities on a site affecting 0.25 or more acres of land.",
"siteImprovementWasteLands": "My business will carry out site improvement in or near wetlands or flood hazard areas. This includes activities such as cutting down trees.",
"noLand": "None of the above apply."
}
}
},
"wasteQuestionnaireResultsPage": {
"envReqResultsPage": {
"title": "Actions to Take",
"editInfo": "Your answers were successfully completed!",
"editText": "Edit.",
"summaryPtOne": "Based on your answers, your business may be legally required to have a Department of Environmental Protection’s (DEP)",
"summaryPtTwo": "license or permit. Find out your business' requirements below.",
"summaryMediaArea": "waste",
"summary": {
"ptOne": "Based on your answers, your business may be legally required to have a Department of Environmental Protection’s (DEP)",
"ptTwo": "license or permit. Find out your business' requirements below.",
"mediaAreaText": {
"waste": "waste",
"land": "watershed and land management"
}
},
"personalizedSupport": {
"title": "Contact DEP’s Small Business Assistance Program (SBAP)",
"body": "An expert at SBAP can help you figure out which permits your business needs. SBAP does not regulate or enforce environmental rules.",
"contact": "[email protected]"
},
"contactDep": {
"title":"Contact DEP",
"heading": "Waste Requirements",
"body": "To find out which licenses or permits you need, contact the [Division of Sustainable Waste Management](https://www.nj.gov/dep/dshw/):",
"contact": "609-633-1418"
"body": "To find out which licenses or permits you need, contact the ${bodyLink}",
"waste": {
"heading": "Waste Requirements",
"bodyLink": "[Division of Sustainable Waste Management](https://www.nj.gov/dep/dshw/):",
"contact": "609-633-1418"
},
"land": {
"heading": "Watershed and Land Management Requirements",
"bodyLink": "[Watershed and Land Management Program](https://dep.nj.gov/wlm/contact-us/):",
"contact": "(877) 927-6337",
"contactForm": "[Form](https://dep.nj.gov/wlm/contact-us/)"
}
},
"seeYourResponses": {
"title": "See Your Responses"
Expand Down
18 changes: 18 additions & 0 deletions content/src/roadmaps/add-ons/env-permitting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"id": "env-permitting",
"displayname": "env-permitting",
"roadmapSteps": [
{
"step": 3,
"weight": 20,
"task": "waste-permitting",
"required": false
},
{
"step": 3,
"weight": 21,
"task": "land-permitting",
"required": false
}
]
}
12 changes: 0 additions & 12 deletions content/src/roadmaps/add-ons/waste-permitting.json

This file was deleted.

8 changes: 8 additions & 0 deletions content/src/roadmaps/env-tasks/land-permitting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
summaryDescriptionMd: The New Jersey Department of Environmental Protection's (DEP) has environmental regulations for businesses in the State.
urlSlug: land-permitting
filename: land-permitting
displayname: Check Your Land Management Requirements
name: Check Your Land Management Requirements
id: land-permitting
---
48 changes: 46 additions & 2 deletions shared/src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
export type EnvironmentData = {
waste?: WasteData;
waste: WasteData;
land: LandData;
};

export type QuestionnaireFieldIds = WasteQuestionnaireFieldIds | LandQuestionnaireFieldIds;
export type Questionnaire = Record<QuestionnaireFieldIds, boolean>;
export type QuestionnaireConfig = Record<QuestionnaireFieldIds, string>;

export type WasteData = {
questionnaireData?: WasteQuestionnaireData;
questionnaireData: WasteQuestionnaireData;
submitted: boolean;
};

Expand All @@ -15,3 +20,42 @@ export type WasteQuestionnaireFieldIds =
| "noWaste";

export type WasteQuestionnaireData = Record<WasteQuestionnaireFieldIds, boolean>;

export type LandData = {
questionnaireData: LandQuestionnaireData;
submitted: boolean;
};

export type LandQuestionnaireFieldIds =
| "takeOverExistingBiz"
| "propertyAssessment"
| "constructionActivities"
| "siteImprovementWasteLands"
| "noLand";

export type LandQuestionnaireData = Record<LandQuestionnaireFieldIds, boolean>;

export const createEmptyEnvironmentData = () => {
return {
waste: {
questionnaireData: {
hazardousMedicalWaste: false,
compostWaste: false,
treatProcessWaste: false,
constructionDebris: false,
noWaste: false,
},
submitted: false,
},
land: {
questionnaireData: {
takeOverExistingBiz: false,
propertyAssessment: false,
constructionActivities: false,
siteImprovementWasteLands: false,
noLand: false,
},
submitted: false,
},
};
};
48 changes: 42 additions & 6 deletions shared/src/test/factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import { TaxFilingCalendarEvent } from "../calendarEvent";
import { getCurrentDate, getCurrentDateFormatted, getCurrentDateISOString } from "../dateHelpers";
import { defaultDateFormat } from "../defaultConstants";
import { createBusinessId } from "../domain-logic/createBusinessId";
import { EnvironmentData, WasteQuestionnaireData } from "../environment";
import {
EnvironmentData,
LandData,
LandQuestionnaireData,
WasteData,
WasteQuestionnaireData,
} from "../environment";
import {
createEmptyFormationFormData,
FormationData,
Expand Down Expand Up @@ -356,13 +362,43 @@ export const generateWasteQuestionnaireData = (
};
};

export const generateLandQuestionnaireData = (
overrides: Partial<LandQuestionnaireData>
): LandQuestionnaireData => {
return {
takeOverExistingBiz: false,
propertyAssessment: false,
constructionActivities: false,
siteImprovementWasteLands: false,
noLand: false,
...overrides,
};
};

export const generateLandData = (overrides: Partial<LandData>): LandData => {
return {
questionnaireData: generateLandQuestionnaireData({
...overrides.questionnaireData,
}),
submitted: false,
...overrides,
};
};

export const generateWasteData = (overrides: Partial<WasteData>): WasteData => {
return {
questionnaireData: generateWasteQuestionnaireData({
...overrides.questionnaireData,
}),
submitted: false,
...overrides,
};
};

export const generateEnvironmentData = (overrides: Partial<EnvironmentData>): EnvironmentData => {
return {
waste: {
submitted: false,
questionnaireData: generateWasteQuestionnaireData({ ...overrides.waste?.questionnaireData }),
...overrides.waste,
},
waste: generateWasteData({ ...overrides.waste }),
land: generateLandData({ ...overrides.land }),
...overrides,
};
};
Expand Down
6 changes: 3 additions & 3 deletions shared/src/userData.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BusinessUser } from "./businessUser";
import { createBusinessId } from "./domain-logic/createBusinessId";
import { EnvironmentData } from "./environment";
import { createEmptyEnvironmentData, EnvironmentData } from "./environment";
import { createEmptyFormationFormData, FormationData } from "./formationData";
import { LicenseData } from "./license";
import { createEmptyProfileData, ProfileData } from "./profileData";
Expand Down Expand Up @@ -28,7 +28,7 @@ export interface Business {
readonly preferences: Preferences;
readonly taxFilingData: TaxFilingData;
readonly formationData: FormationData;
readonly environmentData: EnvironmentData | undefined;
readonly environmentData: EnvironmentData;
}

export const CURRENT_VERSION = 150;
Expand Down Expand Up @@ -70,7 +70,7 @@ export const createEmptyBusiness = (id?: string): Business => {
dbaBusinessNameAvailability: undefined,
lastVisitedPageIndex: 0,
},
environmentData: undefined,
environmentData: createEmptyEnvironmentData(),
};
};

Expand Down
5 changes: 3 additions & 2 deletions web/src/components/TaskPageSwitchComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BusinessFormation } from "@/components/tasks/business-formation/Busines
import { BusinessStructureTask } from "@/components/tasks/business-structure/BusinessStructureTask";
import { CannabisApplyForLicenseTask } from "@/components/tasks/cannabis/CannabisApplyForLicenseTask";
import { CannabisPriorityStatusTask } from "@/components/tasks/cannabis/CannabisPriorityStatusTask";
import { CheckWastePermits } from "@/components/tasks/environment-questionnaire/CheckWastePermits";
import { EnvPermit } from "@/components/tasks/environment-questionnaire/EnvPermit";
import { Roadmap, Task, TasksDisplayContent, TaskWithLicenseTaskId } from "@/lib/types/types";
import { rswitch } from "@/lib/utils/helpers";
import { getTaskFromRoadmap } from "@/lib/utils/roadmap-helpers";
Expand Down Expand Up @@ -63,7 +63,8 @@ export const TaskPageSwitchComponent = ({
}

return rswitch(task.id, {
"waste-permitting": <CheckWastePermits task={task} />,
"waste-permitting": <EnvPermit task={task} />,
"land-permitting": <EnvPermit task={task} />,
"elevator-registration": (
<ElevatorRegistrationTask task={task} CMS_ONLY_disable_overlay={CMS_ONLY_disable_overlay} />
),
Expand Down

This file was deleted.

Loading

0 comments on commit 0e176b3

Please sign in to comment.