UI: ensure dark text on job detail and job history cards (avoid white-on-light backgrounds)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
2026-05-16 15:13:38 +02:00
parent 3ed894015a
commit 329b83a17c
11 changed files with 1910 additions and 106 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ export async function action({ request }: { request: Request }) {
if (body.background) {
// Enqueue background analyze job and return 202 immediately
try {
const { enqueueAnalyze } = await import("../../lib/jobQueue");
const jobId = enqueueAnalyze(ticker, input);
const { enqueueAnalyze } = await import("../../lib/queue");
const jobId = await enqueueAnalyze(ticker, input);
return Response.json({ status: "queued", jobId }, { status: 202 });
} catch (enqueueErr) {
console.error("[analyze] enqueue error:", enqueueErr);
+2 -2
View File
@@ -53,7 +53,7 @@ export default function JobDetail() {
<Navbar />
<div className="mx-auto max-w-4xl px-6 py-8">
<h1 className="text-2xl font-bold text-gray-900 mb-4">Job {job?.id}</h1>
<div className="bg-white rounded-xl shadow-lg p-6 border border-gray-200">
<div className="bg-white rounded-xl shadow-lg p-6 border border-gray-200 text-gray-900">
<div className="mb-3 text-sm text-gray-700">State: <strong className="ml-2">{job?.state}</strong></div>
{job?.failedReason && (
<div className="mb-3 text-red-600">Failed: {job.failedReason}</div>
@@ -85,7 +85,7 @@ export default function JobDetail() {
</div>
<div className="text-sm text-gray-700 mb-3">Data:</div>
<pre className="bg-gray-50 p-3 rounded text-xs overflow-x-auto">{JSON.stringify(job?.data || job?.returnValue || job, null, 2)}</pre>
<pre className="bg-gray-50 p-3 rounded text-xs overflow-x-auto text-gray-800">{JSON.stringify(job?.data || job?.returnValue || job, null, 2)}</pre>
<div className="mt-4">