Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airtable Implementation for first contact form #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

imariel2d
Copy link
Member

@imariel2d imariel2d commented May 9, 2024

What was done here

placeholder

Config

Screenshot 2024-05-09 at 3 20 32 p m

Example

curl --location 'http://localhost:3000/api/contact' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Email": "imariel2d@gmail.com",
    "BenefitsConcerns": ["Condiciones de seguridad y/o salubridad en el trabajo"],
    "WorkspaceConcerns": ["Despido repentino", "Falta de pago o pago incompleto"],
    "BriefConcern": "aaah pinche oso",
    "ExpectedOutcome": "Quiero justicia!"
}'

Notes

Los campos BenefitsConcerns y WorkspaceConcerns deben matchear los fields dentro de airtable. Si se necesitan agregar mas campos, se agregan desde airtable. Mandar algo que no esta en el multi-select de airtable tirara un error.

Screenshot 2024-05-29 at 11 18 57 a m

@imariel2d imariel2d marked this pull request as ready for review May 29, 2024 18:28
Copy link
Member

@jmsalcido jmsalcido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

y el usage de esta lib seria otro pr vdd?

src/lib/airtable/index.ts Show resolved Hide resolved
src/lib/airtable/config.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants