deerflow2/frontend/src/core/uploads
JeffJiang db5ad86381 feat: enhance chat history loading with new hooks and UI components (#2338)
* Refactor API fetch calls to use a unified fetch function; enhance chat history loading with new hooks and UI components

- Replaced `fetchWithAuth` with a generic `fetch` function across various API modules for consistency.
- Updated `useThreadStream` and `useThreadHistory` hooks to manage chat history loading, including loading states and pagination.
- Introduced `LoadMoreHistoryIndicator` component for better user experience when loading more chat history.
- Enhanced message handling in `MessageList` to accommodate new loading states and history management.
- Added support for run messages in the thread context, improving the overall message handling logic.
- Updated translations for loading indicators in English and Chinese.

* Fix test assertions for run ordering in RunManager tests

- Updated assertions in `test_list_by_thread` to reflect correct ordering of runs.
- Modified `test_list_by_thread_is_stable_when_timestamps_tie` to ensure stable ordering when timestamps are tied.
2026-04-26 11:20:17 +08:00
..
api.ts feat: enhance chat history loading with new hooks and UI components (#2338) 2026-04-26 11:20:17 +08:00
file-validation.ts fix(frontend): block unsupported .app uploads (#1834) 2026-04-04 14:42:26 +08:00
hooks.ts feat: implement file upload feature 2026-01-23 18:47:39 +08:00
index.ts fix(frontend): keep prompt attachments from breaking before upload (#1833) 2026-04-04 14:54:35 +08:00
prompt-input-files.ts fix(frontend): keep prompt attachments from breaking before upload (#1833) 2026-04-04 14:54:35 +08:00