involveMINT / iMPublic

Public involveMINT repo
https://app.involvemint.io
7 stars 20 forks source link

working through onboarding slide redirection issue #319

Open fogunsan opened 1 week ago

fogunsan commented 1 week ago

I worked through this ticket and am semi-blocked as to how to resolve it. I do not see an "Apply for Yourself" button on my UI but when I click on register an exchange partner and fill out the form, the same set of bugs are occurring as described in the ticket. Screenshot 2024-06-16 at 3 51 18 PM

As per Ben's suggestion, I commented out,

if (!ImConfig.requireApplicationApproval) { window.location.reload(); } in the submitEpApplication effects which initiates when the submitEpApplication action is triggered. Commenting it out prevents the projects screen from showing up however it still does not lead to the onboarding page. I tried adding this line this.route.to.ep.onboarding.ROOT; to that effect right before it returns return UserSessionActions.submitEpApplicationSuccess({ epApp }); but this did not help. Also putting that same line in ep-application.component.ts file after the submitEpApplication action is successfully dispatched did not help either.

I believe the issue lies in Im-app.component.ts in the listenOnboardingActions() method because there is a switch statement switch (ep?.onboardingState) with a case EpOnboardingState.profile that would lead to the rerouting to the onboarding site. However it never gets triggered when clicking submit. What does get triggered every time the /applications/ep page is reloaded, is the case 'project' in the switch statement switch (state?.changeMaker?.onboardingState) which opens up the info modal.

I'm still working through this but I added this PR with changes I mentioned alongside print statements that can help with others debugging.

involve-MINT commented 1 week ago

Hi [Business Name], Welcome to involveMINT! We’re thrilled to have you join our community of businesses dedicated to making a positive impact. Your involvement will not only help your business grow but also support local communities through our innovative exchange system.

To help you get started, we’ve put together some essential resources. Please bookmark or save these in a convenient location for easy access when using the platform:

Additionally, we have designed exchange cards that you can place at your point of sale to inform your customers about involveMINT and how they can participate. You can download the cards here: Exchange Cards.

If you have any questions or need further assistance, please don’t hesitate to reach out to us. We’re here to support you every step of the way.

Welcome aboard!

Best regards,

Daniel Little CEO, involveMINT hello@involvemint.io