perf: improve performance of clipboard history

This commit completely revamps the clipboard history feature to resolve major performance bottlenecks. The backend now uses a more intelligent data model, storing previews and content size in the database to allow for lazy-loading of large clipboard items. The frontend is updated to use paginated, infinite-scrolling lists, and it fetches full item content on-demand, which makes the initial load instantaneous and keeps the UI responsive even with a very large history.
This commit is contained in:
ByteAtATime 2025-06-22 22:14:13 -07:00
parent 9256457f74
commit 73c1e43f76
No known key found for this signature in database
3 changed files with 310 additions and 145 deletions

View file

@ -180,6 +180,7 @@ pub fn run() {
oauth::oauth_get_tokens,
oauth::oauth_remove_tokens,
clipboard_history::history_get_items,
clipboard_history::history_get_item_content,
clipboard_history::history_delete_item,
clipboard_history::history_toggle_pin,
clipboard_history::history_clear_all,