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
/
specs
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
..
app-shell
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
application-attachments
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
application-lifecycle
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
application-review
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
audit-trail
openspec: archive add-audit-trail (sync audit-trail main spec)
2026-10-07 19:57:18 +08:00
company-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
dashboard
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
data-reset
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
department-settlement
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
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
headcount-snapshot
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
hr-sync
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
identity-access
archive remove-payout-management and sync its specs (payout-management and settlement-correction retired)
2026-10-28 20:16:57 +08:00
notifications
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
org-directory
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
rule-settings
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
settlement-calculation
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
subsidy-application
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
system-clock
archive remove-payout-management and sync its specs (payout-management and settlement-correction retired)
2026-10-28 20:16:57 +08:00
.gitkeep
Initial commit: specs, OpenSpec roadmap and change proposals
2026-10-05 19:10:03 +08:00