Salesforce-org-Impact-Labs / 01HousingandHomelessness

Impact Lab - Housing & Homelessness
BSD 3-Clause "New" or "Revised" License
12 stars 12 forks source link

Referral Flow launch closes Service Match component #209

Open AIrwin33 opened 3 years ago

AIrwin33 commented 3 years ago

Currently, the entire serviceRecommendations LWC component is wrapped in an Aura component so that we can launch the Referral flow. When the Refer button is pressed on a given recommended service, the LWC component closes and the flow that's launched takes up that place on the screen.

This is less of an issue when the component is on the left sidebar but when its expanded in the modal, it looks awkward when the entire modal is closed and the flow kicks off.

A way around this could be to wrap the serviceRecommendation.js component in an aura component that could launch the flow, instead of wrapping the entire lightning component. This would be a general improvement on the UI and would hopefully offer a cleaner nesting of components.

AIrwin33 commented 3 years ago

@endlesscurls I think this would solve a few of the UI issues we talked about before. It would make it easier to work in a back button to return to the main component from the flow and we wouldn't need to include the Service Match header in the flow because the users wouldn't have left the main component.

AIrwin33 commented 3 years ago

Quick update: looks like we'll have to move all of the logic out of the serviceRecommendations LWC to the wrapper Aura Component since we still can't nest Aura Components in Web components.