human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Partner Profile: Move Program address (if different) to just below the agency information.

Open scooter-dangle opened this issue 2 years ago • 6 comments

Summary

Move Program address (if different) fields to just below the agency information in the partner profile.

Why

Consensus From partnerbase working group meeting 20220713 that the fields belong in that order

Details

  • will need to update edit and show for both banks and partners
  • The appearance of these fields is controlled by the banks through "Edit My Information". Whatever choice the bank has made re the "agency stability" section of the profile must be preserved for these fields.
  • the fields involved are program_address1, program_addres2, program_city, program_state, program_zip_code

Suggested approach / advice

Create a new partial for program address (if different), inserting it at the beginning of the optional partials list. Will need a migration to update the organizations' choice of partials appropriately

Criteria for completion

  • [ ] Program address (if different) fields moved to just below the agency information in all 4 cases
  • [ ] Tests supporting this behaviour

scooter-dangle avatar Jan 22 '23 15:01 scooter-dangle

Taking a look at this to see if this is doable for me. Adding photos and my thoughts along the way to perhaps provide more information for someone else if they want to take a shot at it.

  • I first wanted to look at this from the perspective of a partner, so I logged in with the creds for the verified partner [email protected].
    • I am assuming that the show for a partner is where you are logged in as a partner and you click on my organization in the sidebar. image
    • I am assuming that the edit for a partner is when you are logged in as a partner and you click on Edit My Organization in the left hand sidebar. image

So I am assuming that I am removing the Program Address (if different) from the Agency Stability partial and creating its own partial that should go directly after the Agency Information. This partial will only render if the fields program_{address1, address2... etc} have values. Relevant file: app/views/partners/profiles/show/_agency_stability.html.erb On the edit page, I need to create a new partial - despite the Agency Stability and Program Address cards being visually disconnected, they are still in the same partials. Relevant file: app/views/partners/profiles/show/_agency_stability.html.erb

I haven't been able to find the Program Address (if different) or Agency Stability fields on banks. The organization info page http://localhost:3000/diaper_bank/organization doesn't have those fields. Any idea where these might live?

confused-cabbage avatar Jan 29 '23 16:01 confused-cabbage

@confused-cabbage Hi! If you aren't still working on this I would like to take a stab at it! @scooter-dangle Can you clarify what you mean by: "Move Program address (if different)"? Thank you!

jadekstewart3 avatar Jun 04 '23 18:06 jadekstewart3

Hey @jadekstewart3 Just going through old issues and found your question on this one. The label of the group of fields is "Program address (if different)". Does that clear things up? Also -- I think it's been more than long enough for you to take it on if you still want it.

cielf avatar Jan 09 '24 21:01 cielf

@cielf Sure, I'd be happy to take this on! And yes, that does clear that up for me - thank you!

jadekstewart3 avatar Jan 09 '24 23:01 jadekstewart3

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Feb 10 '24 00:02 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Feb 17 '24 00:02 github-actions[bot]