5 Commits
Author SHA1 Message Date
pkgsp50777_楊舒諠andClaude Opus 5.5 2f3044e763 restyle-ui-to-mockup: restyle every page to the chosen mockups (hero headers, illustrations, platform icons, shared Button, three-column application form)
Also: copy public/ into the runtime image, exclude /images from the login
redirect, and fix 768px horizontal overflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 11:21:27 +08:00
pkgsp50777_楊舒諠andClaude Opus 5.5 4ac94c31b9 add-notifications: in-app notifications for review/settlement/payout events, daily deadline reminders, top-bar bell
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-12 11:18:34 +08:00
pkgsp50777_楊舒諠andClaude Opus 5.5 5b43dd192b add-identity-and-access: Authentik login, roles, org admin
CI / e2e (push) Successful in 16m16s
CI / check (push) Successful in 14m27s
- Company login via Authentik OIDC (openid-client, PKCE/state/nonce,
  employee_number scope); AUTH_MODE=dev alternative login at
  /login/dev, refused at startup when platform OIDC_ISSUER is present
- provisionOnLogin: accounts created on first login (employee role,
  pending department), inactive accounts rejected, bootstrap sysadmins
- DB sessions (hashed tokens, 8h idle timeout, revoked on deactivate)
- Authorization: ROUTE_RULES + requireRouteAccess/requireRole per page
  and action, forbidden() 403 page, proxy.ts cookie redirect,
  scopeApplications/canReview/requireDepartment, role-based navigation
- Admin: departments (code, type, deactivate, managers), accounts
  (pending filter, department assignment with effective date, roles,
  deactivate), roster CSV import with two-phase preview/commit
- departmentMembersAt for headcount snapshots
- Tests: 168 unit/integration (incl. mock OIDC provider), 12 e2e
- CI: e2e job; CLAUDE.md: auth rules and commands

Tasks 15/17 done. Pending: 5.1 (confirm CI run once a remote exists),
5.3 (manual verification with real Authentik after first deploy).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 17:36:11 +08:00
pkgsp50777_楊舒諠andClaude Opus 5.5 6a6a1806ba setup-project-foundation: backup, CI, e2e split, CLAUDE.md
- npm run backup: SQLite online backup + attachments copy, keep last
  BACKUP_KEEP (default 14), atomic via temp dir; tests included
- docs/operations/backup.md: schedule, restore steps, single-instance
  limits (restore verified once against a scratch copy)
- .github/workflows/ci.yml: npm ci, lint, format:check, typecheck, test
- e2e: test:e2e:prepare (build + reset/migrate/seed e2e DB) and
  test:e2e (next start only); shared env in tests/e2e/env.ts;
  PLAYWRIGHT_CHANNEL to use the installed Chrome/Edge
- CLAUDE.md: commands, code layout, domain import rule
- Prettier fix in transaction.test.ts

Tasks 6.1-7.2 done. 5.2 pending: the home test passes, but Playwright
hangs on Chrome profile cleanup in this environment; to be verified in
a normal terminal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-06 19:01:04 +08:00
moonshineandClaude Opus 5.5 bbd81f6137 setup-project-foundation: Next.js 16 + SQLite scaffold (WIP)
- Next.js 16 App Router (TS strict, src/), minimal placeholder page
- ESLint (domain/ may not import server/ or next) + Prettier
- SQLite via better-sqlite3 + Drizzle: WAL/foreign_keys/busy_timeout,
  migrations, idempotent seed, withTransaction (BEGIN IMMEDIATE)
- Zod-validated env; startup exits on bad config and creates attachments dir
- Vitest unit/integration tests with temp-DB helper (12 passing)
- Playwright config + home e2e test (not yet verified passing)

Tasks 1.1-5.1 done; 5.2, 6.x, 7.x pending.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-06 18:06:31 +08:00