#10
Implement Bank Connection Screen
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:
- Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
- Added support for self-hosting! Check out Self-hosting Sweep to get started.
- [Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎