Rewrite project file drop zone.

Folder drops still skip KiCad backups/pretty/3dmodels; dashed upload chrome is unchanged.
This commit is contained in:
2026-09-20 20:11:48 +02:00
parent c5cd98587f
commit 7d82358e19
2 changed files with 199 additions and 0 deletions
@@ -0,0 +1,19 @@
"""Project file drop zone lives under periscope/src."""
from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SRC = ROOT / "periscope" / "src" / "frontend" / "src" / "components/upload/file-upload-zone.tsx"
def test_upload_zone_is_src():
text = SRC.read_text(encoding="utf-8")
assert "Native Periscope overlay" not in text[:400]
assert "export function FileUploadZone" in text
assert "webkitGetAsEntry" in text
assert "webkitRelativePath" in text
assert "-backups" in text
assert "border-dashed" in text
assert "border-emerald-500/40" in text