coda-share-rules
main
把寫死在程式裡的 CODA 分配規則改成核心參數 codaShareRules,並讓「整包把 CODA 分出去」的部門只算成本、不談指標。
codaShareRules
calc-core.js
globalParams.codaShareRules
settings-store.js
index.html
沒有編輯介面,規則目前只能由後端設定。介面另開 PR。
🤖 Generated with Claude Code
https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
No dependencies set.
The note is not visible to the blocked user.
做了什麼
把寫死在程式裡的 CODA 分配規則改成核心參數
codaShareRules,並讓「整包把 CODA 分出去」的部門只算成本、不談指標。calc-core.js:規則改讀globalParams.codaShareRules。沒有設定時用原本的預設(夢境現實 → 互動技術部、互動美術部),所以現在的行為完全不變。settings-store.js:伺服器端驗證並保存規則。格式不對的整條跳過;同時出現在 from 的部門不會被當成 to。index.html:存檔時把規則原樣帶回,避免被其他設定的存檔洗掉。還沒做
沒有編輯介面,規則目前只能由後端設定。介面另開 PR。
測試
🤖 Generated with Claude Code
https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ