Description
- Right now, we’re storing chat data (like task-related conversations) in localStorage. But localStorage has a small limit (usually around 5MB), and it’s not built for large or complex data.
- Switch to using IndexedDB can store way more data—perfect for chat messages or task history that could grow over time.
What needs to be done?
Set up an IndexedDB database.
Create a store (like a table) for chat data (e.g. messages, timestamps, task IDs).
Add functions to save, update, and retrieve chat data.
Replace current localStorage usage with IndexedDB.