feat(photo-editor): Ajax Image Editor client (Photoshop-parity tools)

Photoshop-parity editor client: layers, selection/masking, brushes,
smart filters, LUT import, Quick Edit, mobile gestures, workspaces,
batch operations, and the service-worker versioning (v978->v1006).

Source: vendor/photocraft (ad1cff44) photo-editor client files, merged
onto upstream/dev (a8c147b2). Conflict resolution documented in
pr_work/A_conflicts.md; editor files taken from vendor/photocraft
(upstream's editor is an earlier snapshot of the same feature).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pewdiepie-archdaemon
2026-10-15 11:57:35 +00:00
co-authored by Claude Opus 5.5
parent c74f475679
commit 5fac693c1c
290 changed files with 34358 additions and 766 deletions
+36
View File
@@ -0,0 +1,36 @@
import re
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
CSS = (ROOT / "static/css/13-image-editor.css").read_text()
SW = (ROOT / "static/sw.js").read_text()
def test_mobile_quick_edit_uses_chip_row():
# The suggestion popup is turned into an in-card horizontal chip row on phones.
assert ".ge-ai-command:not(.ge-ai-command-collapsed) {" in CSS
assert "flex-direction: column;" in CSS
assert ".ge-ai-command-suggestions {\n position: static;\n order: 1;" in CSS or (
"position: static;" in CSS and "order: 1;" in CSS
)
assert "flex-direction: row;" in CSS
assert "overflow-x: auto;" in CSS
def test_mobile_quick_edit_orders_form_after_chips():
assert ".ge-ai-command-form { order: 2; }" in CSS
assert ".ge-ai-command-status { order: 3; }" in CSS
assert ".ge-ai-command-stack { order: 4; }" in CSS
def test_mobile_quick_edit_chip_hides_columns():
assert ".ge-ai-command-suggestion-icon," in CSS
assert ".ge-ai-command-suggestion-kind," in CSS
assert ".ge-ai-command-suggestion-hint {" in CSS
assert ".ge-ai-command-suggestion-main {" in CSS
def test_sw_version_is_current():
m = re.search(r"CACHE_NAME = '(odysseus-v\d+-pr40-editor-precache)'", SW)
assert m, "CACHE_NAME not found"
assert re.fullmatch(r"odysseus-v\d+-pr40-editor-precache", m.group(1))