fix: A1-5 implement post editor auto-save after 3000ms idle, on tab switch, and on unmount

This commit is contained in:
2026-05-28 21:45:42 +02:00
parent d423b6db98
commit 0f30221907
6 changed files with 205 additions and 1 deletions

View File

@@ -62,6 +62,18 @@ defmodule BDS.Desktop.ShellLive.Notify do
:ok
end
@spec schedule_auto_save(atom(), term()) :: :ok
def schedule_auto_save(type, id) do
send(self(), {:schedule_auto_save, type, id})
:ok
end
@spec cancel_auto_save(atom(), term()) :: :ok
def cancel_auto_save(type, id) do
send(self(), {:cancel_auto_save, type, id})
:ok
end
@spec parent(term()) :: :ok
def parent(message) do
send(self(), message)