Show a toast if the user tries to save their work (#6051)

* Show a toast if the user tries to save their work

And store the fact that they've seen it in localStorage so we don't spam
them every time they hit it after they see it.

* Remove any localStorage logic, toast every time
This commit is contained in:
Frank Noirot
2025-03-31 14:37:04 -04:00
committed by GitHub
parent f94f748339
commit 954fddf578

View File

@ -30,6 +30,7 @@ import { commandBarActor } from 'machines/commandBarMachine'
import { useToken } from 'machines/appMachine'
import { useSettings } from 'machines/appMachine'
import { rustContext } from 'lib/singletons'
import toast from 'react-hot-toast'
maybeWriteToDisk()
.then(() => {})
.catch(() => {})
@ -98,6 +99,10 @@ export function App() {
}
)
useHotkeyWrapper(['mod + s'], () => {
toast.success('Your work is auto-saved in real-time')
})
const paneOpacity = [onboardingPaths.CAMERA, onboardingPaths.STREAMING].some(
(p) => p === onboardingStatus.current
)