merlyn/frontend
Neha Prasad d767c398c7
feat : auto-select newly uploaded docs/URLs in my documents list (#5222)
* auto-select newly uploaded docs/URLs in My Documents list

* fix: improve auto-select reliability and fix debounce/selection bugs

- Add missing `await` on fetchKeys in handleSendLink so loading state
  and auto-select timing work correctly
- Use functional update for setSelectedItems to merge with existing
  selections instead of replacing them
- Stabilize debounced fetchKeys with useRef so rapid uploads actually
  debounce instead of creating independent timers per render
- Rename shadowed local variables (availableDocs -> filteredAvailableDocs)
  for clarity

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2026-03-26 14:59:25 -07:00
..
public normalize logo wordmark 2026-02-11 08:53:44 -08:00
scripts Enable editing and setting of meta-tag information (#1892) 2024-07-19 15:58:43 -07:00
src feat : auto-select newly uploaded docs/URLs in my documents list (#5222) 2026-03-26 14:59:25 -07:00
.env.example chore: rename Github to GitHub (#3199) 2025-02-13 10:45:43 -08:00
.gitignore Icon Button Tooltips (#1451) 2024-05-18 23:29:23 -05:00
.nvmrc dev build with new epub2 build target and remove patch work (#4694) 2025-11-26 17:36:34 -08:00
eslint.config.js feat: Enable essential ESLint rules and refactor frontend lint config (#4923) 2026-01-29 17:01:39 -08:00
index.html 4595 refactor PWA (#4664) 2025-11-19 16:08:09 -08:00
jsconfig.json [FEAT] Agent skills UI redesign (#1565) 2024-06-12 10:52:32 -07:00
package.json feat: Enable essential ESLint rules and refactor frontend lint config (#4923) 2026-01-29 17:01:39 -08:00
postcss.config.js inital commit 2023-06-03 19:28:07 -07:00
tailwind.config.js 4595 refactor PWA (#4664) 2025-11-19 16:08:09 -08:00
vite.config.js Add piperTTS in-browser text-to-speech (#2052) 2024-08-07 11:09:51 -07:00
yarn.lock feat: Enable essential ESLint rules and refactor frontend lint config (#4923) 2026-01-29 17:01:39 -08:00