From 1fd5cad4c4f0fdf382b861723e9643ded44bb1b2 Mon Sep 17 00:00:00 2001 From: pjsier Date: Tue, 2 Jan 2024 17:14:36 -0500 Subject: [PATCH] Content updates before comparables --- api/templates/emails/submission_detroit.html | 8 +- cypress/e2e/appeals.cy.js | 111 ++++++++-------- src/components/header.jsx | 10 +- src/components/property-info.jsx | 21 +-- src/context/appeal.jsx | 5 +- src/layouts/page-layout.jsx | 7 +- src/pages/content/appeal-intro.jsx | 39 +++--- src/pages/final-page.jsx | 9 +- src/pages/steps/agreement.jsx | 130 +++++++------------ src/pages/steps/appeal-lookup.jsx | 18 ++- src/pages/steps/damage.jsx | 27 ++-- src/pages/steps/homeowner-info.jsx | 59 +++++---- src/pages/steps/review-appeal.jsx | 82 +++++------- src/pages/steps/review-comparables.jsx | 15 ++- src/pages/steps/review-property.jsx | 11 +- src/utils.js | 49 ++++--- 16 files changed, 295 insertions(+), 306 deletions(-) diff --git a/api/templates/emails/submission_detroit.html b/api/templates/emails/submission_detroit.html index 194946a..91f144f 100644 --- a/api/templates/emails/submission_detroit.html +++ b/api/templates/emails/submission_detroit.html @@ -6,7 +6,7 @@ Steps in Appeals Process: diff --git a/cypress/e2e/appeals.cy.js b/cypress/e2e/appeals.cy.js index 2c84b6a..29a6367 100644 --- a/cypress/e2e/appeals.cy.js +++ b/cypress/e2e/appeals.cy.js @@ -14,73 +14,70 @@ describe("Appeal flow", () => { it("Submits an appeal", () => { const regions = [detroit, cook] - regions.forEach( - ({ appealUrl, pin, street_number, street_name, comparables }) => { - cy.visit(appealUrl) - cy.get("#Eligibility_residence [type=radio]").check("Yes") - cy.get("#Eligibility_owner [type=radio]").check("Yes") + regions.forEach(({ appealUrl, pin, street_number, street_name }) => { + cy.visit(appealUrl) + cy.get("#Eligibility_residence [type=radio]").check("Yes") + cy.get("#Eligibility_owner [type=radio]").check("Yes") - cy.get("input[placeholder=number]").type(street_number) - cy.get("input[placeholder=street]").type(street_name) - cy.get("button[type=submit]").click() - cy.get(".ant-table-content").contains(pin).should("exist") + cy.get("input[placeholder=number]").type(street_number) + cy.get("input[placeholder=street]").type(street_name) + cy.get("button[type=submit]").click() + cy.get(".ant-table-content").contains(pin).should("exist") - cy.get(".ant-table-cell button").first().click() - cy.get("button").contains("Next Page").click() + cy.get(".ant-table-cell button").first().click() + cy.get("button").contains("Next Page").click() - cy.get("h1").contains("Homeowner Contact Information").should("exist") - cy.get("#Housing_Information_first_name").type(contact.first_name) - cy.get("#Housing_Information_last_name").type(contact.last_name) - cy.get("#Housing_Information_email").type(contact.email) - cy.get("#Housing_Information_phone").type(contact.phone) - cy.get("#Housing_Information_phonetype [type=radio]").check("Home") - cy.get("#Housing_Information_address").type(contact.address) - cy.get("#Housing_Information_city").type(contact.city) - cy.get("#Housing_Information_state").type(contact.state) - cy.get("#Housing_Information_zip").type(contact.zip) - cy.get("#Housing_Information_mailingsame [type=radio]").check("Yes") - cy.get("#Housing_Information_altcontact [type=radio]").check("No") - cy.get("#Housing_Information_phonetime [type=radio]").check("anytime") - cy.get("#Housing_Information_heardabout").click() - cy.get(".ant-select-dropdown").contains("Local Organization").click() - cy.get("button[type=submit]").contains("Next Page").click() + cy.get("h1").contains("Homeowner Contact Information").should("exist") + cy.get("#Housing_Information_first_name").type(contact.first_name) + cy.get("#Housing_Information_last_name").type(contact.last_name) + cy.get("#Housing_Information_email").type(contact.email) + cy.get("#Housing_Information_phone").type(contact.phone) + cy.get("#Housing_Information_phonetype [type=radio]").check("Home") + cy.get("#Housing_Information_address").type(contact.address) + cy.get("#Housing_Information_city").type(contact.city) + cy.get("#Housing_Information_state").type(contact.state) + cy.get("#Housing_Information_zip").type(contact.zip) + cy.get("#Housing_Information_mailingsame [type=radio]").check("Yes") + cy.get("#Housing_Information_altcontact [type=radio]").check("No") + cy.get("#Housing_Information_heardabout").click() + cy.get(".ant-select-dropdown").contains("Local Organization").click() + cy.get("button[type=submit]").contains("Next Page").click() - cy.get("#Agreement_agreement label") - .contains("I want FREE ASSISTANCE") - .click() - cy.get("#Agreement_agreement_name").type(contact.name) - cy.get("button").contains("Next Page").click() + cy.get("#Agreement_agreement label") + .contains("I want FREE ASSISTANCE") + .click() + cy.get("#Agreement_agreement_name").type(contact.name) + cy.get("button").contains("Next Page").click() - cy.get(".ant-table-row") - .contains(`${street_number} ${street_name}`) - .should("be.visible") + cy.get(".ant-table-row") + .contains(`${street_number} ${street_name}`) + .should("be.visible") - cy.get("#Housing_Information_validcharacteristics [type=radio]").check( - "Yes" - ) - cy.get("button[type=submit]").contains("Next Page").click() + cy.get("#Housing_Information_validcharacteristics [type=radio]").check( + "Yes" + ) + cy.get("button[type=submit]").contains("Next Page").click() - comparables.forEach(({ street_number, street_name }) => { - cy.get(".ant-table-content") - .last() - .contains("td", `${street_number} ${street_name}`) - .should("exist") - .parent() - .find("button") - .click() - }) + // comparables.forEach(({ street_number, street_name }) => { + // cy.get(".ant-table-content") + // .last() + // .contains("td", `${street_number} ${street_name}`) + // .should("exist") + // .parent() + // .find("button") + // .click() + // }) - cy.get("button").contains("Next Page").click() + // cy.get("button").contains("Next Page").click() - cy.get("#damage_damage_level label").contains("Average").click() - cy.get("button").contains("Next Page").click() + cy.get("#damage_damage_level label").contains("Average").click() + cy.get("button").contains("Next Page").click() - cy.get("button").contains("Finalize Application").click() + cy.get("button").contains("Finalize Application").click() - cy.get("h2") - .contains("Your application has now been submitted.") - .should("be.visible") - } - ) + cy.get("h2") + .contains("Your application has now been submitted.") + .should("be.visible") + }) }) }) diff --git a/src/components/header.jsx b/src/components/header.jsx index a21f714..a42e0d1 100644 --- a/src/components/header.jsx +++ b/src/components/header.jsx @@ -1,7 +1,7 @@ import React from "react" import { Layout, Menu } from "antd" import coalition from "../assets/coalition_logo.png" -import { CONTACT_EMAIL } from "../utils" +import { CONTACT_EMAIL, HELP_LINK } from "../utils" const { Header } = Layout @@ -20,8 +20,12 @@ const PTAPHeader = () => ( Coalition Logo - - Call or text us at: 313-329-7610 + + + + Make an appointment + + Email us at: {CONTACT_EMAIL} diff --git a/src/components/property-info.jsx b/src/components/property-info.jsx index 103ac91..c6b956e 100644 --- a/src/components/property-info.jsx +++ b/src/components/property-info.jsx @@ -1,6 +1,6 @@ import React from "react" import PropTypes from "prop-types" -import { Table, Alert } from "antd" +import { Table } from "antd" import { cleanParcel, DISPLAY_FIELDS, DISPLAY_FIELDS_COOK } from "../utils" // displays the target property information @@ -10,24 +10,6 @@ const PropertyInfo = ({ city, target }) => { : DISPLAY_FIELDS const fields = baseFields.filter(({ title }) => title !== "Distance") - let additionalInfo = "" - if (city === "detroit") { - additionalInfo = ( - <> -

- Taxpayer of Record: {target.taxpayer}. Current Principal Residence - Exemption (PRE) Exemption Status: {target.homestead_exemption}%. -

- {+target.homestead_exemption === 100 && ( - - )} - - ) - } - return ( <> { ))}

- {additionalInfo} ) } diff --git a/src/context/appeal.jsx b/src/context/appeal.jsx index 4845a29..75d1e1a 100644 --- a/src/context/appeal.jsx +++ b/src/context/appeal.jsx @@ -63,9 +63,6 @@ function appealReducer(appeal, action) { }, } } - case "set-agreement": { - return { ...appeal, agreement: action.agreement } - } case "set-agreement-name": { return { ...appeal, @@ -113,7 +110,7 @@ const initialAppeal = { eligible: null, target: null, propertyInfo: null, - agreement: null, + agreement: true, // TODO: Remove from multiple places agreement_name: null, estimate: {}, step: 1, diff --git a/src/layouts/page-layout.jsx b/src/layouts/page-layout.jsx index 6b839c5..2953f73 100644 --- a/src/layouts/page-layout.jsx +++ b/src/layouts/page-layout.jsx @@ -2,6 +2,7 @@ import React from "react" import PropTypes from "prop-types" import { Layout } from "antd" import Header from "../components/header" +import { HELP_LINK } from "../utils" const { Content, Footer } = Layout @@ -12,8 +13,10 @@ const PageLayout = (props) => (
{props.children}
- Call 313-438-8698 with any questions. Please leave a message if we - don't pick up and we will return your call within 48 hours. + + Make an appointment + {" "} + if you have any questions
) diff --git a/src/pages/content/appeal-intro.jsx b/src/pages/content/appeal-intro.jsx index d77faab..462b25e 100644 --- a/src/pages/content/appeal-intro.jsx +++ b/src/pages/content/appeal-intro.jsx @@ -4,13 +4,6 @@ import { HELP_LINK } from "../../utils" const AppealIntro = ({ city }) => ( <> -

- Disclaimer: Completing this Application does not guarantee that the - Project will be able to represent you. The information you provide will - help the Project determine if we can assist you. After completing this - Application, the Project will try to contact you three times. If we don’t - hear from you after three attempts, we will remove you from our list. -

The Appeals Process

Here is a general overview of the appeals process:

@@ -18,10 +11,12 @@ const AppealIntro = ({ city }) => (
  • Step 1: Complete this online application by{" "} - February 15, 2024. If you are unable to complete the - Application or have questions, plase fill out this form to set up an - appointment to answer any questions or troubleshoot any issues you - might have: Schedule an appointment + March 1, 2024. If you are unable to complete the application or + have questions, please fill out this form to set up an appointment to + answer any questions or troubleshoot any issues you might have:{" "} + + Schedule an appointment +
  • Step 2: We will review your application, determine if you are @@ -29,13 +24,13 @@ const AppealIntro = ({ city }) => ( may need.
  • - Step 3: An advocate from our team will submit your documents to - the March Board of Review by March 8, 2024. + Step 3: Our team will submit your documents to the March Board + of Review by March 8, 2024.
  • Step 4: Before June of 2024, the Board of Review will send you - a letter notifying you whether your home's assessed value is - reduced because of your appeal. + a letter notifying you whether it has reduced your home's + assessed value because of your appeal.
)} @@ -43,7 +38,7 @@ const AppealIntro = ({ city }) => (
  • Step 1: Contact the Coalition for Property Tax Justice and work - with an advocate to complete this Application. If you have questions, + with an advocate to complete this application. If you have questions, email us:   chicagoptap@gmail.com @@ -54,7 +49,7 @@ const AppealIntro = ({ city }) => ( Step 2: Review your eligibility for services with an advocate.
  • - Step 3: If your Application is accepted, an advocate will work + Step 3: If your application is accepted, an advocate will work with you to carefully review your application. At this stage, you must send your advocate pictures of any repairs your home may need, as this can help lower your assessment. @@ -77,14 +72,20 @@ const AppealIntro = ({ city }) => ( {city == "detroit" && (
    • You own a home in the City of Detroit.
    • -
    • You occupy that home as your permanent residence.
    • +
    • + You occupy that home as your permanent residence (we do not service + landlords). +
    • Your home is worth $100,000 or less.
    )} {city == "chicago" && (
    • You own a home in Cook County.
    • -
    • You occupy that home as your permanent residence.
    • +
    • + You occupy that home as your permanent residence (we do not service + landlords). +
    • Your home is worth $225,000 or less.
    )} diff --git a/src/pages/final-page.jsx b/src/pages/final-page.jsx index 6f61ce0..5c05160 100644 --- a/src/pages/final-page.jsx +++ b/src/pages/final-page.jsx @@ -1,7 +1,7 @@ import React from "react" import { Button, Space } from "antd" -const PTAPHeader4 = () => ( +const FinalPage = () => ( <>

    Your application has now been submitted.

    @@ -13,17 +13,18 @@ const PTAPHeader4 = () => (

    +

    Do you want to join our fight for Property Tax Justice

    ) -export default PTAPHeader4 +export default FinalPage diff --git a/src/pages/steps/agreement.jsx b/src/pages/steps/agreement.jsx index 5ca15dd..0db355a 100644 --- a/src/pages/steps/agreement.jsx +++ b/src/pages/steps/agreement.jsx @@ -1,8 +1,9 @@ import React, { useContext, useState } from "react" -import { Button, Divider, Form, Radio, Row, Space, Col, Input } from "antd" +import { Button, Divider, Form, Row, Space, Col, Input } from "antd" import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" import { submitAgreement } from "../../requests" +import { getPageLabel } from "../../utils" const Agreement = () => { const appeal = useContext(AppealContext) @@ -14,11 +15,11 @@ const Agreement = () => { return ( <> - +

    Agreement

    - Once you complete this app, the Institute for Law and Organizing - will create an appeal letter for FREE. + Law and Organizing (ILO), which is a Detroit based non-profit, will + create an appeal letter FREE of charge.

    { autoComplete="off" size="large" > +

    Representation Agreement

    +

    + By typing your name below, you are signing a document that allows + the Institute for Law and Organizing (“ILO”) to represent you in + appealing your property tax assessment before the City of + Detroit's March Board of Review. +

    +
      +
    • + By signing this agreement, ILO is not agreeing to represent you + as an attorney or on any matters other than the appeal of your + property tax assessment. +
    • +
    • + ILO’s representatives are not Michigan-licensed attorneys. +
    • +
    • ILO agrees to represent you for FREE.
    • +
    • + ILO will help you draft your appeal letter, with the assistance + of this application. If you complete this online application and + respond in a timely manner to any communications from ILO + regarding the letter, ILO will file your letter. +
    • +
    • + If ILO files your appeal letter, ILO will argue your appeal + before the March Board of Review. +
    • +
    - - dispatch({ type: "set-agreement", agreement: e.target.value }) + dispatch({ + type: "set-agreement-name", + agreement_name: e.target.value, + }) } - > - - - I want FREE ASSISTANCE submitting my appeal from the - Institute for Law and Organizing. - - - - - I do NOT want free assistance submitting my appeal from the - Institute for Law and Organizing. - -
    - - If you choose this option your appeal letter will be sent to - you by February 15th, and you will have to submit it to the - Detroit March Board of Review WITHOUT ASSISTANCE from the - Institute for Law and Organizing. - -
    -
    + />
    - {appeal.agreement && ( - <> -

    Representation Agreement

    -

    - By typing your name below, you are signing a document that - allows the Institute for Law and Organizing (“ILO”) to - represent you in appealing your property tax assessment before - the City of Detroit's March Board of Review. -

    -
      -
    • - By signing this agreement, ILO is not agreeing to represent - you as an attorney or on any matters other than the appeal - of your property tax assessment. -
    • -
    • - ILO’s representatives are not Michigan-licensed attorneys. -
    • -
    • ILO agrees to represent you for FREE.
    • -
    • - ILO will help you draft your appeal letter, with the - assistance of this application. If you complete this online - application and respond quickly to any communications from - ILO regarding the letter, ILO will file your letter. -
    • -
    • - If ILO files your appeal letter, ILO will argue your appeal - before the March Board of Review. -
    • -
    - - - dispatch({ - type: "set-agreement-name", - agreement_name: e.target.value, - }) - } - /> - - - )}
    @@ -129,12 +92,7 @@ const Agreement = () => { -

    Page 1 of 7

    +

    {getPageLabel("appeal-lookup")}

    ) } diff --git a/src/pages/steps/damage.jsx b/src/pages/steps/damage.jsx index aef234a..ac33216 100644 --- a/src/pages/steps/damage.jsx +++ b/src/pages/steps/damage.jsx @@ -1,22 +1,24 @@ import React, { useContext } from "react" -import { CONTACT_EMAIL } from "../../utils" +import { getPageLabel, HELP_LINK } from "../../utils" import { Button, Divider, Form, Radio, Space, Input } from "antd" import { FileUpload } from "../../components/file-upload" import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" + const formItemLayout = { labelCol: { - span: 12, + span: 16, }, wrapperCol: { xs: { span: 24, }, md: { - span: 12, + span: 16, }, }, } + const Damage = () => { const appeal = useContext(AppealContext) const dispatch = useContext(AppealDispatchContext) @@ -41,7 +43,15 @@ const Damage = () => { { required: true, message: "You must select one of the options" }, ]} label="To the best of your abilities, please pick a category that best describes the condition of your home. The Assessor uses these categories and criteria to rate the condition." - help={`If you have any questions about how to categorize your home, please send us an email at ${CONTACT_EMAIL}.`} + help={ + + If you have any questions about how to categorize your home, + please{" "} + + make an appointment + + + } > {
    { {appeal.city !== "chicago" && ( dispatch({ type: "set-files", files })} @@ -116,7 +127,7 @@ const Damage = () => { @@ -130,7 +141,7 @@ const Damage = () => { -

    Page 6 of 7

    +

    {getPageLabel("damage")}

    ) } diff --git a/src/pages/steps/homeowner-info.jsx b/src/pages/steps/homeowner-info.jsx index aa4aa0f..48876b3 100644 --- a/src/pages/steps/homeowner-info.jsx +++ b/src/pages/steps/homeowner-info.jsx @@ -1,6 +1,6 @@ import React, { useState, useContext } from "react" import { Form, Input, Button, Radio, Space, Select, Divider } from "antd" -import { getAppealType } from "../../utils" +import { getAppealType, getPageLabel } from "../../utils" const { Option } = Select import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" @@ -398,30 +398,6 @@ const HomeownerInfo = () => { )}
    - - - - Morning (before 11 a.m.) - Midday (between 11 a.m. and 2 p.m.) - - Afternoon (between 2 p.m. and 6 p.m.) - - Evening (between 6 p.m. and 8 p.m.) - Anytime - - - - { + {heardAbout === "social media" && ( + <> + + + + + + + + + )} + + {heardAbout === "local" && ( + + + + )} + {heardAbout === "referral" && ( { -

    Page 2 of 7

    +

    {getPageLabel("homeowner-info")}

    ) } diff --git a/src/pages/steps/review-appeal.jsx b/src/pages/steps/review-appeal.jsx index 5abeb36..6a69748 100644 --- a/src/pages/steps/review-appeal.jsx +++ b/src/pages/steps/review-appeal.jsx @@ -1,7 +1,6 @@ import React, { useContext, useState } from "react" import { Button, Divider, Table, Space, Row, Col, Image } from "antd" -import PropertyInfo from "../../components/property-info" -import { cleanParcel } from "../../utils" +import { getPageLabel } from "../../utils" import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" import { submitAppeal } from "../../requests" @@ -44,33 +43,33 @@ const userCols = [ }, ] -const compCols = [ - { - title: "Address", - dataIndex: "address", - key: "address", - }, - { - title: "Pin", - dataIndex: "pin", - key: "pin", - }, - { - title: "Assessed Value", - dataIndex: "assessed_value_display", - key: "assessed_value_display", - }, - { - title: "Sale Price (if available)", - dataIndex: "sale_price_display", - key: "sale_price_display", - }, - { - title: "Sale Date", - dataIndex: "sale_date", - key: "sale_date", - }, -] +// const compCols = [ +// { +// title: "Address", +// dataIndex: "address", +// key: "address", +// }, +// { +// title: "Pin", +// dataIndex: "pin", +// key: "pin", +// }, +// { +// title: "Assessed Value", +// dataIndex: "assessed_value_display", +// key: "assessed_value_display", +// }, +// { +// title: "Sale Price (if available)", +// dataIndex: "sale_price_display", +// key: "sale_price_display", +// }, +// { +// title: "Sale Date", +// dataIndex: "sale_date", +// key: "sale_date", +// }, +// ] const ReviewAppeal = () => { const [loading, setLoading] = useState(false) @@ -90,25 +89,20 @@ const ReviewAppeal = () => { return ( <> - +

    Your Appeal

    - Below is the information you submitted as part of your Application. - If the information is correct, please click the blue button to - finalize your Application. + Below is the information you submitted as part of your application. + If the information is correct, please click the blue button at the + bottom of this page to finalize your application.

    If you need to make changes to any of this information please use the “back button” to make those changes.

    -

    Your Property Information

    -

    - Below is the data that the Assessor has on file for your property. -

    -

    Your Information

    { scroll={{ x: true }} /> -

    Your Comparables

    -

    - We automatically include comparables until five are selected here. This - can be changed later. -

    + {/*

    Your Comparables

    - + /> */} + {/* */}

    Your Property Condition

    Damage level @@ -171,7 +161,7 @@ const ReviewAppeal = () => { -

    Page 7 of 7

    +

    {getPageLabel("review-appeal")}

    ) } diff --git a/src/pages/steps/review-comparables.jsx b/src/pages/steps/review-comparables.jsx index a90cba0..9c4854d 100644 --- a/src/pages/steps/review-comparables.jsx +++ b/src/pages/steps/review-comparables.jsx @@ -1,7 +1,12 @@ import React, { useContext } from "react" import { Button, Row, Col, Space, Divider } from "antd" import PropertyInfo from "../../components/property-info" -import { cleanParcel, DISPLAY_FIELDS, DISPLAY_FIELDS_COOK } from "../../utils" +import { + cleanParcel, + DISPLAY_FIELDS, + DISPLAY_FIELDS_COOK, + getPageLabel, +} from "../../utils" import PinChooser from "../../components/pin-chooser" import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" @@ -40,7 +45,7 @@ const ReviewComparables = () => { return ( <> -
    +

    Pick the 3-5 properties that are the most similar to your property.

    @@ -63,7 +68,7 @@ const ReviewComparables = () => {

    If you are unsure about how best to select properties please{" "} - + make an appointment with a Community Advocate . @@ -74,7 +79,7 @@ const ReviewComparables = () => { -

    +

    Potential comparable properties near you

    Below is a list of homes in your area that we have identified as @@ -111,7 +116,7 @@ const ReviewComparables = () => { -

    Page 5 of 7

    +

    {getPageLabel("review-comparables")}

    ) } diff --git a/src/pages/steps/review-property.jsx b/src/pages/steps/review-property.jsx index 23578a3..a33a610 100644 --- a/src/pages/steps/review-property.jsx +++ b/src/pages/steps/review-property.jsx @@ -3,6 +3,7 @@ import { Form, Button, Row, Col, Space, Divider, Input, Radio } from "antd" import PropertyInfo from "../../components/property-info" import { AppealContext, AppealDispatchContext } from "../../context/appeal" import { useNavigate } from "react-router-dom" +import { getPageLabel } from "../../utils" const { TextArea } = Input @@ -36,7 +37,13 @@ const ReviewProperty = () => { const onFinish = (info) => { console.log("Received values of form: ", info) dispatch({ type: "set-user-property", userProperty: info }) - navigate("../comparables") + // TODO: Temporary while not collecting data + dispatch({ + type: "select-comparables", + pins: [], + }) + navigate("../damage") + // navigate("../comparables") } return ( @@ -105,7 +112,7 @@ const ReviewProperty = () => { -

    Page 4 of 7

    +

    {getPageLabel("review-property")}

    ) } diff --git a/src/utils.js b/src/utils.js index ee19218..8a19de5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -12,6 +12,19 @@ export function getMaxComparables(city) { return 5 } +export function getPageLabel(pageName) { + const pages = [ + "appeal-lookup", + "homeowner-info", + "agreement", + "review-property", + // "review-comparables", + "damage", + "review-appeal", + ] + return `Page ${pages.indexOf(pageName) + 1} of ${pages.length}` +} + export const HELP_LINK = "https://calendly.com/illegalforeclosures-detroit/30min" @@ -23,8 +36,8 @@ export const DISPLAY_FIELDS = [ field: "address", }, { - title: "Age", - field: "age", + title: "Year built", + field: "year_built", }, { title: "Stories (Not Including Basement)", @@ -54,22 +67,22 @@ export const DISPLAY_FIELDS = [ title: "Distance", field: "distance_display", }, - { - title: "Neighborhood", - field: "neighborhood", - }, - { - title: "Assessor Market Value", - field: "market_value_display", - }, - { - title: "Sale Price", - field: "sale_price_display", - }, - { - title: "Sale Date", - field: "sale_date", - }, + // { + // title: "Neighborhood", + // field: "neighborhood", + // }, + // { + // title: "Assessor Market Value", + // field: "market_value_display", + // }, + // { + // title: "Sale Price", + // field: "sale_price_display", + // }, + // { + // title: "Sale Date", + // field: "sale_date", + // }, ] export const DISPLAY_FIELDS_COOK = [