From 58ac662d8e57bad8b41d6b3b16c08ea9d0f996f0 Mon Sep 17 00:00:00 2001 From: ruinivist <179396038+ruinivist@users.noreply.github.com> Date: Sat, 30 May 2026 18:07:44 +0000 Subject: [PATCH] feat: implement manual save via Ctrl+S with toast and increase autosave interval - Increased autosave interval to 30s. - Captured Ctrl+S / Meta+S to trigger manual save. - Added a minimalistic, translucent toast in the top right to display saving status. --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e65ca65..c4f2eef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -143,7 +143,7 @@ export function App() { .then((body) => { setDrawings((current) => replaceMeta(current, body.drawing)); if (isManual) { - setToastMessage("Saved."); + setToastMessage("Saved"); if (toastTimeoutRef.current !== null) { clearTimeout(toastTimeoutRef.current); } @@ -153,7 +153,7 @@ export function App() { .catch((saveError: unknown) => { setError(saveError instanceof Error ? saveError.message : "Save failed"); if (isManual) { - setToastMessage("Save failed."); + setToastMessage("Save failed"); if (toastTimeoutRef.current !== null) { clearTimeout(toastTimeoutRef.current); }