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

Implement Bank Connection Screen #10

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

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Sep 15, 2023

Description

This PR implements a new screen that allows users to connect their bank accounts using the Teller API. It includes the following changes:

  • Created a new page named 'bank-connection.tsx' in the 'pages' directory.
  • Added a form in the 'bank-connection.tsx' page to collect the user's bank details.
  • Implemented form submission handling and made a request to the Teller API to connect the bank account.
  • Handled the response from the Teller API. If the connection is successful, the user is redirected to a success page. If the connection fails, an error message is displayed.
  • Added a new field in the 'accounts' model in the 'prisma/schema.prisma' file to store the connected bank account information.
  • Created a new file named 'teller.ts' in the 'lib' directory to write functions for interacting with the Teller API.
  • Modified the 'middleware.ts' file to add the '/bank-connection' path to the 'publicPaths' array, allowing users to access the bank connection page without being signed in.

Summary of Changes

  • Created 'bank-connection.tsx' page
  • Added form for collecting bank details
  • Implemented form submission handling and Teller API integration
  • Handled Teller API response and displayed success or error message
  • Added 'connectedBankAccount' field in 'accounts' model
  • Created 'teller.ts' file for Teller API interaction
  • Modified 'middleware.ts' to allow access to '/bank-connection' page without authentication

Fixes #6.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/bank-connection-screen

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Sep 15, 2023
@sweep-ai sweep-ai bot mentioned this pull request Sep 15, 2023
4 tasks
@vercel
Copy link

vercel bot commented Sep 15, 2023

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

Name Status Preview Comments Updated (UTC)
raskfin ❌ Failed (Inspect) Oct 22, 2023 7:29pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Bank Connection Screen
0 participants