From b036c14d84ffa6d0dc9f7b26a06305d93806c53c Mon Sep 17 00:00:00 2001 From: TheFlow Date: Fri, 24 Oct 2025 16:35:10 +1300 Subject: [PATCH] fix(submissions): extract data from API response wrappers CRITICAL FIX: Economist submission package was showing no data because the frontend was storing the entire API response wrapper instead of extracting the actual post and submission data. Changes: - submission-modal-enhanced.js: Extract .post from blog API response - submission-modal-enhanced.js: Extract .data from submissions API response - publications.routes.js: Restore original routes and add /targets endpoint - Cache version bumped to force browser updates Fixes: #economist-submission-data-missing --- public/about.html | 18 +++++------ public/api-reference.html | 6 ++-- public/blog-post.html | 10 +++--- public/blog.html | 14 ++++---- public/case-submission.html | 12 +++---- public/check-version.html | 2 +- public/docs-viewer.html | 16 ++++----- public/docs.html | 20 ++++++------ public/faq.html | 34 ++++++++++---------- public/implementer.html | 20 ++++++------ public/index.html | 20 ++++++------ public/js/admin/submission-modal-enhanced.js | 6 ++-- public/koha.html | 18 +++++------ public/leader.html | 22 ++++++------- public/media-inquiry.html | 12 +++---- public/privacy.html | 12 +++---- public/researcher.html | 22 ++++++------- public/version.json | 2 +- src/routes/publications.routes.js | 33 ++++++++++++++++++- 19 files changed, 166 insertions(+), 133 deletions(-) diff --git a/public/about.html b/public/about.html index 3d6e2419..441a8e67 100644 --- a/public/about.html +++ b/public/about.html @@ -5,9 +5,9 @@ About | Tractatus AI Safety Framework - - - + + +