mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-16 20:02:20 +02:00
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>
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
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))
|