-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: adding home type to model #1502
Conversation
✅ Deploy Preview for detroit-partners-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for detroit-public-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for detroit-storybook-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -0,0 +1,14 @@ | |||
import { MigrationInterface, QueryRunner } from "typeorm" | |||
|
|||
export class addHomeTypes1668556487187 implements MigrationInterface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have anticipated seeing a type created here for the home_type instead of character varying
as happened here: https://github.com/CityOfDetroit/bloom/blob/dev/backend/core/src/migration/1649374032458-marketing-season.ts
Was this migration auto generated?
@@ -175,6 +180,23 @@ const FormUnits = ({ listing, unitsSummaries, setSummaries, disableUnitsAccordio | |||
grid={false} | |||
separator | |||
> | |||
<GridSection columns={3} className={"pb-10"}> | |||
<GridCell> | |||
<p className="field-label">{t("listings.homeType")}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to wrap this in <ViewItem>
so the styling is consistent elsewhere, where we usually wraps selects in that component
@emilyjablonski Thanks for the feedback! All of those comments should be addressed with the most recent commit 🐟 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦖
* fix: wip adding home type to model * fix: update for swagger changes * fix: backend swagger updates * fix: wip migration * fix: updated migration, detail + summary view * fix: clean up * fix: seeding + figma alignment * fix: added null default * fix: cleanup per pr feedback Co-authored-by: Yazeed Loonat <yazeedloonat@gmail.com>
* feat: change management company to contact information (#1507) * feat: add verified at field to listings (#1501) * fix: adding home type to model (#1502) * fix: wip adding home type to model * fix: update for swagger changes * fix: backend swagger updates * fix: wip migration * fix: updated migration, detail + summary view * fix: clean up * fix: seeding + figma alignment * fix: added null default * fix: cleanup per pr feedback Co-authored-by: Yazeed Loonat <yazeedloonat@gmail.com> * 1482/home type filter (#1510) * fix: wip adding home type to model * fix: update for swagger changes * fix: backend swagger updates * fix: wip migration * fix: updated migration, detail + summary view * fix: clean up * fix: seeding + figma alignment * fix: added null default * fix: home type filtering * fix: merge clean up * fix: single looping on home types Co-authored-by: Yazeed Loonat <yazeedloonat@gmail.com> * 1480/home types labels (#1511) * feat: add home type label to listing card * feat: add home type label to listing view * feat: add home type tag to existing listing tags array * feat: remove redundant homeType prop from ListingCard * feat: add translations (#1513) * feat: change leasing agent contact translations (#1517) Co-authored-by: Krzysztof Zięcina <kriss.kontakt@gmail.com> Co-authored-by: ColinBuyck <53269332+ColinBuyck@users.noreply.github.com> Co-authored-by: Yazeed Loonat <yazeedloonat@gmail.com>
Pull Request Template
Issue Overview
This PR addresses #1479
Description
This PR adds home types to the listing model and handles updating/viewing this information on the partner's side.
How Can This Be Tested/Reviewed?
This can be reviewed by logging into the partner's side and then selecting a listing. View the home type in the Unit Section, click edit, update it, and ensure that the new information is reflected in that same Unit Section.
Checklist:
yarn generate:client
and/or created a migration if I made backend changes that require themReviewer Notes:
Steps to review a PR:
On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.