mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-18 12:52:20 +02:00
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:
co-authored by
Claude Opus 5.5
parent
c74f475679
commit
5fac693c1c
@@ -0,0 +1,28 @@
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
RIGHT_PANEL = (ROOT / "static" / "js" / "editor" / "build" / "right-panel.js").read_text()
|
||||
CSS = (ROOT / "static" / "css" / "13-image-editor.css").read_text()
|
||||
SW = (ROOT / "static" / "sw.js").read_text()
|
||||
|
||||
|
||||
def test_mobile_panel_overlay_mounted():
|
||||
assert "'ge-mobile-panels'" in RIGHT_PANEL
|
||||
assert "compact: true" in RIGHT_PANEL
|
||||
assert "ge-layers-panels-btn" in RIGHT_PANEL
|
||||
assert "overlay.hidden = !overlay.hidden;" in RIGHT_PANEL
|
||||
|
||||
|
||||
def test_mobile_panel_overlay_is_phone_scoped():
|
||||
# Asserted against the whole stylesheet: the file now has several
|
||||
# `@media (max-width: 700px)` blocks, so index-based scoping is brittle.
|
||||
assert "@media (max-width: 700px)" in CSS
|
||||
assert ".ge-mobile-panels {" in CSS
|
||||
assert ".ge-layers-panels-btn {" in CSS
|
||||
assert ".ge-mobile-panels .ge-dock-select {" in CSS
|
||||
|
||||
|
||||
def test_sw_cache_bumped():
|
||||
m = re.search(r"CACHE_NAME = '(odysseus-v\d+-pr40-editor-precache)'", SW)
|
||||
assert m, "CACHE_NAME not found"
|
||||
Reference in New Issue
Block a user