shaune.janandClaude Opus 5.5 00f1741dd7
CI / build (push) Successful in 11m11s
1.4.0: show-roster-sync-failure — the HR roster sync status on /admin/settings shows why the latest run failed
- The failure is shown after 「失敗」 as a Chinese explanation of the stage and reason, e.g. 「2026/11/01 名冊查詢:HTTP 400(日期超出 HR 可查範圍或參數錯誤)」. It comes only from the recorded codes (`rosterSyncFailureText`, src/lib/hr-sync-failure.ts); no HR response content, token or personal data. Unknown codes are shown as is; old rows without a stage show only 「失敗」.
- hr_roster_syncs gains failure_date (migration 0026): the 1st-of-month roster / organization queries (this month and last month share one stage) record which date failed. HrSyncError carries an optional date.
- Sync behavior is unchanged (user decision 2026-11-01: the error must be known before the data can be trusted).
- E2E: insertRosterSync takes stage / reason / date; the headcount adjustment test uses 9 (the demo department's computed count for last month is already 3, which was refused as 人數未變更).
- CLAUDE.md: roster sync failure record and display.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 20:20:51 +08:00
S
Description
No description provided
6.9 MiB
Languages
TypeScript 99.6%
CSS 0.2%
Dockerfile 0.1%