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

Add a contact page #1241

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from
Draft

Add a contact page #1241

wants to merge 13 commits into from

Conversation

kkhys
Copy link
Owner

@kkhys kkhys commented Jun 22, 2024

No description provided.

This commit introduces a new Firebase package with necessary configuration files including .clasp.json, appsscript.json, main.ts, main2.ts, package.json, and tsconfig.json. In addition, adjustments were made to pnpm-lock.yaml. These configuration files setup the Firebase environment and project scripts. It also includes scripts for building, deploying, and managing the Firebase project.
@kkhys kkhys self-assigned this Jun 22, 2024
Copy link

vercel bot commented Jun 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
me-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 2:59pm
me-web ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 2:59pm

kkhys added 12 commits June 22, 2024 13:01
This update introduces several new labels in the labels.yml file. These labels are specifically for categorizing issues and PRs related to different package areas (api, auth, db, firebase) and tooling areas (storybook).
The firebase package and related references have been renamed to google-apps-script. This is reflected in the package.json, pnpm-lock.yaml label names, and also as part of the file and directory renaming within the package structure.
The .env.example file has been updated to include new environment variables. These new additions include GOOGLE_MAPS_API_KEY, GOOGLE_SHEETS_ID, GCP_CLIENT_EMAIL, GCP_PRIVATE_KEY, and RESEND_API_KEY. This update will provide a more comprehensive example of the environment variables needed, considering the current project needs.
This update includes Google's credentials.json to our .gitignore file ensuring it won't be accidentally included in future commits. This file contains sensitive authentication data and should be kept private.
The include array in the tsconfig.json file has been updated to encompass all .ts files. This modification allows TypeScript to include all TypeScript files in the root directory when performing a build, rather than just the files in the src directory.
Added new dependencies including '@react-email/components', '@react-email/render', '@t3-oss/env-nextjs', jose, and resend in pnpm-lock.yaml. These changes also include updates and additions to resolution and dependency details for various packages such as '@react-email/components' and '@react-email/render'.
React has been explicitly imported in the trpc/react.tsx file. This change is to ensure that all React functionality is available and correctly referenced within this file.
A new file, env.ts, has been created inside the packages/api directory. This file utilizes 'createEnv' from '@t3-oss/env-nextjs' to set up several environmental variables including GOOGLE_SHEETS_ID, GCP_CLIENT_EMAIL, GCP_PRIVATE_KEY, and RESEND_API_KEY. The validation of these variables is skipped if the process is running in a continuous integration environment or if the SKIP_ENV_VALIDATION flag is set.
A new package called validators has been added, which includes a ContactSchema validation using the 'zod' library. This initial validation ensures that email, name and content are strings, with email being a valid email address. The package has been set up with its own package.json and tsconfig.json files, and other necessary dependencies and scripts.
Created a new router for handling contact form requests. This includes sending emails with a contact mail template and appending user submissions to Google Sheets. Services for Google Sheets and mailing have been added.
The commit updates Google service files, specifically sheets.ts and token.ts, by renaming tokens' attribute names to use lowercase with underscores, following the convention typically used in JSON objects or APIs. This change ensures proper field recognition when making API calls or dealing with JSON responses.
This update adds a LINE messaging service to the API, which includes a function for sending LINE messages. Corresponding environment variables have been added for the LINE User ID and channel access token. This service is used in the contact router for sending Line messages upon new contact entries. Required package dependencies have been updated in pnpm-lock.yaml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant