docs(U-4): 對帳補登成本面板真實化收尾(PR #35 已實作)#84
Merged
Merged
Conversation
U-4(成本面板接真 /api/usage、移除 mock 示意數字)實作早於 PR #35 (commit 1a63b97,C-1 #34 影片/解析計帳落地後隨即完成),但當時漏勾 checkbox、漏補 ✅ 行。查證後確認: - 後端 GET /api/usage 回 core.usage 真實統計 + 月預算,涵蓋視覺/在地化/ 影片/解析四站 Gemini 呼叫(影片 render 計帳由 C-1 補上)。 - 前端頂欄成本 pill 與抽屜 CostPanel 共用同一份 /api/usage,無呼叫紀錄 時顯示空狀態,已無 mock 示意數字。 - 單價精準化=C-2(GATE)另議,與本項正交。 純文件對帳,無 code 變更。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做什麼
把 PRODUCT_READINESS.md 的 U-4(成本面板真實化收尾) 從
[ ]補勾成[x],加上 ✅ 對帳行。為什麼
U-4 的實作其實早就完成在 PR #35(commit
1a63b97)——在 C-1(#34)把影片/解析 render pipeline 接上 Gemini 計帳後隨即落地。但當時漏勾 checkbox、漏補 ✅ 行,導致清單上 U-4 仍顯示未做,誤導 routine 把它當待辦。本輪查證後補正。查證結果(程式碼已是真實化狀態):
GET /api/usage(server/routes/infocards.py::usage_summary)回core.usage真實統計 +get_monthly_budget(),涵蓋視覺/在地化/影片/解析四站的 Gemini 呼叫(影片 render 計帳由 C-1 補上)。frontend/edustudio/app.jsx:頂欄成本 pill 與抽屜CostPanel共用同一份/api/usage(loadUsage,掛載即抓、開抽屜重抓刷新),各站花費/近期呼叫/呼叫次數全讀後端真實資料;無呼叫紀錄時顯示空狀態,已無 mock 示意數字。怎麼測
純文件對帳,無 code 變更(未動 server/core/schemas/runner,依紀律不需跑 pytest)。既有
tests/test_usage.py已覆蓋/api/usage端點。reviewer 決策點
無。僅文件對帳。
https://claude.ai/code/session_01AEgxma7pDb8PZ672FYbcAx
Generated by Claude Code