merlyn/frontend
Marcello Fitton 8ffb7eb6e9
Store Chat Prompt Input Value in Local Storage (#4680)
* Add logic to save prompt input state to local storage and use as initial state on mount

* Synchronize prompt input state with parent component on mount

* lint

* Clear USER_PROMPT_INPUT_VALUE local storage value in all instances of auth clearing

* Remove USER_PROMPT_INPUT_VALUE local storage `removeItem` logic from excessive sources

* Refactor logic to cache prompt input value state by thread | abstract into a custom hook | rename localStorage key variables for clarity.

* Remove console log statement from usePromptInputStorage hook to clean up code.

* Update comments in usePromptInputStorage hook for clarity on localStorage handling

* Implement debounced localStorage updates in usePromptInputStorage hook to improve performance and prevent writing on every keystroke.

* Refactor localStorage handling in usePromptInputStorage hook to utilize safeJsonParse | Remove uneeeded comments

* Remove useEffect cleanup comment

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-02 13:45:26 -08:00
..
public add placeholder manifest.json when unknown or in development 2025-11-25 11:23:23 -08:00
scripts Enable editing and setting of meta-tag information (#1892) 2024-07-19 15:58:43 -07:00
src Store Chat Prompt Input Value in Local Storage (#4680) 2025-12-02 13:45:26 -08: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
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 Mobile sync support (#4173) 2025-07-31 12:28:03 -07: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 Mobile sync support (#4173) 2025-07-31 12:28:03 -07:00