0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-09 20:38:40 +00:00
Commit Graph

1242 Commits

Author SHA1 Message Date
Trevor Buckner f0baa763ec lint 2025-09-22 19:52:42 -04:00
Trevor Buckner 3ec650557e Fix Autosave and unsaved changes warning
Use normal setTimeout for autosave instead of _.debounce. Fixes a lot of issues with functional component.

Also fix existing bug where multiple "unsaved data" warnings could be queued up if the user keeps typing while the warning is being displayed.
2025-09-22 19:49:57 -04:00
G.Ambatte e1fb0a42c3 Merge branch 'master' into fixUserPageLinks-#807 2025-09-20 20:23:58 +12:00
Trevor Buckner 31a8101df7 Move "share" dropdown to own component 2025-09-13 19:37:59 -04:00
Trevor Buckner 788324fe31 Merge handText/Style/Snip/MetaChange into handleBrewChange 2025-09-11 22:03:25 -04:00
Trevor Buckner da8772daa7 Use setXXXPageNum instead of handleXXXPageNum
No need for separate wrapper functions when we can just pass the setState functions directly.
2025-09-11 16:14:45 -04:00
G.Ambatte 8d4ea7cfd8 Update listPage storage keys 2025-09-10 20:20:42 +12:00
G.Ambatte 5504c1b96b Update Autosave key 2025-09-10 20:00:53 +12:00
G.Ambatte 088ca9971c Update accountPage keys 2025-09-10 19:16:29 +12:00
G.Ambatte c99f59d42b Update newPage.jsx keys 2025-09-10 19:08:47 +12:00
Trevor Buckner c2e6150edf Fix mistaken delete 2025-09-09 22:39:11 -04:00
Trevor Buckner 95a1d74644 Linting 2025-09-09 22:35:55 -04:00
Trevor Buckner 1044aa74b0 Cleanup 2025-09-09 22:27:58 -04:00
Trevor Buckner 8a0f350c47 Fix mutating HTMLErrors directly instead of setState 2025-09-09 22:19:43 -04:00
Trevor Buckner 6f2c397574 Restore autosave warning to 15 minutes 2025-09-09 20:47:09 -04:00
Trevor Buckner 8706f91b58 Fis autosaveWarning 2025-09-09 08:37:17 -04:00
Trevor Buckner 90f6e7ec37 Make autosaving work
debouncing does not play nice with functional component. Any debounced function gets locked in as the original state, meaning we keep saving the original document and overwriting the current document when a save fires.

Must pass in the parameters instead of pulling directly from state to work properly.
2025-09-09 01:57:13 -04:00
Trevor Buckner 90a81237ec rename handleAutoSave to toggleAutoSave 2025-09-08 23:18:25 -04:00
Trevor Buckner 883f59ff0d rename autosave state to autoSaveEnabled 2025-09-08 23:13:21 -04:00
Trevor Buckner a75364c7f6 remove unused displayLockMessage state 2025-09-08 23:06:16 -04:00
Trevor Buckner 597ce7cb48 Convert renderNavBar and render 2025-09-08 23:05:47 -04:00
Trevor Buckner d94afa9c50 convert functions and states 2025-09-08 19:33:02 -04:00
G.Ambatte 917153e154 Merge branch 'master' into addDBCheckMiddleware 2025-09-03 19:13:45 +12:00
Trevor Buckner 1aeded648e make newPage functional 2025-09-02 22:21:49 -04:00
G.Ambatte 4fca207e0e Change error result to use Error Page 2025-09-02 20:58:08 +12:00
G.Ambatte 90de9c0af1 Change all links to User Page to use encodeURIComponent 2025-09-01 21:51:27 +12:00
Trevor Buckner 93b86632fc Change from require to import 2025-08-30 20:14:29 -04:00
Trevor Buckner d01860d4de Merge branch 'master' into MakeHomePageFunctionalComponent 2025-08-30 19:47:10 -04:00
Trevor Buckner 9c336062c6 Fix typo 2025-08-30 19:39:15 -04:00
Trevor Buckner 2cd47c46f6 Merge branch 'master' into Convert-ErrorNavItem-to-functional-component 2025-08-30 19:35:50 -04:00
Trevor Buckner 8671404bdc Refactor ErrorNavItem to not need "this" parameter
Toward making edit/new/home pages functional, which do not have "this"
2025-08-30 19:35:22 -04:00
Trevor Buckner 518a3434be Changes fetchThemeBundle helper to not need "this" parameter
Looks a bit ugly but this is temporary toward converting edit/home/new into functional components
2025-08-30 19:02:39 -04:00
Trevor Buckner 15c04ef37e Update homePage.jsx 2025-08-30 17:14:37 -04:00
Trevor Buckner 8cf55932a9 Fix useEffect and Refs; Update fetchThemeBundle to work with functional 2025-08-30 17:10:20 -04:00
Trevor Buckner 759dcb5833 Change functions to const vars 2025-08-30 16:49:54 -04:00
Trevor Buckner 83c3eacf83 Change props and state to functional style 2025-08-30 16:45:47 -04:00
G.Ambatte a8dab28fcf Fix Account page FA icon font weights 2025-07-30 12:00:50 +12:00
Trevor Buckner 719edd82c5 Moving splitPane over to the components folder
Just to reduce the number of changes needed to review on the UI overhaul #4122 PR
2025-07-29 16:35:25 -04:00
G.Ambatte b87c78474d Fix for diff patching using encodeURI 2025-07-19 14:49:02 +12:00
Víctor Losada Hernández 4fd61ce92c Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-red-background 2025-07-17 23:30:01 +02:00
G.Ambatte 2fbcc84a50 Merge branch 'master' into experimentalIDValidations 2025-07-14 14:50:05 +12:00
Trevor Buckner fb4a8e5cf1 Merge branch 'CompressSaveDataUpload' of https://github.com/naturalcrit/homebrewery into CompressSaveDataUpload 2025-07-13 19:38:10 -04:00
Trevor Buckner 8432a6e367 cleanup 2025-07-13 19:38:08 -04:00
G.Ambatte a7a8803e9d Merge branch 'master' into experimentalIDValidations 2025-07-13 20:52:52 +12:00
Trevor Buckner 5fbc111db7 Merge branch 'master' into CompressSaveDataUpload 2025-07-13 00:55:59 -04:00
Trevor Buckner d3a9d813c9 Log brew compression size just for testing purposes 2025-07-13 00:54:51 -04:00
Trevor Buckner 76b76b3bb6 Merge pull request #4286 from dbolack-ab/snippets-save-history-too
Add brew snippets to local save history
2025-07-11 13:32:13 -04:00
Trevor Buckner 22ef3cbebc Gzip brew object when sending for save update 2025-07-11 16:55:30 +00:00
Trevor Buckner 7cadbfbd7b allowExceedingIndices for our patch applier
Test if it allows patches to go through, and log error if it doesn't match the expected output.
2025-07-10 17:11:31 -04:00
David Bolack c7610cf0f8 Run patch processing in parallel to prior system to attempt to narrow down not-quite-so-edge cases that did not come up prior to user testing. 2025-07-10 07:10:13 -05:00