Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+14
View File
@@ -0,0 +1,14 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def test_first_editor_save_is_immediate_but_existing_drafts_are_debounced():
source = (ROOT / "static/js/galleryEditor.js").read_text()
start = source.index("function _schedulePersist()")
end = source.index("async function _buildDraftPayloadAsync", start)
block = source[start:end]
assert "const delay = state.draftId ? PERSIST_DEBOUNCE_MS : 0;" in block
assert "setTimeout(() => { state.persistTimer = null; _persistDraft(); }, delay)" in block