Commit Graph
87 Commits
Author SHA1 Message Date
Trevor Buckner 9fb7a79047 Move remaining state to common hook 2026-10-07 19:24:52 +00:00
Trevor Buckner c282d5e5bc Fix path to googleDrive.svg 2026-10-07 18:59:53 +00:00
Trevor Buckner 5dac4aa208 Fix typo 2026-10-07 18:01:09 +00:00
Trevor Buckner 0281e4e309 Move googleDrive button into common hook 2026-10-07 17:58:04 +00:00
Trevor Buckner 029e5db6a8 Need to snapshot brew before save without hash/patch metadata 2026-10-07 16:33:47 +00:00
Trevor Buckner f88f865130 Remove unused imports 2026-10-07 16:14:33 +00:00
Trevor Buckner 2dc088cd80 Make "brewToSave" prep (patch/hash/pageCount) common, and move into common hook. 2026-10-07 16:07:15 +00:00
Trevor Buckner 766fc73dbc Move currentBrew/lastSavedBrew update after saving to common hook 2026-10-05 18:06:02 +00:00
Trevor Buckner 531d9343b3 Small fixes 2026-10-01 20:28:53 +00:00
Trevor Buckner aa6f62486c Move "loadBrewFromLocalstorage" to common hook. Add an "onSaveSuccess()" function pages can pass in. 2026-10-01 20:15:10 +00:00
Trevor Buckner ca6ded98d4 Move RenderNavBar to common hook 2026-10-01 18:42:15 +00:00
Trevor Buckner df108c95d6 Shift setHTMLErrors into common hook 2026-09-30 20:24:26 -04:00
Trevor Buckner d18859e17d Fix editor tab buttons missing 2026-09-30 19:34:45 -04:00
Trevor Buckner b673f4ea10 Move main component rendering to common hook 2026-09-30 21:19:10 +00:00
Víctor Losada Hernández 8a372c1454 lint js 2026-09-28 17:34:12 +02:00
Trevor Buckner 2676abe4e7 Change hook from js to jsx 2026-09-14 20:51:09 -04:00
Trevor Buckner 7c2344460f Move RenderSaveButton over 2026-09-14 21:08:04 +00:00
Trevor Buckner 13731f5771 Move clearError to common hook 2026-09-14 19:11:14 +00:00
Trevor Buckner 3e2ac93424 Make trySave common and move to useCommonEditorFunctions
Also makes "save()" more common between the pages, but they still have some differences
2026-09-13 16:24:45 -04:00
Trevor Buckner 18c29daf92 Move resetWarnUnsavedTimer and ToggleAutosave to common hook 2026-09-13 13:20:45 -04:00
Trevor Buckner 9441582aa3 Move handleSplitMove to common hook 2026-09-12 12:50:27 -04:00
Trevor Buckner b26d81ca08 Move UnsavedChangesRef into common hook and clean syncing useEffect 2026-09-12 12:30:21 -04:00
Trevor Buckner e2cec264a6 Convert trySaveRef to useEffectEvent 2026-09-12 12:08:51 -04:00
Trevor Buckner b9ae2cd16c Move "unsaved changes" check to common hook 2026-09-11 23:21:21 -04:00
Trevor Buckner bfb119e62d Spaces to tabs 2026-09-11 22:37:46 -04:00
Trevor Buckner e6bf0e28c5 Pass in the remaining missing dependencies 2026-09-11 22:28:19 -04:00
Trevor Buckner 82efff8ce5 Move setup effects to common functions 2026-09-09 20:10:17 -04:00
Trevor Buckner 5865e5adfd Extract common "handlePageChange" to a reusable hook 2026-09-09 18:42:39 +00:00
Trevor Buckner 643e0ac650 small cleanups of localstorage keys code 2025-10-05 23:24:50 -04:00
Trevor Buckner 5395412ac5 Remove tests for getLocalStorageMap()
The function is a simple getter with trivial logic; test is effectively just asserting the size of the map, which coverage adds no meaningful value and adds cruft to the codebase.
2025-10-05 23:24:35 -04:00
G.Ambatte ae51213c8c Permanently enable old local storage key deletion 2025-10-05 12:25:51 +13:00
G.Ambatte 400fa250ee Move key deletion out of key update check 2025-10-04 15:19:31 +13:00
G.Ambatte e82921f81a Add key to activate deletion for testing 2025-10-04 14:54:57 +13:00
G.Ambatte 87a36bb02d Add tests for localStorageKeyMap.js 2025-09-11 21:57:00 +12:00
G.Ambatte 1459f6a320 Tweak local storage update logic 2025-09-11 21:25:13 +12:00
G.Ambatte a11fa72261 Change JSON file to JS getter function 2025-09-11 21:02:56 +12:00
G.Ambatte 2663d86627 Don't update storage values if key already exists 2025-09-10 20:31:50 +12:00
G.Ambatte b6818e963b Remove unused dismiss keys 2025-09-10 20:12:50 +12:00
G.Ambatte 7163b1a287 Add function to add dynamic keys to local storage map 2025-09-10 18:53:53 +12:00
G.Ambatte 08d228831d Add missing keys to JSON, tweak layout 2025-09-10 18:53:23 +12:00
G.Ambatte 1eb5b6d3a4 Copy exisitng key data to new keys 2025-09-09 22:04:40 +12:00
G.Ambatte 16d7b11b8d Add request-middleware test file 2025-07-26 18:44:59 +12:00
David Bolack 1008321957 Add brew snippets to local save history
solves #3113
2025-06-30 12:17:46 -05:00
Trevor Buckner fb9148ada5 Site runs and all tests pass 2024-11-20 16:21:35 -05:00
G.Ambatte ebf900ba24 Remove Proxy version 2024-10-30 08:21:51 +13:00
G.Ambatte 6fed42198d Simplify initCustomStore 2024-10-29 19:30:22 +13:00
G.Ambatte 478a541d62 Remove wrapper from file name 2024-10-26 09:58:09 +13:00
G.Ambatte eb852b8045 Add IDB Proxy 2024-10-26 09:50:07 +13:00
G.Ambatte f64e7d3fd7 Shift grabage collection to use delMany instead of a looped del 2024-10-12 10:57:01 +13:00
G.Ambatte cdbb2fa26a Add IDB custom store wrapper 2024-10-12 10:55:02 +13:00