This website requires JavaScript.
Explore
Help
Sign In
pkgsp50777
/
aisubsidy
Watch
2
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
main
aisubsidy
/
openspec
/
changes
/
archive
T
Add File
New File
Upload File
Apply Patch
Copy Permalink
Download directory as ZIP
Download directory as TAR.GZ
Delete Directory
History
pkgsp50777_楊舒諠
and
Claude Opus 5.5
9a37c273ca
CI / build (push)
Successful in 5m17s
Details
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
...
Co-Authored-By: Claude Opus 5.5 <
[email protected]
>
2026-11-18 16:13:54 +08:00
..
2026-10-07-add-audit-trail
openspec: archive add-audit-trail (sync audit-trail main spec)
2026-10-07 19:57:18 +08:00
2026-10-07-add-identity-and-access
openspec: archive add-identity-and-access and setup-project-foundation
2026-10-07 19:24:08 +08:00
2026-10-07-setup-project-foundation
openspec: archive add-identity-and-access and setup-project-foundation
2026-10-07 19:24:08 +08:00
2026-10-08-add-app-shell
openspec: archive add-app-shell and add-rule-settings (sync app-shell, rule-settings, headcount-snapshot main specs)
2026-10-08 11:13:48 +08:00
2026-10-08-add-application-attachments
openspec: archive add-application-attachments and add-subsidy-application (sync application-attachments, subsidy-application, application-lifecycle main specs)
2026-10-08 14:29:06 +08:00
2026-10-08-add-company-settlement-and-payout
openspec: archive add-company-settlement-and-payout (create company-settlement, payout-management main specs; add finalize/pay/return transitions to application-lifecycle)
2026-10-12 11:18:23 +08:00
2026-10-08-add-department-settlement
openspec: archive add-department-settlement (create settlement-calculation, department-settlement main specs; add settlement transitions to application-lifecycle)
2026-10-08 20:08:31 +08:00
2026-10-08-add-manager-review
openspec: archive add-manager-review (create application-review main spec, add review transitions to application-lifecycle)
2026-10-08 19:05:51 +08:00
2026-10-08-add-rule-settings
openspec: archive add-app-shell and add-rule-settings (sync app-shell, rule-settings, headcount-snapshot main specs)
2026-10-08 11:13:48 +08:00
2026-10-08-add-subsidy-application
openspec: archive add-application-attachments and add-subsidy-application (sync application-attachments, subsidy-application, application-lifecycle main specs)
2026-10-08 14:29:06 +08:00
2026-10-12-add-duplicate-detection
openspec: archive add-duplicate-detection, add-notifications, add-role-dashboards (create duplicate-detection, notifications, dashboard main specs)
2026-10-12 11:20:47 +08:00
2026-10-12-add-notifications
openspec: archive add-duplicate-detection, add-notifications, add-role-dashboards (create duplicate-detection, notifications, dashboard main specs)
2026-10-12 11:20:47 +08:00
2026-10-12-add-role-dashboards
openspec: archive add-duplicate-detection, add-notifications, add-role-dashboards (create duplicate-detection, notifications, dashboard main specs)
2026-10-12 11:20:47 +08:00
2026-10-12-add-settlement-corrections
openspec: archive add-settlement-corrections (create settlement-correction main spec; update company-settlement return and payout-management list/export/mark-paid requirements)
2026-10-12 13:44:46 +08:00
2026-10-13-restyle-ui-to-mockup
openspec: archive restyle-ui-to-mockup (app-shell visual style, header illustrations, platform icons; dashboard employee layout; subsidy-application platform cards and three-column form)
2026-10-13 11:22:33 +08:00
2026-10-13-sync-hr-profile-on-login
openspec: archive sync-hr-profile-on-login (new hr-sync spec; identity-access and org-directory HR read-only rules); roadmap 5.2 narrowed to service-account sync
2026-10-13 16:12:08 +08:00
2026-10-14-add-review-list-view
openspec: archive add-review-list-view; sync application-review spec
2026-10-14 18:59:01 +08:00
2026-10-14-clear-review-notification-after-review
openspec: archive clear-review-notification-after-review, revise-subsidy-quota-and-attribution, enforce-hr-data-visibility; sync main specs
2026-10-14 18:52:02 +08:00
2026-10-14-enforce-hr-data-visibility
openspec: archive clear-review-notification-after-review, revise-subsidy-quota-and-attribution, enforce-hr-data-visibility; sync main specs
2026-10-14 18:52:02 +08:00
2026-10-14-revise-subsidy-quota-and-attribution
openspec: archive clear-review-notification-after-review, revise-subsidy-quota-and-attribution, enforce-hr-data-visibility; sync main specs
2026-10-14 18:52:02 +08:00
2026-10-15-add-clear-business-data
openspec: archive fix-sidebar-wave-overlap, add-clear-business-data; sync app-shell and new data-reset spec
2026-10-15 14:33:37 +08:00
2026-10-15-add-roster-resync-request
openspec: archive add-roster-resync-request, enforce-reauth-on-login, sync-hr-roster-on-login, sync-hr-departments-at-division-level; sync main specs
2026-10-15 10:44:17 +08:00
2026-10-15-adjust-settlement-eligible
show-share-of-cap: allocation share column now shows final ÷ monthly cap (占月上限); archive adjust-settlement-eligible and sync specs
2026-10-15 15:28:42 +08:00
2026-10-15-enforce-reauth-on-login
openspec: archive add-roster-resync-request, enforce-reauth-on-login, sync-hr-roster-on-login, sync-hr-departments-at-division-level; sync main specs
2026-10-15 10:44:17 +08:00
2026-10-15-fix-sidebar-wave-overlap
openspec: archive fix-sidebar-wave-overlap, add-clear-business-data; sync app-shell and new data-reset spec
2026-10-15 14:33:37 +08:00
2026-10-15-pin-review-table-columns
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
2026-10-15 18:34:57 +08:00
2026-10-15-show-share-of-cap
openspec: archive show-share-of-cap; sync department-settlement spec
2026-10-15 17:18:06 +08:00
2026-10-15-sync-hr-departments-at-division-level
openspec: archive add-roster-resync-request, enforce-reauth-on-login, sync-hr-roster-on-login, sync-hr-departments-at-division-level; sync main specs
2026-10-15 10:44:17 +08:00
2026-10-15-sync-hr-roster-on-login
openspec: archive add-roster-resync-request, enforce-reauth-on-login, sync-hr-roster-on-login, sync-hr-departments-at-division-level; sync main specs
2026-10-15 10:44:17 +08:00
2026-10-16-align-cap-preview-total
openspec: archive equal-share-over-cap, truncate-attachment-names, refresh-paid-total-before-recalc, align-cap-preview-total; sync specs
2026-10-16 12:13:50 +08:00
2026-10-16-equal-share-over-cap
openspec: archive equal-share-over-cap, truncate-attachment-names, refresh-paid-total-before-recalc, align-cap-preview-total; sync specs
2026-10-16 12:13:50 +08:00
2026-10-16-over-cap-by-paid-total
openspec: archive over-cap-by-paid-total; sync specs
2026-10-16 18:01:08 +08:00
2026-10-16-refresh-paid-total-before-recalc
openspec: archive equal-share-over-cap, truncate-attachment-names, refresh-paid-total-before-recalc, align-cap-preview-total; sync specs
2026-10-16 12:13:50 +08:00
2026-10-16-truncate-attachment-names
openspec: archive equal-share-over-cap, truncate-attachment-names, refresh-paid-total-before-recalc, align-cap-preview-total; sync specs
2026-10-16 12:13:50 +08:00
2026-10-20-add-system-clock-offset
openspec: archive add-system-clock-offset; sync specs
2026-10-20 10:57:47 +08:00
2026-10-20-plan-system-roadmap
openspec: archive plan-system-roadmap (5.2 HR org sync and 5.3 payroll export deferred to Phase 3, pending external prerequisites)
2026-10-20 11:12:34 +08:00
2026-10-22-block-return-after-deadline
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
2026-10-22 12:08:06 +08:00
2026-10-22-cap-personal-subsidy-at-half
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
2026-10-22 12:08:06 +08:00
2026-10-22-filter-review-by-month
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
2026-10-22 12:08:06 +08:00
2026-10-22-fix-mobile-layout
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
2026-10-22 22:08:02 +08:00
2026-10-22-fix-preview-back-gesture
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
2026-10-22 22:08:02 +08:00
2026-10-22-fix-withdraw-and-draft-uploads
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
2026-10-22 12:08:06 +08:00
2026-10-22-refine-duplicate-detection
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
2026-10-22 12:08:06 +08:00
2026-10-22-scroll-review-detail-pane
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
2026-10-22 12:08:06 +08:00
2026-10-22-show-help-by-role
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
2026-10-22 12:08:06 +08:00
2026-10-22-show-paid-total-in-quota
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
2026-10-22 12:08:06 +08:00
2026-10-22-sync-hr-employment-status
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
2026-10-22 22:08:02 +08:00
2026-10-28-remove-payout-management
remove-payout-management: record acceptance (7.2) in archived tasks
2026-10-29 09:37:53 +08:00
2026-10-29-confirm-clear-business-data
archive confirm-clear-business-data and sync the data-reset spec
2026-10-29 12:29:27 +08:00
2026-11-02-exclude-part-time-from-headcount
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
2026-11-02 16:40:05 +08:00
2026-11-02-force-submit-overdue-settlement
Archive unify-settlement-sheet, force-submit-overdue-settlement, rebase-headcount-snapshot and show-roster-sync-failure; delta specs merged into the main specs
2026-11-02 12:03:30 +08:00
2026-11-02-friendly-not-found-page
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
2026-11-02 16:28:06 +08:00
2026-11-02-notification-unread-dot
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
2026-11-02 18:22:57 +08:00
2026-11-02-rebase-headcount-snapshot
Archive unify-settlement-sheet, force-submit-overdue-settlement, rebase-headcount-snapshot and show-roster-sync-failure; delta specs merged into the main specs
2026-11-02 12:03:30 +08:00
2026-11-02-search-accounts
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
2026-11-02 17:26:38 +08:00
2026-11-02-show-roster-sync-failure
Archive unify-settlement-sheet, force-submit-overdue-settlement, rebase-headcount-snapshot and show-roster-sync-failure; delta specs merged into the main specs
2026-11-02 12:03:30 +08:00
2026-11-02-unify-settlement-sheet
Archive unify-settlement-sheet, force-submit-overdue-settlement, rebase-headcount-snapshot and show-roster-sync-failure; delta specs merged into the main specs
2026-11-02 12:03:30 +08:00
2026-11-11-storage-usage-overview
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
2026-11-11 20:35:57 +08:00
2026-11-11-zulip-notifications
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
2026-11-11 16:51:29 +08:00
2026-11-11-zulip-reject-and-settlement-reminder
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
2026-11-11 17:20:29 +08:00
2026-11-12-attachment-retention
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
2026-11-12 11:23:18 +08:00
2026-11-12-shorten-purpose-hint
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
2026-11-12 15:16:33 +08:00
2026-11-13-clarify-edit-after-submit
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
2026-11-13 15:12:04 +08:00
2026-11-13-storage-monthly-chart
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
2026-11-13 14:15:13 +08:00
2026-11-17-record-hr-sync-gaps
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
2026-11-17 18:24:50 +08:00
2026-11-17-record-token-exchange-error
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
2026-11-17 18:35:02 +08:00
2026-11-18-add-approved-count
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
2026-11-18 16:13:54 +08:00
.gitkeep
Initial commit: specs, OpenSpec roadmap and change proposals
2026-10-05 19:10:03 +08:00