SurfSense/surfsense_web/lib
guangyang1206 3504be3413 fix(web): make cacheKeys.*.withQueryParams order-stable (sort entries)
Fixes #1370

Object.values() produces order-dependent cache keys because the order of values depends on the order of keys in the object. This causes the same logical query to produce different cache keys when the parameter object has keys in different orders.

Added stableEntries() helper that:
1. Filters out undefined values
2. Sorts entries by key name
3. Returns flat array of [key, value] pairs

This ensures cache key identity is stable regardless of parameter object key order.

Co-authored-by: guangyang1206 <guangyang1206@users.noreply.github.com>
2026-05-16 12:10:04 +08:00
..
announcements chore: linting 2026-02-20 22:44:56 -08:00
apis connector-popup: surface trusted-tools UI in MCP edit view; consolidate disconnect 2026-05-15 16:40:16 +02:00
chat chat-messages: render and batch-submit multiple HITL approval cards 2026-05-13 21:00:01 +02:00
citations chore: linting 2026-04-30 18:42:38 -07:00
comments refactor: move pure utility functions out of UI components (#1194) 2026-04-14 17:39:11 +09:30
connectors refactor: completely remove Local Folder connector references and update folder sync logic 2026-04-02 22:21:16 +05:30
documents refactor: move pure utility functions out of UI components (#1194) 2026-04-14 17:39:11 +09:30
markdown feat(markdown): enable citation rendering in MarkdownViewer and related components 2026-04-30 18:40:55 -07:00
posthog chore: linting 2026-04-30 18:42:38 -07:00
query-client fix(web): make cacheKeys.*.withQueryParams order-stable (sort entries) 2026-05-16 12:10:04 +08:00
remotion chore: ran linting 2026-03-25 00:27:24 +05:30
agent-filesystem.ts feat: moved most things behind correct feature flag 2026-05-02 23:10:48 -07:00
auth-errors.ts refactor: update authentication error handling to prevent user enumeration and improve error messages 2026-02-09 12:57:32 +05:30
auth-utils.ts fix(auth): centralize redirect path storage 2026-05-11 06:30:26 +09:00
blog-faq.ts fix: update URLs to use the "www" subdomain across the application 2026-05-15 12:35:15 -07:00
desktop-download-utils.ts feat: implement download functionality for different OS in SidebarUserProfile and DownloadButton components, enhance user experience with localized download messages 2026-04-10 19:53:13 +05:30
editor-language.ts feat(editor): integrate Monaco Editor for local file editing and enhance language inference 2026-04-23 18:00:51 +05:30
env-config.ts refactor: make Azure Document Intelligence an internal LLAMACLOUD accelerator instead of a standalone ETL service 2026-04-08 03:26:24 +05:30
error-toast.ts feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
error.ts feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
folder-sync-upload.ts feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
format-date.ts feat(shared): extract formatThreadTimestamp helper for chats sidebars (fixes #1376) 2026-05-10 12:05:10 +08:00
layout-events.ts refactor: move pure utility functions out of UI components (#1194) 2026-04-14 17:39:11 +09:30
provider-icons.tsx feat: enhance model selector UI abd added github models icon 2026-04-14 20:35:16 +05:30
source.ts perf(docs): replace full lucide barrel import with explicit icon whitelist 2026-04-29 12:34:13 +08:00
supported-extensions.ts chore: ran linting 2026-04-08 05:20:03 +05:30
utils.ts Add clipboard utility with fallback and show selectable URLs 2026-02-04 18:54:59 +02:00