feat(catalog): preserve and display dataset value scores
Deploy production / deploy (push) Successful in 51s

This commit is contained in:
yuxuanhui
2026-09-09 11:51:59 +08:00
parent f31dda78b4
commit 4debca7dbd
7 changed files with 49 additions and 2 deletions
+12 -1
View File
@@ -66,6 +66,7 @@ type Entry = {
subcategory: string | null;
field_type: string | null;
coverage: number | null;
value_score: number | null;
user_count: number | null;
alpha_count: number | null;
field_count: number | null;
@@ -732,6 +733,12 @@ export function DatasetPage({
width: 120,
render: (_, row) => row.complete_count ?? displayValue(row.field_count),
},
{
title: sortTitle("价值评分", "value_score"),
width: 120,
render: (_, row) =>
row.value_score == null ? "未提供" : row.value_score.toFixed(1),
},
{
title: "同步状态",
width: 120,
@@ -1057,7 +1064,7 @@ export function DatasetPage({
rowKey="id"
size="small"
pagination={false}
scroll={{ x: 884, y: "100%" }}
scroll={{ x: 1004, y: "100%" }}
empty={
<Empty
description={
@@ -1211,6 +1218,10 @@ export function DatasetPage({
: {
分类: displayValue(detailData.category),
子分类: displayValue(detailData.subcategory),
"价值评分 (Value Score)":
detailData.value_score == null
? "未提供"
: detailData.value_score.toFixed(2),
字段数:
detailData.complete_count ??
displayValue(detailData.field_count),