Closed Rakshit-gen closed 3 days ago
Hi @Rakshit-gen I want to work on this issue. Kindly assign this issue to me
@Itachii27 Kindly tell your approach for the task.
@Rakshit-gen I'd like to work on this, correct me on this but I think we can get the user with getUser and fetch all the ai response fields for that particular user from the database and display it on the history page?
Okay @Swetabh333 your approach seems appropriate, I am assigning the issue to you!
For setting up the database I need to sign up and get the db url from neon right?
Yes @Swetabh333 you need to put the db urI into your .env file locally
@Rakshit-gen there seems to be more dependencies , I have to set up redis as well?
@Swetabh333 I have put a dummy env file in the readme.md Maybe redis isnt there I will fix it. You need to setup redis too
@Rakshit-gen yes the env file does not mention redis, I'll set it up as well I'm assuming you used upstash for it.Thanks for helping out.
Yes upstash for this project. No problem @Swetabh333
@Swetabh333 I updated the Readme now you can see!
@Rakshit-gen great, I got it working locally, I'll start working on it now
Okay update me @Swetabh333
@Rakshit-gen there already seems to be some boilerplate in history/page.tsx should I remove it or work with it?
It is on you, I will prefer you removing it and working on it @Swetabh333
@Rakshit-gen radix does not seem to have a card component for ui is it alright if I use another Library?
@Swetabh333 sure you can use shadcn or anything else too Just make sure it doesn't break the website.
Go to app>dashboard>history>page.tsx Add a history section for users to see their previously used prompts and answers along with the respective lengths of the AI Responsem