Skip to content

Commit

Permalink
CSV File invites (#414)
Browse files Browse the repository at this point in the history
* chore(server+workflow): added origin env

* chore(server pkgs): added multer and papaparse

* chore(git): added csv files to gitignore

* feat(server): added csv invite endpoint and email batching

* feat(client): added csv invite option under event settings

* feat(invite validation): updated validate invite to auto log in user if valid
  • Loading branch information
kadey001 authored Mar 31, 2023
1 parent 4b77e63 commit e424284
Show file tree
Hide file tree
Showing 43 changed files with 837 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/server-prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
SERVER_DEPLOYMENT: prytaneum-server
SERVER_IMAGE: prytaneum-server
NAMESPACE: production
GRAPHQL_URL: https://prytaneum.io/graphql
ORIGIN: https://prytaneum.io
DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}

Expand Down Expand Up @@ -55,6 +55,7 @@ jobs:
docker build \
-f ./docker/Dockerfile.server \
--tag "gcr.io/$PROJECT_ID/$SERVER_IMAGE:$GITHUB_SHA" \
--build-arg ORIGIN="$ORIGIN" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/server-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
SERVER_DEPLOYMENT: prytaneum-server
SERVER_IMAGE: prytaneum-server
NAMESPACE: development
GRAPHQL_URL: https://dev.prytaneum.io/graphql
ORIGIN: https://dev.prytaneum.io
DATABASE_URL: ${{ secrets.STAGING_DATABASE_URL }}
GOOGLE_ANALYTICS_ID: ${{ secrets.DEV_GOOGLE_ANALYTICS_ID }}

Expand Down Expand Up @@ -55,6 +55,7 @@ jobs:
docker build \
-f ./docker/Dockerfile.server \
--tag "gcr.io/$PROJECT_ID/$SERVER_IMAGE:$GITHUB_SHA" \
--build-arg GRAPHQL_URL="$GRAPHQL_URL" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,4 @@ allure-report/
allure-results/
state/
screenshots/
*.csv
124 changes: 124 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-3340e2eb10-8.zip
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-fcdf30aaca-8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions app/client/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,10 @@ type Query {
promptResponses(promptId: ID!): [EventLiveFeedbackPromptResponse!]
prompts(eventId: ID!): [EventLiveFeedbackPrompt!]
questionsByEventId(eventId: ID!): [EventQuestion!]

"""
Validates an invite token and logs the user in if they are already registered.
"""
validateInvite(input: ValidateInvite!): ValidateInviteQueryResponse!
validatePasswordResetToken(input: ValidatePasswordResetTokenForm!): ValidatePasswordResetTokenQueryResponse!
}
Expand Down Expand Up @@ -877,6 +881,7 @@ input ValidateInvite {
}

type ValidateInviteQueryResponse {
user: User
valid: Boolean!
}

Expand Down
69 changes: 65 additions & 4 deletions app/client/src/__generated__/ValidateInviteQuery.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e424284

Please sign in to comment.