bloom-housing / bloom

component-based web framework for affordable housing management
Apache License 2.0
34 stars 24 forks source link

fix: prevent listings without AMI charts #4169

Closed KrissDrawing closed 1 month ago

KrissDrawing commented 2 months ago

This PR addresses #692

Description

It's a change from task comment. It will throw an error when trying to add unit without ami chart

How Can This Be Tested/Reviewed?

Create new unit without touching AMI Chart dropdown. Try to save -> It should throw validation error (prevent from saving)

Author Checklist:

Review Process:

netlify[bot] commented 2 months ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit 5243e075e0a9505772330b8a18008866e9f31d22
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66b109624551310008aa0969
Deploy Preview https://deploy-preview-4169--partners-bloom-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 2 months ago

Deploy Preview for bloom-exygy-dev ready!

Name Link
Latest commit 5243e075e0a9505772330b8a18008866e9f31d22
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/66b10962c3d99800086b8fc1
Deploy Preview https://deploy-preview-4169--bloom-exygy-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

mcgarrye commented 2 months ago

I think this needs more discussion with product. Units can be added without AMIs and hiding the table but not changing how the Household Maximum Income section and Listings page/search to Listing flow confusing. Cases to note with the change this PR makes:

This creates a confusing user experience where the user may not understand what units are available, what the rent is for those units and if they are eligible. @sarahlazarich Screenshot 2024-07-02 at 2 25 47 PM Screenshot 2024-07-02 at 2 18 16 PM Screenshot 2024-07-02 at 2 15 10 PM Screenshot 2024-07-02 at 2 25 47 PM

sarahlazarich commented 2 months ago

Good points @mcgarrye - let me confirm with Izzie if we should just block this entirely. I'll follow up.

ColinBuyck commented 1 month ago

Looks like partners cypress tests are failing. Do you mind checking this out @KrissDrawing?