Commit Graph
217 Commits
Author SHA1 Message Date
Trevor Buckner 52c7f70023 Remove unused brewRenderer props 2026-09-18 10:26:24 -04: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 e6bf0e28c5 Pass in the remaining missing dependencies 2026-09-11 22:28:19 -04:00
Trevor Buckner 4428a1da07 Merge branch 'master' into new/edit/home-exctractcommonsetupsteps 2026-09-09 21:51:12 -04:00
Trevor Buckner 4a884233c1 Remove page leave warning when saving on New 2026-09-09 20:29:39 -04:00
Trevor Buckner 82efff8ce5 Move setup effects to common functions 2026-09-09 20:10:17 -04:00
Trevor Buckner e4d6611027 Restore time to 15 minutes 2026-09-09 21:39:51 +00:00
Trevor Buckner 719b30a04e Fix message syntax 2026-09-09 21:33:02 +00:00
Trevor Buckner 2c416dcdb9 Add missing lastSavedTime state 2026-09-09 21:23:50 +00:00
Trevor Buckner 76541cd836 Add missing timeout ref 2026-09-09 21:21:00 +00:00
Trevor Buckner 67728afd4f Give "unsaved change" warning to NewPage and HomePage. Autosave is always disabled on those. 2026-09-09 21:08:58 +00:00
Trevor Buckner 5865e5adfd Extract common "handlePageChange" to a reusable hook 2026-09-09 18:42:39 +00:00
David Bolack 6c19afbf2b Rough working version 2026-08-25 12:49:22 -05:00
David Bolack 3d7daf406d Passes tests 2026-08-25 11:42:56 -05:00
durstann 3628d1d57d Add nav buttons to the tab order and use semantic buttons so they are interactable with the keyboard 2026-07-26 23:47:10 -07:00
Gazook89 fd6fd98fdc Add @components aliases to vite config
And update all the files to point to that directory to use the alias.
2026-07-11 17:41:49 -05:00
Víctor Losada Hernández 65d1106974 this should fix it 2026-05-04 00:42:10 +02:00
Víctor Losada Hernández 8d18529c6d linting 2026-03-03 23:44:02 +01:00
Víctor Losada Hernández c096014871 shared folder (for markdown.js and helpers 2026-02-25 18:40:50 +01:00
Víctor Losada Hernández 1e0c09243a navbar alias 2026-02-25 18:24:54 +01:00
Víctor Losada Hernández 2534f23c24 fixing css 2026-02-02 00:04:23 +01:00
Víctor Losada Hernández 3e76046868 Revert "renamed client to src"
This reverts commit c28736bd01.
2026-02-01 17:36:53 +01:00
Víctor Losada Hernández c28736bd01 renamed client to src 2026-02-01 17:34:50 +01:00
Víctor Losada Hernández 852510c93a more imports 2026-01-24 00:49:37 +01:00
Víctor Losada Hernández 3c3d29739a Merge branch 'master' of https://github.com/naturalcrit/homebrewery into vitreum-to-vite 2026-01-24 00:39:57 +01:00
Víctor Losada Hernández 9d03385a13 change imports 2026-01-24 00:29:15 +01:00
Víctor Losada Hernández 54b0dd46f8 vitreum headtags (temporary change) 2026-01-23 18:51:01 +01:00
Víctor Losada Hernández d6b763e62d update import paths 2026-01-23 18:44:51 +01:00
Víctor Losada Hernández 7b00ec9fcf stable version i think 2026-01-21 15:44:33 +01:00
Víctor Losada Hernández 0d6c3c7e33 fix module.exports 2026-01-20 19:56:37 +01:00
Víctor Losada Hernández 8d2744d106 Merge branch 'master' into Move-Nav.JSX 2025-11-10 23:38:21 +01:00
Víctor Losada Hernández 71462ef782 Merge branch 'master' into fixSaveOnNewPage 2025-11-10 23:33:43 +01:00
Gazook89 2ce13f61e1 update relative paths to absolute paths 2025-11-09 23:29:55 -06:00
Trevor Buckner e6e66ec1cc Merge branch 'master' into Move-Nav.JSX 2025-11-09 18:19:28 -05:00
G.Ambatte 20d38d03d6 Rename New Page save function to trySave for better Edit Page compatibility 2025-11-06 22:29:43 +13:00
Gazook89 c5aa774daa Move markdown.js and markdownlegacy.js
Moves the two files up a level, directly in `/shared/`.  Everything else is just updating paths for that.
2025-11-04 22:29:28 -06:00
Gazook89 081fd6f39d Move nav.jsx from shared to client directory
Moving the one file, changing a lot of imports (18 files), and deleting a directory.
2025-11-03 20:58:00 -06:00
Trevor Buckner 63bebe1efd Lint everything
Catching up on a bunch of linting so random changes stop showing up on PRs when the linter is run.
2025-10-06 00:02:24 -04:00
Trevor Buckner 41aebf084b Make the renderSaveButton() function common between edit/new/home
Each of the edit/home/new pages renders its save button differently. This makes it a common function with all the same possible render states (does the document have unsaved changes? Is it already saved? Was it auto-saved?).

- Common save button
- Adds the "save" button to /home page which wasn't there before
- Animates the "save" button in /home and /new when the user makes their first change to signal that yes, you do have to actually click the save button if you want to keep this.
- "reminder... you haven't saved for X minutes" still not functional on /new and /home since that involves more moving pieces.
2025-10-05 21:57:19 -04:00
Trevor Buckner 2c4c4b8f92 Make unsavedChanges state common
/editPage.jsx uses `unsavedChanges` state to detect when autosave should fire, or unsaved changes warning should display.

/homePage.jsx uses a similar check (different variables) to detect when to show the popup "save now"! button

/newPage.jsx doesn't do any of this, but probably should pop up a warning when saving hasn't happened for a long time

This commit just gives all of the pages the same common `unsavedChanges` state, calculated in the same way, and updates any sections that depend on that updated state.

This is precursor work to adding "unsaved changes" warnings to all three pages.
2025-10-04 22:17:24 -04:00
Trevor Buckner 6057b35d19 Merge branch 'master' into UnifyNewHomeEdit-Structure&Naming 2025-10-04 21:48:10 -04:00
Trevor Buckner 20e12ebcb5 Remove handler function for cursor/renderer page. Use setState directly 2025-10-04 21:39:24 -04:00