json update
Some checks failed
Build Authoring Service / build (push) Has been cancelled

This commit is contained in:
2026-05-13 16:33:29 +01:00
parent 8e619a9dde
commit abbc1ae694
10 changed files with 32853 additions and 2 deletions

View File

@@ -1579,6 +1579,10 @@ def queue_build(page: dict[str, Any]) -> dict[str, Any]:
return BUILD_QUEUE.enqueue(page["path"], page["title"]).to_dict()
def queue_hidden_build() -> dict[str, Any]:
return BUILD_QUEUE.enqueue("assets/content/hidden-details.json", "Hidden Memory Observatory").to_dict()
APP_HTML = r"""<!doctype html>
<html lang="en">
<head>
@@ -4875,7 +4879,7 @@ HIDDEN_APP_HTML = r"""<!doctype html>
state.stories = data.stories || [];
state.meta = data;
localStorage.removeItem(draftKey);
setStatus(data.message || "constellation stored safely.");
setStatus(data.queuedBuild ? "constellation stored safely. asset republish queued." : (data.message || "constellation stored safely."));
renderValidation();
render();
} catch (err) {
@@ -5167,7 +5171,9 @@ class Handler(BaseHTTPRequestHandler):
try:
length = int(self.headers.get("Content-Length", "0"))
data = json.loads(self.rfile.read(length).decode("utf-8"))
self.send_json(save_hidden_store(data))
saved = save_hidden_store(data)
saved["queuedBuild"] = queue_hidden_build()
self.send_json(saved)
except Exception as exc:
self.send_json({"error": str(exc)}, HTTPStatus.BAD_REQUEST)
return