fix : ai slop
This commit is contained in:
@@ -272,7 +272,7 @@ function DataSourceEditor({
|
||||
<datalist id={`fields-${source.id}`}>
|
||||
{source.fields.filter((candidate) => candidate.key !== field.key).map((candidate) => <option key={candidate.key} value={candidate.key}>{candidate.label}</option>)}
|
||||
</datalist>
|
||||
{cell?.error ? <FieldError>สูตรนี้ยังคำนวณไม่ได้: ตรวจสอบชื่อฟิลด์และตัวหาร</FieldError> : <FieldDescription>ตัวอย่างผลลัพธ์: <span className="font-mono text-foreground">{cell?.display ?? "—"}</span></FieldDescription>}
|
||||
{cell?.error ? <FieldError>สูตรนี้ยังคำนวณไม่ได้: ตรวจสอบชื่อฟิลด์และตัวหาร</FieldError> : <FieldDescription>ตัวอย่างผลลัพธ์: <span className="font-mono text-foreground">{cell?.display ?? "-"}</span></FieldDescription>}
|
||||
</Field>
|
||||
);
|
||||
})}
|
||||
@@ -280,7 +280,7 @@ function DataSourceEditor({
|
||||
<div className="overflow-hidden rounded-lg border">
|
||||
<Table>
|
||||
<TableHeader><TableRow>{source.fields.slice(0, 3).map((field) => <TableHead key={field.key}>{field.label}</TableHead>)}<TableHead className="w-12" /></TableRow></TableHeader>
|
||||
<TableBody>{source.rows.slice(0, 10).map((row) => <TableRow key={row.id}>{source.fields.slice(0, 3).map((field) => <TableCell key={field.key} className="max-w-28 truncate">{row.values[field.key] ?? previewRow?.cells[field.key]?.display ?? "—"}</TableCell>)}<TableCell><Button size="xs" variant="ghost" onClick={() => setRowId(row.id)}>แก้ไข</Button></TableCell></TableRow>)}</TableBody>
|
||||
<TableBody>{source.rows.slice(0, 10).map((row) => <TableRow key={row.id}>{source.fields.slice(0, 3).map((field) => <TableCell key={field.key} className="max-w-28 truncate">{row.values[field.key] ?? previewRow?.cells[field.key]?.display ?? "-"}</TableCell>)}<TableCell><Button size="xs" variant="ghost" onClick={() => setRowId(row.id)}>แก้ไข</Button></TableCell></TableRow>)}</TableBody>
|
||||
</Table>
|
||||
</div>
|
||||
<Button
|
||||
|
||||
@@ -84,7 +84,7 @@ function displayCell(
|
||||
field: string,
|
||||
): string {
|
||||
const cell = evaluated.rows.find((row) => row.id === rowId)?.cells[field];
|
||||
return cell && !cell.error && cell.display != null ? cell.display : "—";
|
||||
return cell && !cell.error && cell.display != null ? cell.display : "-";
|
||||
}
|
||||
|
||||
export function collectGuideSections(
|
||||
@@ -538,7 +538,7 @@ function RankingBlock({
|
||||
#{index + 1}
|
||||
</span>
|
||||
<div className="min-w-0">
|
||||
{detail && detail !== "—" ? (
|
||||
{detail && detail !== "-" ? (
|
||||
<TermDetail label={label} detail={detail} />
|
||||
) : (
|
||||
<span className="font-medium">{label}</span>
|
||||
|
||||
@@ -437,7 +437,7 @@ function ArtifactSection({ guide }: { guide: PublicGuide }) {
|
||||
<div className="relative size-14 overflow-hidden rounded-xl border bg-muted sm:size-20">
|
||||
{catalogTalent?.iconUrl ? <Image src={catalogTalent.iconUrl} alt={talentName} fill className="object-contain" /> : <span className="grid size-full place-items-center font-semibold">{talent.type}</span>}
|
||||
</div>
|
||||
<Badge variant="secondary">{talent.level ? `เลเวล ${talent.level}+` : "—"}</Badge>
|
||||
<Badge variant="secondary">{talent.level ? `เลเวล ${talent.level}+` : "-"}</Badge>
|
||||
<p className="text-xs font-medium sm:text-sm">{talentName}</p>
|
||||
<p className="text-[11px] text-muted-foreground sm:text-xs">{talentTypeLabel(talent.type)}</p>
|
||||
</div>
|
||||
@@ -506,7 +506,7 @@ function ArtifactStat({ iconSrc, label, values }: { iconSrc: string; label: stri
|
||||
? values.map((value, index) => (
|
||||
<ArtifactStatValue key={`${value}-${index}`} value={value} index={index} />
|
||||
))
|
||||
: <span>—</span>}
|
||||
: <span>-</span>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user