Elffuss BraidHub

kikocis/utopia public

Data mapping is neither a queue nor a history (#148)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Changesetfc2336f545ac48e00c3306b490103dd4019f7abc4db79634abade632c9c2da8a
AuthorWaylandYang <145302500+WaylandYang@users.noreply.github.com> · 2026-08-31 21:11 +08:00
CommitterGitHub <noreply@github.com> · 2026-08-31 21:11 +08:00
Parents91e50a273f4d

Browse the files at this changeset

1 file changed

modified web/src/pages/Review.tsx +20 −11
@@ -859,7 +859,10 @@
859859 return (
860860 <div className="h-full flex">
861861 {/* 左栏:队列分类 + 历史,各带实时计数(SSE 推动刷新) */}
862- <aside className={`${RAIL_CLS} flex flex-col`}>
862+ {/* `overflow-y-auto`:矮窗口下这一栏的内容比它高,而底部那条是「去别处办」
863+ 的出口——没有滚动它会被裁掉且够不着。`mt-auto` 只在有富余空间时把它
864+ 压到底,两者要一起给 */}
865+ <aside className={`${RAIL_CLS} flex flex-col overflow-y-auto u-scroll`}>
863866 <RailHeader label={S.review.tabQueue} />
864867 <div className="px-2 space-y-0.5">
865868 <RailItem
@@ -886,16 +889,6 @@
886889 count={counts.lowconf}
887890 onClick={() => select("lowconf")}
888891 />
889- {/* 口径审批搬去了「数据映射」页:判断一条口径对不对要看得见表结构,
890- 而那在那一页。**计数留在这里**——收件箱该说「有几条等你」,
891- 但活要在有上下文的地方干 */}
892- <RailItem
893- active={false}
894- label={S.review.railMappings}
895- count={counts.mappings}
896- onClick={() => navigate({ to: "/mappings" })}
897- external
898- />
899892 <RailItem
900893 active={active === "violations"}
901894 label={S.review.railViolations}
@@ -924,6 +917,22 @@
924917 onClick={() => select("merges")}
925918 />
926919 </div>
920+
921+ {/* 数据映射:**两组都不属于,所以压在底部单独一条。**
922+ 上面那七档问的都是「这条知识对不对」,而口径问的是「这个数怎么算」
923+ (0011 已经在数据层把它分出去了);下面那两档是本页办过的事的流水,
924+ 而口径的决定从来不进 `review_history`(它只捞 review./fact./
925+ conflict./merge.,口径记的是 mapping.decided)。
926+ **计数留着**——收件箱该说「有几条等你」,但活在有上下文的那一页干 */}
927+ <div className="mt-auto border-t border-white/5 px-2 py-2">
928+ <RailItem
929+ active={false}
930+ label={S.review.railMappings}
931+ count={counts.mappings}
932+ onClick={() => navigate({ to: "/mappings" })}
933+ external
934+ />
935+ </div>
927936 </aside>
928937
929938 {/* 右侧:一次只显示选中的一类,单一分页 */}