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
G.Ambatte
ab6861675d
Comment out history testing values
2024-10-10 09:07:54 +13:00
G.Ambatte
0deb9073cd
Remove obsolete file
2024-10-10 08:57:41 +13:00
G.Ambatte
8db12739d3
Remove obsolete function
2024-10-10 08:34:15 +13:00
G.Ambatte
dc66d36b2d
Simplify history loading
2024-10-09 19:35:48 +13:00
G.Ambatte
fb2d03f5a2
Change to test values
2024-10-09 17:50:26 +13:00
G.Ambatte
0b44e68a36
Simplify garbage collection
2024-10-09 17:27:33 +13:00
G.Ambatte
aa68762294
Simplify historyCheck logic
2024-10-09 15:59:11 +13:00
G.Ambatte
2a9402634f
Remove unnecessary guard clause
2024-10-09 14:58:20 +13:00
G.Ambatte
291e16b124
Revert to use local consts instead of config vars
2024-10-09 14:57:04 +13:00
G.Ambatte
e75eb72d3f
Remove obsolete function
2024-10-09 14:54:23 +13:00
G.Ambatte
7e165c6e61
Remove unnecessary key check
2024-10-07 21:53:24 +13:00
G.Ambatte
5d9ef3fa6c
Add custom IDB store
2024-10-07 21:53:05 +13:00
G.Ambatte
24bffacaeb
GC functional, config values now actually used
2024-10-07 20:53:32 +13:00
G.Ambatte
c9241e3091
WIP Update
2024-10-07 18:22:06 +13:00
G.Ambatte
77f162f7a4
Initial IDB functionality pass
2024-10-01 23:53:35 +13:00