Commit graph

5 commits

Author SHA1 Message Date
DEls
ca7d6c94e3 fix(build): unbreak next build type check on vitest NODE_ENV
The deployment failed at "Running TypeScript ..." with:

  vitest.config.ts(7,13): error TS2540: Cannot assign to 'NODE_ENV'
  because it is a read-only property.

Next's next/types/global declares NODE_ENV on ProcessEnv as `readonly`.
tsconfig includes **/*.ts, so next build type-checks vitest.config.ts and
the direct assignment from 34017d8 took every deploy down with it.

Object.assign has no source-to-target assignability constraint, so it
compiles while still writing NODE_ENV through process.env's setter —
React still gets its development build, which is what exposes `act`.

Verified: tsc --noEmit clean, 3839 tests pass, npm run build succeeds.
2026-10-26 02:22:44 +02:00
DEls
34017d8630 chore(tooling): ignore foreman in lint, relax script rules, force NODE_ENV=test in vitest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 23:12:57 +02:00
DEls
a96f35366d feat(management): store planning data in PocketBase with editable income, add job and forecast vs actual chart
Move the Management planning snapshots into PocketBase collections
(plans, projects, per-year project plans, retention, edit log), loaded
with a bundled-JSON fallback. Admins can double-click an income cell to
enter forecast and actual, edit awarded jobs' planned amounts, change
status and costs, and add jobs, with revision checks and an audit trail.
Income chart now shows forecast and invoiced bars with not-yet-started
money stacked in red; Income is in the sidebar. Adds schema and import
scripts, and jsdom/Testing Library dev dependencies for UI tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 03:04:01 +02:00
DEls
25f8112f6d feat: add delivery note correction linking 2026-09-19 18:21:45 +02:00
DEls
716fa45bf6 Add Vitest + n8n env var documentation 2026-08-19 02:21:36 +02:00