Rakshit-gen / Slanine

An AI solution for everything, powered by Gemini 1.5 Flash. Uses templates to do all your tasks
https://slanine-s4bi.vercel.app
10 stars 11 forks source link

Add history section #3

Closed Rakshit-gen closed 3 days ago

Rakshit-gen commented 2 months ago

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

Itachii27 commented 4 days ago

Hi @Rakshit-gen I want to work on this issue. Kindly assign this issue to me

Rakshit-gen commented 4 days ago

@Itachii27 Kindly tell your approach for the task.

Swetabh333 commented 4 days ago

@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?

Rakshit-gen commented 4 days ago

Okay @Swetabh333 your approach seems appropriate, I am assigning the issue to you!

Swetabh333 commented 4 days ago

For setting up the database I need to sign up and get the db url from neon right?

Rakshit-gen commented 4 days ago

Yes @Swetabh333 you need to put the db urI into your .env file locally

Swetabh333 commented 4 days ago

@Rakshit-gen there seems to be more dependencies , I have to set up redis as well?

Rakshit-gen commented 4 days ago

@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

Swetabh333 commented 4 days ago

@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.

Rakshit-gen commented 4 days ago

Yes upstash for this project. No problem @Swetabh333

Rakshit-gen commented 4 days ago

@Swetabh333 I updated the Readme now you can see!

Swetabh333 commented 4 days ago

@Rakshit-gen great, I got it working locally, I'll start working on it now

Rakshit-gen commented 4 days ago

Okay update me @Swetabh333

Swetabh333 commented 4 days ago

@Rakshit-gen there already seems to be some boilerplate in history/page.tsx should I remove it or work with it?

Rakshit-gen commented 4 days ago

It is on you, I will prefer you removing it and working on it @Swetabh333

Swetabh333 commented 3 days ago

@Rakshit-gen radix does not seem to have a card component for ui is it alright if I use another Library?

Rakshit-gen commented 3 days ago

@Swetabh333 sure you can use shadcn or anything else too Just make sure it doesn't break the website.