Skip to content
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: coliseum preferences issues - allow optional description & generic decline #1267

Merged
merged 5 commits into from
May 26, 2021

Conversation

emilyjablonski
Copy link
Collaborator

@emilyjablonski emilyjablonski commented May 25, 2021

Pull Request Template

Issue

Addresses #1199

  • This change addresses the issue in full
  • This change addresses only certain aspects of the issue
  • This change is a dependency for another issue
  • This change has a dependency from another issue

Description

The new preference request out of Coliseum requires that we be able to have preferences that don't have a description, that we don't automatically always show the "I don't want these preferences" option, and that we can have custom select text.

Below are two screenshots of the Coliseum OHA preference before this change and after this change. You can see in the before, the issues are that "read more" shows for the None of these preferences apply to me... and I don't want to be considered... options but there actually isn't a description to show for those, that the I don't want these preferences still shows even though we don't want it to, and that it reads "If you have one of these housing preferences...".

I added three new optional fields on preference to set the description to false for an individual preference, to hide the generic decline text from a preference set, and to add custom select text.

Screen Shot 2021-05-25 at 3 07 57 PM
Screen Shot 2021-05-25 at 4 15 29 PM

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Prototype/POC (not to merge)
  • This change is a refactor/address technical debt
  • This change requires a documentation update
  • This change requires a SQL Script

How Can This Be Tested/Reviewed?

You will need to import the Coliseum listing. You can find it here.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have updated the changelog to include a description of my changes

@emilyjablonski emilyjablonski added the wip This PR is not ready for review, do not review it's a “Work In Progress” label May 25, 2021
@netlify
Copy link

netlify bot commented May 25, 2021

✔️ Deploy Preview for clever-edison-cd22c1 ready!

🔨 Explore the source changes: 51b7c29

🔍 Inspect the deploy log: https://app.netlify.com/sites/clever-edison-cd22c1/deploys/60ae5d98e36acc0008d1f82c

😎 Browse the preview: https://deploy-preview-1267--clever-edison-cd22c1.netlify.app

@emilyjablonski emilyjablonski added ready for review and removed wip This PR is not ready for review, do not review it's a “Work In Progress” labels May 25, 2021
@emilyjablonski emilyjablonski changed the title fix: Coliseum preferences issues fix: coliseum preferences issues - allow optional description & generic decline May 25, 2021
@emilyjablonski emilyjablonski added wip This PR is not ready for review, do not review it's a “Work In Progress” and removed ready for review labels May 25, 2021
Copy link
Collaborator

@jaredcwhite jaredcwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

</p>
</ExpandableContent>
</div>
{!(option.description === false) && (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use option.description !== false?

@@ -184,132 +184,138 @@ const ApplicationPreferencesAll = () => {

<Form onSubmit={handleSubmit(onSubmit)}>
<>
<div className="form-card__group px-0 pb-0">
Copy link
Collaborator Author

@emilyjablonski emilyjablonski May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big diff! The only thing I did was move this into the map - nothing else :) git's "hide whitespace" setting helps this a bunch

@emilyjablonski emilyjablonski added ready for review and removed wip This PR is not ready for review, do not review it's a “Work In Progress” labels May 25, 2021
@emilyjablonski emilyjablonski merged commit 9ab6cae into master May 26, 2021
@emilyjablonski emilyjablonski deleted the preferences-issues branch May 26, 2021 14:54
willrlin referenced this pull request in CityOfDetroit/bloom Jun 9, 2021
willrlin referenced this pull request in CityOfDetroit/bloom Jun 9, 2021
willrlin referenced this pull request in CityOfDetroit/bloom Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants