ayush585/edgex

Add “Clear Chat/Delete Chat” button in CareerCrack

开放

#3 创建于 2025年7月28日

 (9 条评论) (0 个反应) (1 位负责人)JavaScript (35 个派生)auto 404
GSSoC 25UIeasyenhancementgood first issue

仓库指标

星标
 (14 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

MoodMirror and Careercrack has a “New Chat” button. Add a similar "Clear Chat" or “New Session” button in CareerCrack UI to reset chat history and selected chat ID.

Clears the current conversation from the screen

Resets any selected chatId or memory state (if applicable)

Prepares the UI for a new user query

🛠 Tech Involved: React (JSX)

useState / useEffect

Firebase Firestore (if chat is being reset in DB)

Tailwind CSS (for button styling)

✅ Tasks: Create a new button component (optional: reuse MoodMirror’s button)

Place it in a clean part of the CareerCrack UI

On click, reset the selected chat & clear messages from screen

(Optional) Reset Firestore state if needed

💡 Bonus Points: You can style it nicely with a subtle animation or icon (Lucide-react has a “refresh-ccw” icon that could work well!)

🏁 Difficulty: easy You’ll earn 2–3 GSSoC points for completing this!

🙌 Need help? Dm me in Linkedin! or Discord!

贡献者指南