pkgsp50777_楊舒諠 and Claude Opus 5.5
9a37c273ca
add-approved-count: the settlement allocation table's total row now starts with 「核准人數 N 人」 (user request 2026-11-18), followed by 支付金額合計, 個人上限合計, 最終補助合計 and 占月上限合計. The count is the number of allocation rows, i.e. people with approved cases that month (several cases count once); new applicants still shown as 「待重新計算」 are included. Shown on the department settlement page and the admin settlement detail (shared component). Calculation, the quota card's 計算人數 (headcount snapshot), the CSV preview and the approved-list export are unchanged. Component test and e2e added; CLAUDE.md updated; change archived into department-settlement
...
CI / build (push) Successful in 5m17s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-18 16:13:54 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
bb8cd422aa
record-token-exchange-error: when Authentik rejects the HR Sync token exchange, 「HR 同步失敗」 also records the OAuth error code next to stage and http_<status> (e.g. {"stage":"token","reason":"http_400","code":"invalid_grant"}), so the HR Sync manual's cases can be told apart: invalid_grant = user in hr-sync-deny (no token, not even self data), invalid_target = provider not registered. Only RFC 6749 / 8693 standard codes are kept as-is, anything else is "other", and error_description is never read. Reason format and old records unchanged. Prompted by employee 20260105 whose failure only showed http_400. CLAUDE.md updated; change archived into hr-sync
...
CI / build (push) Successful in 5m8s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-17 18:35:02 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
b5b90881f8
record-hr-sync-gaps: when the login HR sync queries succeed but return data that cannot be applied, record 「HR 同步資料不完整」 (hr_sync.incomplete, actor 系統(HR 同步)) on the account with reason codes only: name_missing, not_active (+ HR status such as NOT_YET_HIRED), no_organization, unit_not_in_tree (+ unit code), plus the assignment's data date (HR Sync coverageTo). Department reasons are judged only when both the assignment and the organization tree were fetched; failures stay in 「HR 同步失敗」 and are not duplicated; complete data records nothing. Sync behavior is unchanged. Prompted by a new hire (2026-11-16) who logged in fine but stayed on 待指派部門 with no audit trail explaining why. CLAUDE.md updated; change archived into hr-sync
...
CI / build (push) Successful in 11m9s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-17 18:24:50 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0bfea35d97
clarify-edit-after-submit: make it obvious that a submitted case can still be edited before review (user report 2026-11-13: colleagues thought it could not). The detail header button 「撤回申請」 becomes 「撤回並修改」 and the 「我的申請」 row action 「撤回」 becomes 「撤回修改」; the confirm dialog explains the case returns to draft, opens the edit page and must be submitted again; a successful withdraw now goes straight to the edit page with a 「修改後請再按「送出」」 toast. The submitted notice and the detail hint name the button, and the help page gets 「送出後還能修改嗎?」 by status. Withdraw rules, audit and timeline labels are unchanged. CLAUDE.md updated; change archived into application-lifecycle
...
CI / build (push) Successful in 5m9s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-13 15:12:04 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
5f7dc1618e
storage-monthly-chart: the sysadmin storage card replaces the 3-month average and yearly estimate with a 「每月新增附件」 bar chart for this month so far plus the 5 months before (user decision 2026-11-13: no averages). Each month sums attachments by Taipei upload month, including files later superseded, deleted or purged by retention, and empty months show 0; bars are labelled with size and file count, the current month is lighter and marked 「至今」. Server-rendered with design tokens (no chart library), with an aria-label and a visually hidden table. CLAUDE.md notes the storage usage and low-disk check; change archived into data-reset
...
CI / build (push) Successful in 5m4s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-13 14:15:13 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
ec5e018920
shorten-purpose-hint: the 工作用途說明 hint no longer reads like a 20-character minimum (user decision 2026-11-12): it now says 「請具體說明與工作的關聯」 with no number and shows only while 1–9 characters are entered (threshold 20 → 10). Still never blocks submit; empty is still rejected and the 500-character limit is unchanged. Change archived into subsidy-application
...
CI / build (push) Successful in 5m11s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-12 15:16:33 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
124108ca71
attachment-retention: attachment files are deleted automatically (startup + hourly, idempotent, real time so system clock adjustments never purge early) for every case of a department-month once its settlement has been final-approved (or legacy paid) for 3 months (Taipei date, month-end clamped); months with no settleable case and no submitted-or-later settlement go on the 1st of card month + 5; open / submitted settlements and pending cases block it. Includes returned, rejected, withdrawn, drafts and superseded files (user decision 2026-11-12). Rows stay with attachments.purged_at (sha256 kept for duplicate detection), files are removed after the commit, one attachment.retention_purged audit per department-month. Purged attachments return 404, the UI shows 「附件已依保存期限刪除(日期)」, storage usage lists them separately. Help page and CLAUDE.md updated; change archived into application-attachments and data-reset
...
CI / build (push) Successful in 11m44s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-12 11:23:18 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
64374d931f
storage-usage-overview: the sysadmin maintenance tab shows storage usage (disk free/total via statfs, database + WAL size, active vs stale attachments from recorded sizes, average monthly new attachments over the last 3 full months, and pre-clear backups with sizes, newest first, warning when disk free is below 15%); a sysadmin can delete a single pre-clear backup with a required reason (data.backup_deleted audit, name validated and kept inside the backups directory). Change archived into data-reset
...
CI / build (push) Successful in 4m49s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-11 20:35:57 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
21e10cfdda
zulip-reject-and-settlement-reminder: 不核准 notifications (manager, expired or overdue rejections) are also sent as Zulip DMs with the full comment, merged per recipient; new reminder.settlement_open on the day after the employee deadline (default the 21st, from params) tells managers of unsubmitted departments that have submitted cases to submit the settlement by the manager deadline, with pending / needs-revision / approved counts, in-app and on Zulip (one line per department). The 3/1-day manager deadline reminders stay in-app only. Help and CLAUDE.md updated; change archived into notifications
...
CI / build (push) Successful in 4m47s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-11 17:20:29 +08:00
pkgsp50777_楊舒諠
5c662aa9f8
ci: 依 mason 範本重新產生 CI 設定
CI / build (push) Successful in 4m40s
2026-11-11 17:02:42 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
e600048c3d
zulip-notifications: 待審 (incl. resubmits) and 退回補件 notifications are also sent as Zulip direct messages to the recipient's account email via an incoming-webhook bot (user decision 2026-11-11: only these two). notifications gets chat_status / chat_attempts / chat_at as the outbox; a per-minute dispatcher (after the business transaction) merges each recipient's pending rows into one message: reviews list applicant + case number (first 10), returns include the full manager comment with @ mentions neutralized; no amounts. Already-reviewed cases, recipients without email or inactive, and rows older than 24 h are skipped; transient failures retry 3 times, failures only log. ZULIP_SITE / ZULIP_BOT_EMAIL / ZULIP_API_KEY added to vibe.yaml (values in .env.deploy); missing config keeps the site running with in-app notifications only; ZULIP_DELIVERY=dry-run for local use. Help page and CLAUDE.md updated; change archived into notifications
...
CI / build (push) Successful in 4m53s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-11 16:51:29 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
622dcbbf79
CLAUDE.md: Gitea push now uses a per-machine personal access token in wincred (set up with /mason:gitea-access) instead of the git-credential-oauth browser login
...
CI / build (push) Successful in 11m27s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-11 16:25:04 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
5a9dc0fd55
CLAUDE.md: deployment skills moved from vibe-deploy (moonshine-skills, no longer maintained) to mason; containerize / deploy-site references now use the mason: prefix
...
CI / build (push) Successful in 12m5s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-11 16:10:36 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
54860cdc2e
notification-unread-dot: the bell dropdown marks unread notifications with the same blue dot and light-blue background as the notification list (it only used bold before). Shared UnreadDot component (aria-hidden; the sr-only 未讀 text stays), read items keep the empty slot so titles don't shift; bold titles kept. Change archived into notifications
...
CI / build (push) Successful in 4m56s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 18:22:57 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
9427ff9530
Audit log pager: 回第一頁 / 上一頁 / 下一頁 are separate buttons (they ran together as one link), with 上一頁 added. The query pages backwards with the same keyset (before: rows newer than the cursor, ascending, reversed) and returns prevCursor; unavailable buttons show disabled. Opening and closing a detail keeps the current page. E2E inserts 120 rows under a unique actor (insertAuditLogs) to page forward and back
...
CI / build (push) Successful in 5m3s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 18:05:32 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
4b732b949a
search-accounts: /admin/accounts gets a search box (employee number, name or email, case-insensitive substring; LIKE wildcards matched literally) and department / role / HR status filters, combined with the existing all / pending / inactive tabs. Conditions live in the URL, so row actions return to the same results; the list shows 「共 N 筆」 and 「清除條件」. The form is keyed by the query so clearing resets its fields. Change archived into org-directory
...
CI / build (push) Successful in 5m30s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 17:26:38 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
4a424230e5
exclude-part-time-from-headcount: headcount snapshots count only people full-time on the base date again (user decision 2026-11-02: interns and part-timers don't count). The base-date status comes from the app's own hr_employment_history (recorded by the daily roster sync since 2026-10-15), not the roster's employeeGroupCode, which is the group at query time. With no history at all (dev, e2e, never synced) nobody is excluded. Excluded people show as plain 「不計入」 with no reason; locked or adjusted snapshots are untouched, others update on the next roster sync. Help, settings text and CLAUDE.md updated; change archived into headcount-snapshot
...
CI / build (push) Successful in 5m4s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 16:40:05 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
bc102ef866
friendly-not-found-page: Chinese 404 page. notFound() inside the app frame (case missing or out of scope, etc.) and unmatched URLs now say 「找不到這個頁面。可能是網址有誤、資料已刪除,或您沒有權限查看。」 with 回首頁 instead of the English Next.js default; still HTTP 404 and no hint whether the case exists. Change archived into app-shell
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 16:28:06 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
4332b7e528
Admin settlements overview: department names read as links (accent colour, underline, chevron) so it is clear they open the department detail. Quota card title wraps long unbroken names at 360px instead of pushing the 查看說明 link out of the card
...
CI / build (push) Successful in 5m6s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 14:36:29 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c42cd686ad
Archive unify-settlement-sheet, force-submit-overdue-settlement, rebase-headcount-snapshot and show-roster-sync-failure; delta specs merged into the main specs
...
CI / build (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 12:03:30 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
2f1a54db6c
rebase-headcount-snapshot: e2e follow-ups. The headcount settings tab now opens on last month (the current month has no snapshot until its base date); the estimate/final/preview tag of MoneyDisplay wraps on narrow cards (the admin 360px dashboard overflowed). E2E: duplicates use the same last-month card date, review and settings expect last month; CLAUDE.md notes the Chrome close hang after failed tests
...
CI / build (push) Successful in 11m16s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-02 11:36:39 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
191bd3a276
rebase-headcount-snapshot: headcount snapshots and application attribution use the 1st of the month after the card month (user decision 2026-10-30: employees apply in the following month, so people who left by the end of the card month no longer count). No current-month claims: card month M can be submitted from the 1st of M+1 to the 20th (drafts any time; the form shows the submission window). Everyone active on the base date counts (no full-time filter until HR Sync provides dated employee groups; issue opened in MoonShineVFX/mason). Before the base date no snapshot is created and caps show 「YYYY/MM/01 名冊確定後計算」; the daily roster sync maps this month's 1st roster to last card month; the dashboard quota cards show the previous card month. A one-time startup step removes unlocked, unadjusted snapshots whose base date has not arrived. E2E pins the system clock to the 10th of the current month (pin-clock setup project)
...
CI / build (push) Successful in 4m58s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-30 21:28:31 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
bd028407e0
1.3.0: unified settlement sheet, overdue settlement force submit (proxy and auto submit)
...
CI / build (push) Successful in 9m7s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-30 19:46:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
2ec341db35
force-submit-overdue-settlement: move 代為提交 from the settlement detail page to the /admin/settlements overview, next to the 逾期未提交 badge (user decision 2026-10-30); the detail page links to the overview instead
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-30 19:46:15 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
9bf9a93c4e
force-submit-overdue-settlement: overdue department settlements can be force-submitted (user decision 2026-10-30). After the manager deadline an admin can 代為提交 on the settlement detail page (reason required, confirm step); with the new rule param 逾期自動提交月結 (default off, grace days 0-10, default 3) the hourly scheduler submits overdue departments with cases in the previous 1-2 card months. Both share the manager submit core: pending-review / needs-revision cases become 不核准 via the new overdue_reject transition (admin or system), the settlement records submission_mode / submission_reason, managers are notified, and auto-submit failures are reported to admins once a day
...
CI / build (push) Successful in 4m59s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-30 19:19:06 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
2e6e8f9dce
unify-settlement-sheet: HR's approved list and the department CSV preview share one settlement sheet (user decision 2026-10-29). Columns: 刷卡月份, 發放月份 (card month + 2), then the department preview format (部門, 員工編號, 姓名, 平台, 實際支付金額, 個人可補助上限, 系統計算可補助/部門分配上限, 佔月上限/部門成員補助比例, 最終補助, 尾差調整) with a 部門合計 row per department. The approved list is one file with every finalized department plus a 全公司合計 row; Excel uses number cells with NT$ / % formats, CSV plain integers. The 薪資名目 column is dropped (always 其他獎金)
...
CI / build (push) Successful in 5m16s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-29 17:37:23 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
48935fd91e
archive confirm-clear-business-data and sync the data-reset spec
...
CI / build (push) Successful in 44s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-29 12:29:27 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
bf038f3c27
Merge branch 'docs/hr-sync-manual-source': HR Sync API manual now lives in MoonShineVFX/mason skills/hr-sync
...
CI / build (push) Successful in 5m14s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-29 12:19:23 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
b0da9b6001
confirm-clear-business-data: clearing business data needs a double confirmation (user decision 2026-10-29). The dialog requires a reason and the typed phrase 「清除業務資料」 before 確認清除 is enabled; the server checks both again before backing up (mismatch → no backup, nothing cleared); the reason is stored as the data.business_cleared audit comment. ReasonDialog gains canConfirm / onClose
...
CI / build (push) Successful in 5m35s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-29 12:07:33 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
7f53ac1815
remove-payout-management: record acceptance (7.2) in archived tasks
...
CI / build (push) Successful in 9m18s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-29 09:37:53 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
59956dc3fa
archive remove-payout-management and sync its specs (payout-management and settlement-correction retired)
...
CI / build (push) Successful in 4m27s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-28 20:16:57 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
5fd71a35f4
remove-payout-management: final approval is the end of the settlement flow (user decision 2026-10-28). Removes the payout management page, the paid transition, payout notifications and settlement corrections; the approved list (7 columns, Excel/CSV) is exported from /admin/settlements/export; the company stat card shows approved people; my applications shows the approved subsidy total; legacy paid rows, payout records and corrections stay in the DB for display only
...
CI / build (push) Successful in 5m47s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-28 18:06:00 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
d752995641
HR sync: the roster resync request is stored in real time (compared with sync start times), so it still triggers after the system clock is moved back; the login assignment query no longer sends today's date (HR answers for coverageTo, so it no longer returns 400 before the daily HR rebuild or when it fails)
...
CI / build (push) Successful in 5m25s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-28 14:53:04 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
109db683a6
v1.2.0: archive sync-hr-employment-status, fix-preview-back-gesture and fix-mobile-layout and sync their specs; bump version to 1.2.0
...
CI / build (push) Successful in 9m48s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-22 22:08:02 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
a677b77eeb
sync-hr-employment-status (roadmap 5.2): headcount snapshots keep the 1st-of-month member list (counted / suspended / offboarded / excluded without reason, locked with the snapshot) and the headcount settings tab expands it; the daily roster sync stores each account's HR status and deactivates suspended / offboarded accounts (sessions ended, department history closed from the HR date), re-enabling only HR-deactivated accounts when they return to ACTIVE; accounts list shows HR status and refuses manual activation while HR is not active; review-month e2e accepts pending_settlement after the employee deadline
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-22 22:07:38 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
38dbb50b23
department settlement CSV preview: columns follow the user's format (部門, 員工編號, 姓名, 平台, 實際支付金額, 個人可補助上限, 系統計算可補助/部門分配上限, 佔月上限/部門成員補助比例, 最終補助, 尾差調整) with a 部門合計 row; 個人可補助 and 狀態 columns removed
...
CI / build (push) Successful in 5m26s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-22 12:50:03 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
6dd1df52e8
archive 8 accepted changes (cap-personal-subsidy-at-half, show-paid-total-in-quota, block-return-after-deadline, refine-duplicate-detection, fix-withdraw-and-draft-uploads, filter-review-by-month, scroll-review-detail-pane, show-help-by-role) and sync specs; lifecycle spec: single withdraw button in the detail header
...
CI / build (push) Successful in 10m45s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-22 12:08:06 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
fcaacc8d99
quota card: lay out by the card's own width (container query), stack the two figures when the card is narrower than 22rem and scale them with the card when side by side, so amounts keep clear of the divider and border on the three-column dashboard
...
CI / build (push) Successful in 5m6s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-21 12:19:50 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
9bac5fb77d
application detail: one withdraw button (page header); the hint below the status is text only
...
CI / build (push) Successful in 5m16s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-21 10:43:15 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c177c553f7
review workbench: case heading stays pinned at the top of the independently scrolling detail pane, so it is never half clipped
...
CI / build (push) Successful in 5m17s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 19:06:59 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
62e41c5efe
filter-review-by-month + scroll-review-detail-pane + show-help-by-role: review page card-month filter (default earliest month, tab counts and cap summaries follow the month, kept across tabs and views, bare ?id= picks the case month); detail pane in the review workbench is sticky and scrolls on its own; help page shows manager/admin sections only to non-employee roles
...
CI / build (push) Successful in 5m30s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 18:27:51 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
27c898005f
fix-preview-back-gesture + fix-mobile-layout: back gesture closes the attachment preview (history entry), mobile PDF preview shows an open-file button; large money figures shrink on phones and the quota card stacks below 400px; sticky action bar wraps with the primary button on its own row; app error and global error pages (auto reload once on chunk errors); 360px mobile layout e2e
...
CI / build (push) Successful in 5m13s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 17:57:50 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
8eb21c7c5d
settlement quota block: third stat is 補助合計 (personal-cap total, the over-cap base) instead of 支付金額合計; the small personal-cap line under 超額 is removed
...
CI / build (push) Successful in 5m13s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 17:19:57 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
050f28367f
refine-duplicate-detection + fix-withdraw-and-draft-uploads: duplicates compare Invoice only (shared card statements no longer flagged) and list the actual reason per case; new applications create one draft even with concurrent uploads, save/submit disabled while uploading; withdraw on the My Applications list and next to the status, button follows the same check as the server, ConfirmDialog shows errors
...
CI / build (push) Successful in 5m12s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 17:06:47 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c4aea9158b
version 1.1.0: personal cap 50%, settlement quota block with 支付金額合計, no return after the employee deadline
...
CI / build (push) Successful in 9m8s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 16:36:10 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0714b8fb32
show-paid-total-in-quota + block-return-after-deadline: settlement quota block shows 計算人數|月上限|支付金額合計|超額 (personal-cap total under 超額); after the employee deadline of a case's card month, return is refused server-side and hidden in the review UI with an explanation (approve or reject only); help and CLAUDE.md updated
...
CI / build (push) Successful in 5m5s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 16:12:39 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
1c4e855630
openspec: propose block-return-after-deadline (after the employee deadline for a case's card month, reviewers can only approve or reject; return is hidden with an explanation and rejected server-side)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:55:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
59ad63fb20
openspec: propose show-paid-total-in-quota (settlement quota block: 計算人數|月上限|支付金額合計|超額, personal-cap total stays under 超額; builds on cap-personal-subsidy-at-half)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:53:46 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
9461358003
openspec: propose scroll-review-detail-pane (review detail view: right detail pane is sticky and scrolls on its own; resets to top when switching cases)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:50:32 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c4c5d0eea2
openspec: propose fix-preview-back-gesture (back gesture closes the attachment preview instead of leaving the page; mobile PDF preview shows an open-file button instead of an iframe)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:48:18 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
aba0631912
openspec: fix-withdraw-and-draft-uploads — root cause confirmed (user could not find the withdraw button, AI-202610-0006); add withdraw on the My Applications list and next to the status on the detail page
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:45:41 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
6aee9f9836
openspec: propose fix-mobile-layout (large money figures and sticky action bar fit 360px screens, error and loading pages instead of blank screens, mobile layout e2e)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:40:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
fe3cfa7a8c
openspec: propose fix-withdraw-and-draft-uploads (single draft creation for new applications, save/submit disabled while uploading; withdraw button matches the server check, reasons and errors shown); withdraw root cause pending case numbers
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:30:45 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0c044c490f
openspec: refine-duplicate-detection covers different platforms with the same date and amount sharing a card statement
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:12:48 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
5aec24416d
openspec: propose refine-duplicate-detection (attachment match only on Invoice, shared card statements no longer flagged; warning lists the actual reason per case)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 15:09:39 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
a40b9f2bd5
openspec: propose show-help-by-role (help page shows manager and admin sections only to managers, admins and sysadmins)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 14:54:34 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
fa22988f7f
openspec: propose filter-review-by-month (department review page filters by card month; defaults to the earliest month, tab counts follow the month)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 14:51:47 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
35bb427b46
cap-personal-subsidy-at-half: each person is capped at 50% of what they paid (floored per case); over-cap judged on the personal-cap total; review preview per case ≤ 50% with 已核准 + 待審 = 合計; settlement page drops 每人額度, shows 個人上限合計 and a 個人上限(50%) column (allocations.personal_cap, CSV too); adjustments limited to the personal cap; open trials at another ratio prompt recalculation; startup adds a 50% rule version; help and FAQ text updated
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 14:35:38 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
2327ea5d2a
version 1.0.0: package.json version shown at the bottom of the sidebar and in /api/health; release commits are tagged v<version>
...
CI / build (push) Successful in 10m1s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 12:04:13 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
db97cf01a7
openspec: archive plan-system-roadmap (5.2 HR org sync and 5.3 payroll export deferred to Phase 3, pending external prerequisites)
...
CI / build (push) Successful in 5m24s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 11:12:34 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0ca1d1e627
openspec: archive add-system-clock-offset; sync specs
...
CI / build (push) Successful in 5m30s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-20 10:57:47 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
ebf5c05f61
add-system-clock-offset: sysadmin can shift the business "now" (offset stored in _meta, time keeps moving) or sync it back on /admin/settings?tab=clock; reason required and audited; site-wide notice while adjusted; audit_logs.simulated_at keeps system time while occurred_at stays real; pages, actions and schedulers read appNow(), guard test forbids new Date()/Date.now() outside real-time allowlist; clock e2e in its own Playwright project
...
CI / build (push) Successful in 5m11s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-19 19:42:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
4f86992173
openspec: archive over-cap-by-paid-total; sync specs
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 18:01:08 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
43769672ca
over-cap-by-paid-total: 超額 = paid total − cap on settlement and review pages (adjustments no longer change it); review 合計 red when over; adjustments limited to the person's paid total, legacy over-paid adjustments flagged and block submit
...
CI / build (push) Successful in 5m20s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 15:34:05 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c4fcf32e9e
review: keep the list components mounted when the queue empties so the batch-approve result stays visible after approving every case (fixes flaky batch e2e)
...
CI / build (push) Successful in 4m59s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 13:49:39 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
44dbe70bc9
openspec: archive equal-share-over-cap, truncate-attachment-names, refresh-paid-total-before-recalc, align-cap-preview-total; sync specs
...
CI / build (push) Successful in 4m39s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 12:13:50 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
215c2f99c6
align-cap-preview-total: review cap preview 合計 uses adjusted amounts (same base as 超出) and notes 含主管調整 when any applicant is adjusted; 待審 sums pending cases directly
...
CI / build (push) Successful in 6m35s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 12:11:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
64a158b377
review cap summary: lay out stats by the card's own width (container query) so amounts no longer overlap in the narrow detail-view column
...
CI / build (push) Successful in 5m25s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 11:08:35 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
d6489ad858
refresh-paid-total-before-recalc: open settlement trial shows live paid totals after approvals; changed rows and new applicants marked 待重新計算 with a prompt to recalculate (page, admin detail, CSV 狀態 column)
...
CI / build (push) Successful in 5m54s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-16 10:34:35 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
181cc9c3a7
truncate-attachment-names: attachment file names stay on one line with an ellipsis and full-name tooltip; uploader row layout follows the field width so its size no longer changes
...
CI / build (push) Successful in 4m58s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 18:45:26 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
265807ed39
equal-share-over-cap: over the cap, adjusted amounts stay and the rest split the remaining cap equally (capped at each person's paid total, leftover by employee number); adjusted total limited to the cap; remove 可補助總額; archive pin-review-table-columns
...
CI / build (push) Successful in 4m48s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 18:34:57 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
675fdd4c65
pin-review-table-columns: review list keeps checkbox, applicant and actions pinned while scrolling sideways; batch approve moves to the checkbox side
...
CI / build (push) Successful in 4m43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 17:48:54 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
ad57624a3b
openspec: archive show-share-of-cap; sync department-settlement spec
...
CI / build (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 17:18:06 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
26fbb7af5b
show-share-of-cap: allocation share column now shows final ÷ monthly cap (占月上限); archive adjust-settlement-eligible and sync specs
...
CI / build (push) Successful in 4m42s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 15:28:42 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
97e577ae19
openspec: archive fix-sidebar-wave-overlap, add-clear-business-data; sync app-shell and new data-reset spec
...
CI / build (push) Successful in 43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 14:33:37 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
d10f455b99
add-clear-business-data: sysadmin can clear business data after an automatic backup; adjust-settlement-eligible task updates; stabilize notification e2e
...
CI / build (push) Successful in 4m59s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 12:13:53 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
6e4578e525
adjust-settlement-eligible: red over-cap amount; managers can adjust personal eligible with a reason (kept across recalculation)
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 11:41:43 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
f00c94d09d
fix-sidebar-wave-overlap: keep the sidebar wave inside the footer so it no longer covers nav items
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 11:35:27 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0bf8077490
openspec: propose add-clear-business-data, adjust-settlement-eligible, fix-sidebar-wave-overlap
...
CI / build (push) Successful in 43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 11:20:29 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
fe54c50c29
openspec: archive add-roster-resync-request, enforce-reauth-on-login, sync-hr-roster-on-login, sync-hr-departments-at-division-level; sync main specs
...
CI / build (push) Successful in 10m13s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-15 10:44:17 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
2d1a57db8f
add-roster-resync-request: admin can request a roster resync on the next company login
...
CI / build (push) Successful in 4m50s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 19:27:10 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
a0876a9482
enforce-reauth-on-login: sign out of the company account on logout (post_logout_path, ID token in session)
...
CI / build (push) Successful in 4m53s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 19:12:25 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
0217a65a62
openspec: archive add-review-list-view; sync application-review spec
...
CI / build (push) Successful in 42s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 18:59:01 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
8e46fd610c
openspec: archive clear-review-notification-after-review, revise-subsidy-quota-and-attribution, enforce-hr-data-visibility; sync main specs
...
CI / build (push) Successful in 43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 18:52:02 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
79025a467e
add-review-list-view: list view with in-row review, department cap preview, DataTable selection/expansion, ReasonDialog confirm step
...
CI / build (push) Successful in 4m33s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 18:46:24 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
d8060f94a1
revise-subsidy-quota-and-attribution: full subsidy (100% version at startup), remove rate/rounding settings and estimates, attribute applications to the department on the 1st of the card month
...
CI / build (push) Successful in 4m36s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 18:00:38 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
43da7b397b
enforce-hr-data-visibility: visibility test matrix, HR entry-point guard, document personal data scope
...
CI / build (push) Successful in 4m43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 17:00:30 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
1219e8e7bb
clear-review-notification-after-review: mark pending-review notifications read when a case leaves pending_review, refresh bell after review
...
CI / build (push) Successful in 5m53s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 16:03:24 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
b1ff9f517d
enforce-reauth-on-login: record failed acceptance (Authentik ignores prompt=login and max_age=0), park pending platform team
...
CI / build (push) Successful in 43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 15:34:45 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c10d25950b
enforce-reauth-on-login (observe mode): request max_age=0 only, record auth_time in login audit without rejecting
...
CI / build (push) Successful in 4m48s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 15:01:16 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
1a605d59ab
Revert enforce-reauth-on-login: production logins were all rejected as reauth_required
...
CI / build (push) Successful in 48s
This reverts commit c8a67fa .
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 14:47:55 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
c8a67fa7ec
enforce-reauth-on-login: request max_age=0 and reject logins whose auth_time predates the login click
...
CI / build (push) Successful in 4m43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 14:33:25 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
d546f1c31f
sync-hr-departments-at-division-level: map HR units to 部, create all 部 in roster sync, clean up group-level departments
...
CI / build (push) Successful in 6m21s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 14:14:17 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
e6fb93dad7
openspec: propose sync-hr-departments-at-division-level
...
CI / build (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 13:59:05 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
5605aa3dde
sync-hr-roster-on-login: daily HR roster sync, full-time history, HR-based headcount snapshots
...
CI / build (push) Successful in 5m36s
- The first company login each day (Asia/Taipei) runs a roster sync in the
background via after(), reusing that login's HR token (kept only in a
non-enumerable closure). Runs are claimed and logged in hr_roster_syncs.
A failed run is retried by the next login.
- hr_employment_history records full-time status per employee number
(employeeGroupCode "1"): from the hire date on first sight, from today on
later changes. No record means not full-time.
- Snapshots for this month and last month come from the HR roster on the
1st: ACTIVE, same department code, full-time that day. Locked or manually
adjusted snapshots are kept. headcount_snapshots.source marks local vs hr.
Local counts apply the full-time filter once any employment data exists.
- Login sync dates transfers by the HR hr.employee.transferred effective
date, falling back to today.
- Settings page shows each snapshot's source and the latest roster sync.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 12:35:18 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
8ff007ae3c
openspec: propose enforce-hr-data-visibility
...
CI / build (push) Successful in 49s
HR Sync does not restrict who can read whom, so the app owns the boundary:
spell out personal-data visibility (employees and secondary supervisors see
only themselves, primary managers their department's cases and members,
admins/sysadmins company-wide, per-person full-time status never shown),
keep HR queries server-side only, and lock it in with a visibility test
matrix.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 11:57:26 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
6ac879c155
openspec: propose add-review-list-view; move review-page estimate out of revise-subsidy-quota-and-attribution
...
CI / build (push) Successful in 44s
- add-review-list-view: desktop table view on /department/review (default,
with the two-column workbench kept), inline approve/return/reject and
batch approve, plus a per-month department cap trial (approved + pending
allocated pro-rata like settlement) replacing the 50% estimate
- revise-subsidy-quota-and-attribution: no longer touches the review page;
employee-side estimates are still removed
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 11:48:30 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
188d894e18
openspec: propose clear-review-notification-after-review
...
CI / build (push) Successful in 44s
Mark a case's pending-review notifications read when it leaves pending
review (approve/return/reject/withdraw), refresh the bell right after a
review action, and clean up stale unread ones once at startup. Only the
department's primary manager reviews.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 11:34:55 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
fe407ca82b
openspec: propose enforce-reauth-on-login, revise-subsidy-quota-and-attribution, sync-hr-roster-on-login
...
CI / build (push) Successful in 48s
- enforce-reauth-on-login: max_age=0 plus auth_time check so logging in
again after logout always asks for company credentials
- revise-subsidy-quota-and-attribution: subsidy is the full approved amount
(pro-rata only by the department cap), remove ratio/rounding settings and
all estimate displays, attribute applications to the department on the
1st of the card month
- sync-hr-roster-on-login: daily login-triggered HR roster sync, full-time
status history, headcount snapshots from the HR roster on the 1st, HR
effective date for transfers
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-14 11:26:24 +08:00
pkgsp50777_楊舒諠 and Claude Opus 5.5
4a6a8ba6d2
openspec: mark roadmap 4.3 done (add-settlement-corrections archived 2026-10-12)
...
CI / build (push) Successful in 43s
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-13 16:26:18 +08:00