fix(admin): trend chart height 100px, logs 3-column layout, KPI cards clickable links, AI timeout 120s env var, X/Pinterest settings

This commit is contained in:
chattie
2026-08-24 22:09:12 +02:00
parent 30f0cb0702
commit 2ed2ac8cd1
11 changed files with 105 additions and 9 deletions

View File

@@ -195,6 +195,11 @@ export function ServerLogViewer({ backendUrl = 'http://192.168.18.93:3000' }: Se
style={{ minHeight: 0 }}
>
<table className="w-full table-fixed">
<colgroup>
<col className="w-32 shrink-0" />
<col className="w-16 shrink-0" />
<col className="flex-1 min-w-0" />
</colgroup>
<tbody>
{logs.map((entry, i) => (
<tr
@@ -220,7 +225,7 @@ export function ServerLogViewer({ backendUrl = 'http://192.168.18.93:3000' }: Se
)}
</td>
{/* Message */}
<td className="px-3 py-0.5 text-gray-300 select-all">
<td className="px-3 py-0.5 text-gray-300 select-all overflow-hidden text-ellipsis">
{/* Extra fields for HTTP request logs */}
{entry.method && entry.url && (
<span className="mr-2">

View File

@@ -13,7 +13,7 @@ interface TrendChartProps {
height?: number;
}
export function TrendChart({ data, maxValue, height = 200 }: TrendChartProps) {
export function TrendChart({ data, maxValue, height = 120 }: TrendChartProps) {
if (data.length === 0) return null;
const width = 100; // percentage-based SVG