bloom-housing / bloom

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

feat: lottery opt in #4205

Closed emilyjablonski closed 2 months ago

emilyjablonski commented 2 months ago

This PR addresses #4049

Description

Adds the lottery opt-in question on the partners listing form if the feature is toggled on. If a listing is saved with the opt-in toggle on, then there is also new copy in the preference drawer.

How Can This Be Tested/Reviewed?

With the toggle on, create/edit a listing - in the rankings and results section, if the review order is lottery, a Will the lottery be run in the partner portal? question will toggle on. You should be able to save it as both values. When the toggle is saved as on, there will be new copy in the preference drawer. If the toggle is off, you should not be able to see the lottery tab.

I do think this deserves a partners Cypress test, but I think that would be a larger effort bc we would need to set up a new job that turns the toggle on (ticket).

Author Checklist:

Review Process:

netlify[bot] commented 2 months ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit 47a1ae93e5cbc52cb7141bc549cdd02d10ad6ae8
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66995343d184df000814d7b5
Deploy Preview https://deploy-preview-4205--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 47a1ae93e5cbc52cb7141bc549cdd02d10ad6ae8
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/6699534396b66b0008db089c
Deploy Preview https://deploy-preview-4205--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.

emilyjablonski commented 2 months ago

@mcgarrye Yep yep that's expected, ty for taking a look!