feat(console): library-map M5 — 總庫搜尋頁藏書地圖首頁區塊(R4) #74
Reference in New Issue
Block a user
Delete Branch "feat/console-library-map-home"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
library-map SDD M5(GUI 首頁)。關聯 #39。
R4 落點裁定(首頁選點)
console 是 hash-routing 單頁殼,「首頁」隨 profile:full=駕駛艙、rag=總庫搜尋。地圖放總庫搜尋頁搜尋框上方:
內容
/kbdb/search既有library參數,portal-auth P1 順延項,不新造)進庫搜尋+清除鈕搜回全館;/map空陣列或錯誤=誠實空狀態(指引POST /map/recomputebackfill),不擋搜尋等其他功能。品牌走 CONSOLE_BRAND 變數(#21),零外部庫,視覺沿現有 kcard/tag/honest 元件。GET /kbdb/map+GET /kbdb/map/:library純轉發(rule 07;聚合真身在 kbdb base M2,不碰 kbdb/D1)。owner_id 不強制注入、只選擇性透傳(同 M4 MCP kbdb_get_map 語意):現行 backfill 的 map block owner_id=NULL,比照 search 強制注入租戶會把 NULL 列全濾掉→首頁永遠假空狀態。仍要求 X-Arcrun-API-Key 同閘;KBDB 不可達誠實 502。測試
kbdb-map-proxy.test.ts9 測:租戶閘 401/轉發/owner_id 透傳/空陣列透傳/404 透傳/不可達 502(fetchMock 假 host,絕不外連)。console-library-map-page.test.ts6 測:route 200+區塊在搜尋框上方(DOM 順序)+資料源接線+library 參數+誠實空狀態文案+品牌變數。tsc --noEmit16 行 ExecutionContext.tracing 錯誤與executor.test.ts1 失敗=main 基線既有(git stash 對照實證),非本分支引入。部署
merge 後需 gated redeploy cypher-executor(leo 閘)。不碰 D1、不動引擎、不改 kbdb。