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

1721/remove business logic from HouseholdMemberForm component #1722

Merged
merged 5 commits into from
Sep 9, 2021

Conversation

emilyjablonski
Copy link
Collaborator

@emilyjablonski emilyjablonski commented Aug 24, 2021

Pull Request Template

Issue

Addresses #1721

  • 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

Removes business logic from HouseholdMemberForm component.

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?

Start an application. At the household members part, add some household members, and click the edit button to ensure the routing works properly to each individual person.

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

@netlify
Copy link

netlify bot commented Aug 24, 2021

✔️ Deploy Preview for dev-bloom ready!

🔨 Explore the source changes: 186d0ff

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-bloom/deploys/613a2f5b1a71030008bac580

😎 Browse the preview: https://deploy-preview-1722--dev-bloom.netlify.app

@netlify
Copy link

netlify bot commented Aug 24, 2021

✔️ Deploy Preview for dev-partners-bloom ready!

🔨 Explore the source changes: 186d0ff

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-partners-bloom/deploys/613a2f5b890d0a0008411625

😎 Browse the preview: https://deploy-preview-1722--dev-partners-bloom.netlify.app

@netlify
Copy link

netlify bot commented Aug 24, 2021

✔️ Deploy Preview for dev-storybook-bloom ready!

🔨 Explore the source changes: 186d0ff

🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/613a2f5bcf361900086162ea

😎 Browse the preview: https://deploy-preview-1722--dev-storybook-bloom.netlify.app

Base automatically changed from dev to master August 25, 2021 17:59
@emilyjablonski emilyjablonski changed the base branch from master to dev August 25, 2021 18:02
@dominikx96 dominikx96 self-requested a review August 27, 2021 13:47
Copy link
Collaborator

@dominikx96 dominikx96 left a comment

Choose a reason for hiding this comment

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

@emilyjablonski I've noticed a problem with editing members. I think it's not related to your changes, but definitely, it's a problem :D

Steps to reproduce:

http://localhost:3000/applications/household/member?memberId=1#

  1. create 2 additional HH members (primary + 2 others)
  2. delete one HH member (not primary)
  3. try to edit other HH member (not primary)

It occurs empty edit member form.

Housing Portal 2021-08-27 at 3 53 27 PM

@seanmalbert
Copy link
Collaborator

@emilyjablonski ,

If the problem that @dominikx96 calls out isn't a quick fix that makes sense to do here, can you please open a separate bug and add it to the backlog.

@emilyjablonski
Copy link
Collaborator Author

Good catch @dominikx96! The problem exists on dev, and to repro the person you delete needs to be the first person you added (so the third person has the index shifted). I pushed a fix.

@netlify
Copy link

netlify bot commented Aug 27, 2021

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

🔨 Explore the source changes: 28bd956

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

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

@netlify
Copy link

netlify bot commented Aug 27, 2021

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

🔨 Explore the source changes: 9e804c1

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

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

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.

I wonder if this should even remain in ui-components or just be relocated to the public site. Is it all that reusable outside of its original scenario?

{editMode ? (
<a id="edit-member" className="edit-link" href="#" onClick={editMember}>
<a
Copy link
Collaborator

Choose a reason for hiding this comment

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

While you're in here…this should probably be changed to button and not be an a since it doesn't actually go to a real href.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated!

@emilyjablonski emilyjablonski merged commit aac21dc into dev Sep 9, 2021
@emilyjablonski emilyjablonski deleted the 1721/household-member-form branch September 9, 2021 17:42
seanmalbert pushed a commit to CityOfDetroit/bloom that referenced this pull request Jun 23, 2022
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.

None yet

4 participants