Commit Graph

701 Commits

Author SHA1 Message Date
Janis af3310297b feat(spark-analytics): per-row free-text questions in webview
Each expandable row now has a text input + Ask button alongside the
auto-analysis. Type any question about that row, press Ask or Enter, and
the answer streams in below via the existing /explain SSE path.

Server: row mode accepts an optional "question" field — when set it uses
a grounded Q&A prompt instead of the default analysis. Adds askRow() JS
handler, row-ask markup, and supporting CSS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 09:47:15 +02:00
Janis 9a5b62c2ab fix(spark-analytics): remove raw newline from webview JS comment
The SEP comment contained "\n\n", which Python's triple-quoted JS block
turned into real newline characters in the emitted script. That produced
an inline-<script> SyntaxError ("string literal contains an unescaped
line break"), so every handler went undefined and clicking the analyse
buttons did nothing (ReferenceError: analyzeRow is not defined).

Replace the comment text with plain words — no backslash escapes. Verified
by exec'ing serve.py (psycopg2 stubbed) to capture the Python-evaluated
JS and parsing it with node --check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 09:37:15 +02:00
Janis 9bb8f119b5 fix(spark-analytics): stream NIM AI responses to kill webview 504s
The /explain endpoint blocked on a synchronous NIM call (llama-3.3-70b,
30-60s+) while nginx's default 60s proxy-read-timeout fired first,
surfacing every AI request as a 504 Gateway Timeout.

Switch the NIM proxy to streaming (stream:true) and relay its SSE to the
browser via a new _emit() helper; the client now reads resp.body
incrementally and renders tokens as they arrive. With chunks flowing,
nginx's read-timeout resets per chunk so the 60s wall is gone, and the
frozen spinner is replaced by live text.

Ingress: disable proxy-buffering (else nginx buffers the whole response,
defeating streaming) and set proxy-read-timeout to 120s as the
inter-chunk gap budget. Server urlopen timeout 60->110s.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 09:22:31 +02:00
Janis Eccarius f64b838030 feat(spark-analytics): add AccuracyBlunder, ClockPressure, SmurfAnomaly jobs and webview datasets
Adds three new CronJobs (spark-accuracy-blunder, spark-clock-pressure,
spark-smurf-anomaly) and registers their six output tables in the
analytics webview (accuracy_by_rating, blunder_outcome, clock_by_rating,
scramble_outcome, smurf_anomaly, flagged_smurfs).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 00:18:22 +02:00
svc.kargo b3fffec838 chore(kargo): update image tag official-bots to 0.36.0-x86_v2 on htwg-1-prod (#510) 2026-06-24 00:09:18 +02:00
svc.kargo 9ca55db829 chore(kargo): update image tag official-bots to 0.36.0 on staging (#509) 2026-06-24 00:05:01 +02:00
svc.kargo 069dc70bb8 chore(kargo): update image tag official-bots to 0.35.0-x86_v2 on htwg-1-prod (#508) 2026-06-23 23:54:17 +02:00
svc.kargo 799280a851 chore(kargo): update image tag official-bots to 0.35.0 on eu-central-1-prod (#507) 2026-06-23 23:53:39 +02:00
svc.kargo 9f23ef35fd chore(kargo): update image tag official-bots to 0.35.0 on staging (#506) 2026-06-23 23:53:29 +02:00
svc.kargo 5b79a71611 chore(kargo): update image tag official-bots to 0.34.0-x86_v2 on htwg-1-prod (#505) 2026-06-23 23:17:35 +02:00
svc.kargo 82b06b4d2b chore(kargo): update image tag official-bots to 0.34.0 on eu-central-1-prod (#504) 2026-06-23 23:16:37 +02:00
svc.kargo 873d6563e8 chore(kargo): update image tag official-bots to 0.34.0 on staging (#503) 2026-06-23 23:16:10 +02:00
svc.kargo 50d047e353 chore(kargo): update image tag tournament to 0.9.0 on eu-central-1-prod (#502) 2026-06-23 22:49:57 +02:00
svc.kargo 55c0644ea5 chore(kargo): update image tag tournament to 0.9.0-x86_v2 on htwg-1-prod (#501) 2026-06-23 22:42:22 +02:00
svc.kargo 093cb8b933 chore(kargo): update image tag tournament to 0.9.0 on staging (#500) 2026-06-23 22:40:23 +02:00
svc.kargo 6a700d46ac chore(kargo): update image tag official-bots to 0.33.0 on eu-central-1-prod (#499) 2026-06-23 21:47:22 +02:00
svc.kargo 4857ce2fe0 chore(kargo): update image tag official-bots to 0.33.0-x86_v2 on htwg-1-prod (#498) 2026-06-23 21:44:41 +02:00
svc.kargo 533b26a15a chore(kargo): update image tag official-bots to 0.33.0 on staging (#497) 2026-06-23 21:42:14 +02:00
svc.kargo 04dd75c2cd chore(kargo): update image tag tournament to 0.8.0 on eu-central-1-prod (#496) 2026-06-23 20:58:25 +02:00
svc.kargo 9824251acf chore(kargo): update image tag tournament to 0.8.0-x86_v2 on htwg-1-prod (#495) 2026-06-23 20:56:16 +02:00
svc.kargo bcaee070eb chore(kargo): update image tag tournament to 0.8.0 on staging (#494) 2026-06-23 20:53:57 +02:00
svc.kargo 11b8a205fc chore(kargo): update image tag official-bots to 0.32.0-x86_v2 on htwg-1-prod (#493) 2026-06-23 15:26:33 +02:00
svc.kargo 04ab316c83 chore(kargo): update image tag official-bots to 0.32.0 on eu-central-1-prod (#492) 2026-06-23 15:25:49 +02:00
svc.kargo 92faff4212 chore(kargo): update image tag official-bots to 0.32.0 on staging (#491) 2026-06-23 15:25:39 +02:00
svc.kargo f16d93c6c0 chore(kargo): update image tag official-bots to 0.31.0 on eu-central-1-prod (#490) 2026-06-23 15:09:25 +02:00
svc.kargo 1e1a7458e7 chore(kargo): update image tag frontend to 0.6.3 on eu-central-1-prod (#489) 2026-06-23 15:08:13 +02:00
svc.kargo 3d2167d00f chore(kargo): update image tag frontend to 0.6.2 on eu-central-1-prod (#488) 2026-06-23 15:07:26 +02:00
svc.kargo d296b0a26d chore(kargo): update image tag tournament to 0.7.0 on eu-central-1-prod (#487) 2026-06-23 15:06:35 +02:00
svc.kargo 72066fe215 chore(kargo): update image tag official-bots to 0.30.0 on eu-central-1-prod (#486) 2026-06-23 15:05:51 +02:00
svc.kargo 5d1fc138c1 chore(kargo): update image tag official-bots to 0.29.0 on eu-central-1-prod (#485) 2026-06-23 15:05:09 +02:00
svc.kargo 347cfcd0b1 chore(kargo): update image tag tournament to 0.6.0 on eu-central-1-prod (#484) 2026-06-23 15:04:23 +02:00
svc.kargo 6028e29680 chore(kargo): update image tag frontend to 0.6.1 on eu-central-1-prod (#483) 2026-06-23 15:03:40 +02:00
svc.kargo 2ca6f8830e chore(kargo): update image tag official-bots to 0.28.0 on eu-central-1-prod (#482) 2026-06-23 15:02:50 +02:00
svc.kargo b39393fce2 chore(kargo): update image tag frontend to 0.6.0 on eu-central-1-prod (#481) 2026-06-23 15:01:56 +02:00
svc.kargo 59b30804f3 chore(kargo): update image tag frontend to 0.6.3 on staging (#480) 2026-06-23 15:01:06 +02:00
svc.kargo e4467cc5b4 chore(kargo): update image tag official-bots to 0.27.0 on eu-central-1-prod (#479) 2026-06-23 15:00:25 +02:00
svc.kargo 7277518939 chore(kargo): update image tag frontend to 0.6.3-x86_v2 on htwg-1-prod (#478) 2026-06-23 15:00:22 +02:00
svc.kargo 3dfd4451ed chore(kargo): update image tag official-bots to 0.31.0-x86_v2 on htwg-1-prod (#477) 2026-06-23 14:57:22 +02:00
svc.kargo f8552a681c chore(kargo): update image tag official-bots to 0.31.0 on staging (#476) 2026-06-23 14:56:52 +02:00
svc.kargo f759c77b17 chore(kargo): update image tag official-bots to 0.26.0 on eu-central-1-prod (#475) 2026-06-23 14:56:36 +02:00
svc.kargo d3234b3347 chore(kargo): update image tag official-bots to 0.25.0 on eu-central-1-prod (#454)
chore(kargo): update image tag official-bots to 0.25.0 on eu-central-1-prod

[View in Kargo UI](https://kargo.nowchess.janis-eccarius.de/project/nowchess-kargo/stage/eu-central-1-prod)

---------

Co-authored-by: Kargo <no-reply@kargo.io>
Reviewed-on: #454
Co-authored-by: svc.kargo <kargo@blackhole.local>
Co-committed-by: svc.kargo <kargo@blackhole.local>
2026-06-23 14:55:09 +02:00
Janis d28bdcf062 chore(htwg-1): reduce log level from WARN to INFO 2026-06-23 14:42:58 +02:00
svc.kargo e5f13fb720 chore(kargo): update image tag frontend to 0.6.2-x86_v2 on htwg-1-prod (#474) 2026-06-23 14:25:21 +02:00
svc.kargo 21d4f34a7d chore(kargo): update image tag frontend to 0.6.2 on staging (#473) 2026-06-23 14:21:21 +02:00
svc.kargo 8c9659da75 chore(kargo): update image tag official-bots to 0.30.0 on staging (#472) 2026-06-23 14:04:19 +02:00
svc.kargo 5d08613cd7 chore(kargo): update image tag tournament to 0.7.0-x86_v2 on htwg-1-prod (#471) 2026-06-23 14:03:42 +02:00
svc.kargo ed863ae299 chore(kargo): update image tag official-bots to 0.30.0-x86_v2 on htwg-1-prod (#470) 2026-06-23 14:03:33 +02:00
svc.kargo 952e121c4e chore(kargo): update image tag tournament to 0.7.0 on staging (#469) 2026-06-23 14:03:28 +02:00
svc.kargo aa9e31f720 chore(kargo): update image tag official-bots to 0.29.0-x86_v2 on htwg-1-prod (#468) 2026-06-23 11:08:28 +02:00
svc.kargo 6d6d540303 chore(kargo): update image tag official-bots to 0.29.0 on staging (#467) 2026-06-23 11:04:25 +02:00