Spaces:
Running
Running
Commit ·
16f09b1
1
Parent(s): bdfcfeb
Refine main board scope and move generated timestamp
Browse files- index.html +32 -11
index.html
CHANGED
|
@@ -297,7 +297,7 @@
|
|
| 297 |
|
| 298 |
.stats {
|
| 299 |
display: grid;
|
| 300 |
-
grid-template-columns: repeat(
|
| 301 |
gap: 12px;
|
| 302 |
margin: 18px 0;
|
| 303 |
}
|
|
@@ -686,6 +686,12 @@
|
|
| 686 |
margin-top: 10px;
|
| 687 |
}
|
| 688 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 689 |
.markdown-note {
|
| 690 |
color: var(--muted);
|
| 691 |
font-size: 1rem;
|
|
@@ -822,11 +828,6 @@
|
|
| 822 |
<div class="stat-value" id="stat-top-score">-</div>
|
| 823 |
<div class="stat-sub">Weighted source-quality metric</div>
|
| 824 |
</article>
|
| 825 |
-
<article class="panel stat">
|
| 826 |
-
<span class="stat-label">Generated at</span>
|
| 827 |
-
<div class="stat-value" id="stat-generated">-</div>
|
| 828 |
-
<div class="stat-sub">Artifact timestamp in Pacific Time</div>
|
| 829 |
-
</article>
|
| 830 |
</section>
|
| 831 |
|
| 832 |
<section class="grid-2 plain-section" id="findings">
|
|
@@ -874,6 +875,7 @@
|
|
| 874 |
<div>
|
| 875 |
<div class="section-kicker">Leaderboard</div>
|
| 876 |
<h2 style="font-size:1.6rem;">Ranking Table</h2>
|
|
|
|
| 877 |
</div>
|
| 878 |
</div>
|
| 879 |
|
|
@@ -1052,6 +1054,13 @@
|
|
| 1052 |
authority: "Authority",
|
| 1053 |
};
|
| 1054 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1055 |
const viewSelect = document.getElementById("view-select");
|
| 1056 |
const sortKey = document.getElementById("sort-key");
|
| 1057 |
const searchInput = document.getElementById("search-input");
|
|
@@ -1066,6 +1075,7 @@
|
|
| 1066 |
const deepseekTableBody = document.querySelector("#deepseek-table tbody");
|
| 1067 |
const boardNote = document.getElementById("board-note");
|
| 1068 |
const loadStatus = document.getElementById("load-status");
|
|
|
|
| 1069 |
|
| 1070 |
function formatNumber(value, digits = 2) {
|
| 1071 |
if (value === null || value === undefined || value === "") return "-";
|
|
@@ -1095,20 +1105,29 @@
|
|
| 1095 |
loadStatus.style.color = isError ? "#b91c1c" : "var(--muted)";
|
| 1096 |
}
|
| 1097 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1098 |
function updateTopStats(payload) {
|
| 1099 |
-
const overall = payload.overall || [];
|
| 1100 |
-
const byType = payload.by_query_type || [];
|
| 1101 |
const top = overall[0];
|
| 1102 |
document.getElementById("stat-models").textContent = overall.length;
|
| 1103 |
document.getElementById("stat-query-types").textContent = new Set(byType.map((row) => row.query_type)).size;
|
| 1104 |
document.getElementById("stat-top-model").textContent = top ? top.model_name : "-";
|
| 1105 |
document.getElementById("stat-top-score").textContent = top ? formatNumber(top.weighted_total_content_score) : "-";
|
| 1106 |
-
|
| 1107 |
}
|
| 1108 |
|
| 1109 |
function computeFindings(payload) {
|
| 1110 |
-
const overall = payload.overall || [];
|
| 1111 |
-
const byType = payload.by_query_type || [];
|
| 1112 |
if (!overall.length || !byType.length) {
|
| 1113 |
return [{
|
| 1114 |
title: "No findings available",
|
|
@@ -1218,6 +1237,8 @@
|
|
| 1218 |
? [...(state.payload.overall || [])]
|
| 1219 |
: [...(state.payload.by_query_type || [])];
|
| 1220 |
|
|
|
|
|
|
|
| 1221 |
const q = searchInput.value.trim().toLowerCase();
|
| 1222 |
if (q) {
|
| 1223 |
rows = rows.filter((row) => String(row.model_name || "").toLowerCase().includes(q));
|
|
|
|
| 297 |
|
| 298 |
.stats {
|
| 299 |
display: grid;
|
| 300 |
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
| 301 |
gap: 12px;
|
| 302 |
margin: 18px 0;
|
| 303 |
}
|
|
|
|
| 686 |
margin-top: 10px;
|
| 687 |
}
|
| 688 |
|
| 689 |
+
.table-meta {
|
| 690 |
+
color: var(--muted);
|
| 691 |
+
font-size: 0.95rem;
|
| 692 |
+
line-height: 1.5;
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
.markdown-note {
|
| 696 |
color: var(--muted);
|
| 697 |
font-size: 1rem;
|
|
|
|
| 828 |
<div class="stat-value" id="stat-top-score">-</div>
|
| 829 |
<div class="stat-sub">Weighted source-quality metric</div>
|
| 830 |
</article>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 831 |
</section>
|
| 832 |
|
| 833 |
<section class="grid-2 plain-section" id="findings">
|
|
|
|
| 875 |
<div>
|
| 876 |
<div class="section-kicker">Leaderboard</div>
|
| 877 |
<h2 style="font-size:1.6rem;">Ranking Table</h2>
|
| 878 |
+
<div class="table-meta" id="table-generated">Generated at -</div>
|
| 879 |
</div>
|
| 880 |
</div>
|
| 881 |
|
|
|
|
| 1054 |
authority: "Authority",
|
| 1055 |
};
|
| 1056 |
|
| 1057 |
+
const DEEPSEEK_STUDY_MODELS = new Set([
|
| 1058 |
+
"deepseek-chat-gensee",
|
| 1059 |
+
"deepseek-reasoning-tavily",
|
| 1060 |
+
"deepseek-reasoning-gensee",
|
| 1061 |
+
"deepseek-chat-tavily",
|
| 1062 |
+
]);
|
| 1063 |
+
|
| 1064 |
const viewSelect = document.getElementById("view-select");
|
| 1065 |
const sortKey = document.getElementById("sort-key");
|
| 1066 |
const searchInput = document.getElementById("search-input");
|
|
|
|
| 1075 |
const deepseekTableBody = document.querySelector("#deepseek-table tbody");
|
| 1076 |
const boardNote = document.getElementById("board-note");
|
| 1077 |
const loadStatus = document.getElementById("load-status");
|
| 1078 |
+
const tableGenerated = document.getElementById("table-generated");
|
| 1079 |
|
| 1080 |
function formatNumber(value, digits = 2) {
|
| 1081 |
if (value === null || value === undefined || value === "") return "-";
|
|
|
|
| 1105 |
loadStatus.style.color = isError ? "#b91c1c" : "var(--muted)";
|
| 1106 |
}
|
| 1107 |
|
| 1108 |
+
function isDeepSeekStudyModel(name) {
|
| 1109 |
+
return DEEPSEEK_STUDY_MODELS.has(String(name || ""));
|
| 1110 |
+
}
|
| 1111 |
+
|
| 1112 |
+
function isMainBoardModel(name) {
|
| 1113 |
+
const modelName = String(name || "");
|
| 1114 |
+
return !isDeepSeekStudyModel(modelName) && modelName !== "google-search";
|
| 1115 |
+
}
|
| 1116 |
+
|
| 1117 |
function updateTopStats(payload) {
|
| 1118 |
+
const overall = (payload.overall || []).filter((row) => isMainBoardModel(row.model_name));
|
| 1119 |
+
const byType = (payload.by_query_type || []).filter((row) => isMainBoardModel(row.model_name));
|
| 1120 |
const top = overall[0];
|
| 1121 |
document.getElementById("stat-models").textContent = overall.length;
|
| 1122 |
document.getElementById("stat-query-types").textContent = new Set(byType.map((row) => row.query_type)).size;
|
| 1123 |
document.getElementById("stat-top-model").textContent = top ? top.model_name : "-";
|
| 1124 |
document.getElementById("stat-top-score").textContent = top ? formatNumber(top.weighted_total_content_score) : "-";
|
| 1125 |
+
tableGenerated.textContent = `Generated at ${formatPacificTimestamp(payload.metadata?.generated_at)}`;
|
| 1126 |
}
|
| 1127 |
|
| 1128 |
function computeFindings(payload) {
|
| 1129 |
+
const overall = (payload.overall || []).filter((row) => isMainBoardModel(row.model_name));
|
| 1130 |
+
const byType = (payload.by_query_type || []).filter((row) => isMainBoardModel(row.model_name));
|
| 1131 |
if (!overall.length || !byType.length) {
|
| 1132 |
return [{
|
| 1133 |
title: "No findings available",
|
|
|
|
| 1237 |
? [...(state.payload.overall || [])]
|
| 1238 |
: [...(state.payload.by_query_type || [])];
|
| 1239 |
|
| 1240 |
+
rows = rows.filter((row) => isMainBoardModel(row.model_name));
|
| 1241 |
+
|
| 1242 |
const q = searchInput.value.trim().toLowerCase();
|
| 1243 |
if (q) {
|
| 1244 |
rows = rows.filter((row) => String(row.model_name || "").toLowerCase().includes(q));
|