Add job queue for background analyze, enqueue from API, update MostActiveStocks form POST, add Playwright E2E for Save button

This commit is contained in:
2026-05-16 14:22:13 +02:00
parent eee375ff56
commit d9f9150d68
4 changed files with 124 additions and 29 deletions
+3 -2
View File
@@ -52,10 +52,11 @@ export default function MostActiveStocks() {
setSaving((p) => ({ ...p, [symbol]: true }));
setSaved((p) => ({ ...p, [symbol]: false }));
try {
const form = new FormData();
form.set("ticker", symbol);
const res = await fetch("/api/stocks", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ symbol }),
body: form,
});
if (!res.ok) {
const data = await res.json().catch(() => null);