jorgehermo9 / gq

MIT License
6 stars 0 forks source link

Queries history in playground #54

Open daavidrgz opened 2 days ago

daavidrgz commented 2 days ago

The ability to save and show the query history is essential to improve our users' efficiency. It also provides a way to revisit previous complex queries in case any were forgotten.

The easiest way of implementing this is by saving those queries inside the Local Storage. Moreover, as a way to avoid complicating the header with more buttons, we will implement a left sidebar using this new Shadcn component. For now, this sidebar will contain the examples and also this new query history.

jorgehermo9 commented 2 days ago

Maybe we can use IndexedDB instesd of localstorage, Localstorage have very little storage size.

I think the limit is 2MB, maybe the historic will never reach 2MB size as it is a high limit for user-generated data