OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 223 forks source link

Request mentors from React front-end #1013

Closed jjhampton closed 5 years ago

jjhampton commented 6 years ago

Description of changes

Re-added form to make Mentor Service Requests from the React front-end -> Rails back-end (which then forwards the requests -> Airtable). Intended to replace the Airtable form currently at https://airtable.com/tbl9uQEE8VeMdNCey/viwILQ8iI5D7vzYpghttps://airtable.com/shrPzqty0aXtfWuuq .

Note: If any OC maintainers want to manually test this branch end-to-end n their dev machines (verifying that requests make it all the way from React FE all the way to Airtable, and also populate to the Slack #mentors-internal channel via the bot), please DM me on Slack first.

Desktop screenshot: selection_077

Mobile screenshot: selection_078

Issue Resolved

971

Reminder - once this is merged, before closing out the issue, we still need to point https://op.co.de/mentor-request to the new URL: https://operationcode.org/mentor-request. ~Please ping @ hollomancer when that happens.~ (done)

kylemh commented 6 years ago

Let's sit down some time this weekend and test together?

apex-omontgomery commented 6 years ago

Let me know if you want me to pipe these tests ones to a different channel.

jjhampton commented 6 years ago

@kylemh Want to test out this PR out Sunday? There's a project-lead meeting in the afternoon. We can do before or after that.

kylemh commented 6 years ago

Sunday after the meeting. 👍🏽

jjhampton commented 6 years ago

@aaron-suarez If you want to demo/participate in testing, we'll do this at ~ 12pm Pacific / 3pm Pacific. @wimo7083 Sending test requests to another channel will be helpful, let's figure that out on Slack beforehand. :+1:

aaron-junot commented 5 years ago

I'll join in if I'm available, I may or may not be.

jjhampton commented 5 years ago

@kylemh @dmarchante I've made a few changes in response to your feedback:

Did another test, and the requests are correctly populating to Airtable and also posting in the Slack channel via PyBack bot.

AshTemp commented 5 years ago

Um guys, not to rain all over your parade, but the new form still uses AirTable....

jjhampton commented 5 years ago

The new React form within the OC webapp only interfaces with the OC back-end, not with AirTable.

The old form (the Airtable form hosted on Airtable's servers) interfaced directly with Airtable, which was what the issue was supposed to be changing - removing that form and using the React form instead.

apex-omontgomery commented 5 years ago

So FE -(data)--> BE --(data)--> database; BE --(data)-->airtable;

Zapier then waits for airtable, and sends an event to pybot?

AshTemp commented 5 years ago

John learned me a thing. :) I'm going away now.

jjhampton commented 5 years ago

@wimo7083 That looks about right to me .... But I don't think that the BE database involved in the flow at this moment.

FE -(data)--> BE --(data)--> airtable; Zapier then waits for airtable, and sends an event to pybot, which does some more communication with Airtable and then forwards that data to Slack in the form of a channel post? (I'm sure I'm doing some hand-waving with the last part)