From 925065ecdc5d40fd0cd373b50a3dd457c55485e8 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 --- .claude/session-state.json | 24 +++++++------- .claude/token-checkpoints.json | 2 +- 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 ++++++++++++++++++- 21 files changed, 179 insertions(+), 146 deletions(-) diff --git a/.claude/session-state.json b/.claude/session-state.json index 4e21b6a9..cfafbda1 100644 --- a/.claude/session-state.json +++ b/.claude/session-state.json @@ -43,13 +43,13 @@ "last_deliberation": null }, "FileEditHook": { - "timestamp": "2025-10-23T23:18:19.217Z", - "file": "/home/theflow/projects/tractatus/public/admin/calendar.html", + "timestamp": "2025-10-24T03:32:50.799Z", + "file": "/home/theflow/projects/tractatus/public/js/admin/submission-modal-enhanced.js", "result": "passed" }, "FileWriteHook": { - "timestamp": "2025-10-23T22:16:03.430Z", - "file": "/home/theflow/projects/tractatus/src/services/Translation.service.js", + "timestamp": "2025-10-24T00:04:27.173Z", + "file": "/home/theflow/projects/tractatus/public/js/admin/editorial-guidelines.js", "result": "passed" } }, @@ -58,25 +58,25 @@ "tokens": 30000 }, "alerts": [], - "last_updated": "2025-10-23T23:18:19.217Z", + "last_updated": "2025-10-24T03:32:50.799Z", "initialized": true, "framework_components": { "CrossReferenceValidator": { "message": 0, "tokens": 0, - "timestamp": "2025-10-23T23:18:26.071Z", - "last_validation": "2025-10-23T23:18:26.070Z", - "validations_performed": 845 + "timestamp": "2025-10-24T03:34:30.502Z", + "last_validation": "2025-10-24T03:34:30.501Z", + "validations_performed": 949 }, "BashCommandValidator": { "message": 0, "tokens": 0, "timestamp": null, - "last_validation": "2025-10-23T23:18:26.072Z", - "validations_performed": 475, - "blocks_issued": 41 + "last_validation": "2025-10-24T03:34:43.742Z", + "validations_performed": 582, + "blocks_issued": 62 } }, - "action_count": 475, + "action_count": 582, "auto_compact_events": [] } \ No newline at end of file diff --git a/.claude/token-checkpoints.json b/.claude/token-checkpoints.json index caad48e6..bc7296a3 100644 --- a/.claude/token-checkpoints.json +++ b/.claude/token-checkpoints.json @@ -23,5 +23,5 @@ ], "next_checkpoint": 50000, "overdue": false, - "last_check": "2025-10-23T22:27:08.565Z" + "last_check": "2025-10-24T00:08:05.819Z" } \ No newline at end of file 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 - - - + + +