ae-andre / insights-bench

An online community of conversation, built with the MERN stack, that will allow those with personal, financial or career-related problems to talk them through with others, in either a private or a public channel.
MIT License
0 stars 3 forks source link

Matching logic completed #71

Closed tchan128 closed 8 months ago

tchan128 commented 8 months ago

Buddy matching logic is completed:

  graph TD;
      A[User submits conversation form]-->B[Searches for available, same expertise, listener];
      B-->C[No buddy found: Searches for available listener];
      B-->D[Buddy found and matched];
      C-->E[No buddy found: Return null]
      C-->F[Buddy found and matched]

In this logic, when the form is submitted here are the concurrent actions:

Example of matching shown here, both listerner and sharer will have the conversation so it can be populated on their dashboard: screenshot_2024-03-21_at_1 25 37_am_720 screenshot_2024-03-21_at_1 26 28_am_720

Testing to see if other listeners with personal is matched (the answer is no):

screenshot_2024-03-21_at_1 26 40_am_720

Next step:

From today's discussion, once the form is submitted it should bring the user to the conversation component regardless of a match or not. If there is a match the conversation component can display connected with ____. If there isn't a match (null), component can display Finding a buddy, please take a seat first