Release v2.10.0: Add hs-closeups-sync to automatically re-render homepage UI closeups when page UI elements change
This commit is contained in:
1 parent
72fc095489
commit
75e80f6a66
16 files changed
+1350
-11
No files matched your search
@@ -1129,7 +1129,15 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
):
|
||||
assert q_img in home_txt, f"Missing quadrant closeup {q_img} on homepage"
|
||||
assert (cfg.core_dir / "site" / q_img).is_file()
|
||||
assert home_txt.count('class="closeup-tab-strip"') == 4, "Expected 4 .closeup-tab-strip containers on homepage"
|
||||
# Verify hs-closeups-sync automatic UI element fingerprint & closeup parity
|
||||
from hyperstitionstud_io.publishing.closeups_sync import render_all_quadrant_closeups
|
||||
|
||||
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
||||
if not cu_chk["ok"]:
|
||||
cu_sync = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, force=False, check_only=False)
|
||||
assert cu_sync["ok"] is True
|
||||
cu_chk = render_all_quadrant_closeups(workspace_root=cfg.workspace_root, check_only=True)
|
||||
assert cu_chk["ok"] is True and not cu_chk["missing_pngs"], f"Closeup UI drift: {cu_chk}"
|
||||
assert home_txt.count('class="closeup-tab-btn"') == 11, "Expected 11 interactive .closeup-tab-btn tabs across the 4 quadrants"
|
||||
assert home_txt.count('class="closeup-tab-btn"') <= 12, "Strategy 6A: Homepage must never exceed 3 chamfered tabs per quadrant (12 total)"
|
||||
hdr_match = re.search(r"<header>.*?</header>", home_txt, flags=re.S)
|
||||
|
||||
Reference in new issue
Block a user