預排異動(一):預計離職、預計新進 #28

Merged
walkdoggo.yeh merged 7 commits from feat/planned-changes into main 2026-11-17 06:02:34 +00:00
Owner

內容

  • 新頁面「預排異動」(只有最高管理者):預計離職(最後工作月份)、預計新進(名稱、部門、組、職能、預估薪資、期間)。
  • 存在 COST_MODEL_DATA_DIR/planned-changes.json(不進 Git)。
  • 所有計算(主看板、/my、模擬、定錨、對外接口)都套用同一份預排,定錨最高點不會被不同版本墊高。部長看到套用後的數字,看不到備註和原因。
  • 人員資料:預排新進是唯讀列;預排離職的人加註「預排離職:最後 M 月」。
  • 定錨確認面板列出這次包含幾筆預排;過期(時間到 HR 還沒改)的會在上方提醒。
  • 沒有任何預排時,資料完全不變(測試確認)。

測試

  • node --test:76 通過。
  • /api/plans 對一般同仁回 403。

🤖 Generated with Claude Code

https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ

## 內容 - 新頁面「預排異動」(只有最高管理者):預計離職(最後工作月份)、預計新進(名稱、部門、組、職能、預估薪資、期間)。 - 存在 COST_MODEL_DATA_DIR/planned-changes.json(不進 Git)。 - 所有計算(主看板、/my、模擬、定錨、對外接口)都套用同一份預排,定錨最高點不會被不同版本墊高。部長看到套用後的數字,看不到備註和原因。 - 人員資料:預排新進是唯讀列;預排離職的人加註「預排離職:最後 M 月」。 - 定錨確認面板列出這次包含幾筆預排;過期(時間到 HR 還沒改)的會在上方提醒。 - 沒有任何預排時,資料完全不變(測試確認)。 ## 測試 - node --test:76 通過。 - /api/plans 對一般同仁回 403。 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
walkdoggo.yeh added 7 commits 2026-11-17 05:59:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
build: copy plans.js into the image
CI / build (push) Successful in 32s
84a6d9137b
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
i18n: English strings for 預排異動
CI / build (push) Successful in 30s
60fb423d9d
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
test: plans.js unit tests
CI / build (push) Successful in 29s
8e4d5a54c8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
test: /api/plans is top-admin only; planned hires persist
CI / build (push) Successful in 28s
CI / build (pull_request) Successful in 28s
a77636d915
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
walkdoggo.yeh merged commit fbf3faf058 into main 2026-11-17 06:02:34 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: walkdoggo.yeh/leadboard#28