Filters: the panel is a bar (status segment, always visible) plus a body that lives as a layer under it - collapsed by default, expands on hover/focus/tap and never moves the case grid; the reset control appears only when a facet is limited; width capped at 720px (measured 45px slack against 477px before). Facet research report is included. Links: project links in the mini card and in the project window are icon-only buttons with a uniform slot (16px card / 18px window) and the accessible name in aria-label; studio contacts (mail, VK, RuStore) live outside the cards. Team and page: real photos from the public TITANS team page go to the member window while the card keeps the mascot; the portfolio gains the First Step Radio card and genre values, the process block became an individual-approach section, plus a cookie bar and a removable ticker. Design folders under design/ keep reports, measurements, scripts and the .pen; probe and before/after screenshot dumps, editor backups and caches are removed. Background-variant and palette previews stay until the client picks one.
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
"""Read the on-disk .pen and dump the exact serialization of the button master,
|
|
its state row, and one instance ref — the shapes the new ProjectLink nodes must
|
|
mirror. Read-only.
|
|
|
|
Run: python design/project-links-2026-10-14/inspect-pen-disk.py
|
|
"""
|
|
import json
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path("G:/Project/Haevey_Monster_Team_Page")
|
|
CANON = ROOT / "Harvey_Monster_Team_Page.pen"
|
|
SNAP = ROOT / "design" / "Harvey_Monster_Team_Page.pen"
|
|
|
|
|
|
def find(node, name):
|
|
if isinstance(node, dict):
|
|
if node.get("name") == name:
|
|
return node
|
|
for c in node.get("children") or []:
|
|
r = find(c, name)
|
|
if r:
|
|
return r
|
|
return None
|
|
|
|
|
|
def top(doc):
|
|
return [n.get("name") for n in doc.get("children") or []]
|
|
|
|
|
|
for path in (CANON, SNAP):
|
|
print("=" * 70)
|
|
print(path, path.stat().st_size, "bytes")
|
|
try:
|
|
doc = json.loads(path.read_text(encoding="utf-8"))
|
|
except Exception as e: # noqa: BLE001
|
|
print(" LOAD FAIL:", e)
|
|
continue
|
|
print(" keys:", list(doc.keys()))
|
|
print(" fileToken:", doc.get("fileToken"))
|
|
print(" top frames:", top(doc))
|
|
print(" ProjectLink already present:", find(doc, "ProjectLink") is not None)
|
|
for name in ("GhostButton", "Wrap_КНОПКА GHOST", "Row_КНОПКА GHOST"):
|
|
n = find(doc, name)
|
|
print(f"--- {name}: {'MISSING' if n is None else 'found'}")
|
|
if n is not None:
|
|
print(json.dumps(n, ensure_ascii=False, indent=2)[:2200])
|