This week I continued using ChatGPT to try and help me add features to the AI Coders App. As our codebase and files have grown I’ve found it to become more challenging to get ChatGPT to complete features for me, and this week I had to do more manual tweaking after code was generated for me. I noticed this with the insert queries I was writing, as well as the POST requests I was creating. I would load a file into ChatGPT and the new functions that were generated based on my query were built and constructed differently than the existing working ones. This didn’t have a detrimental impact or anything, but I did rewrite the functions to be consistent with how they were already written in the files.
As far as the specific work towards or project goes, here are my accomplishments for this week:
- Moved the “Link Alpaca” functionality to only be shown when a user logs in
- Removed the Link Alpaca functionality from the home page (localhost:3000) since inserting the record requires a Firebase Id that’s only accessible after being logged in
- Made a new function that’s called after a user clicks “Submit Keys” on the brokerageSignupAlpaca page
- After the click is detected, I got a POST request working with the add_brokerage_account function that inserts a users brokerage key and secret into the brokerage_accounts table
- Got a loading spinner working when a user is waiting for the brokerage keys to be inserted into the table
- Got a redirect working for after the brokerage record is inserted, it redirects the user back to the user-home page
- Shortcoming: The Firebase Id is hard coded to MY Id since I couldn’t figure out how to dynamically retrieve this
Leave a Reply