Commit Graph
9 Commits
Author SHA1 Message Date
nessarandClaude Fable 5.2 f65f02dd5c refactor(planning): keep one calculation lifecycle
The calculation entry point had three paths: the worker path, one for a
window without a Worker, and an in-process one for no window with its own
cancellation, replacement and explanation flags. Date analysis had a
main-thread fallback too. Only the worker path remains, on the job the
caller passes or the default selection, so every rule of an incomplete
calculation is decided once.

- The lifecycle module no longer checks the window or imports the planner
  core at runtime; browsers load the core only in the worker bundle.
- One registry holds the live supersession callbacks, the latest
  calculation identity and the latest date analysis.
- A browser with a window but no Worker now reports worker-unavailable
  even for an invalid request, where it reported invalid input first.
- The build forces Angular's chunk optimization: with the lazy core chunk
  gone the build fell under Angular's three-lazy-chunk threshold and the
  initial bundle was split and grew.

Refs #339

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 21:39:56 +01:00
nessarandClaude Opus 5.5 cfd9a69f33 fix(i18n): translate planner messages and remaining English UI text
CI / policy (pull_request) Successful in 11s
CI / validate (pull_request) Successful in 43s
CI / build (pull_request) Successful in 38s
CI / benchmark (pull_request) Successful in 1m42s
CI / security (pull_request) Successful in 1m5s
CI / test (pull_request) Successful in 2m58s
CI / images (pull_request) Successful in 1m15s
CI / required (pull_request) Successful in 1s
CI / policy (push) Successful in 6s
CI / build (push) Successful in 35s
CI / validate (push) Successful in 42s
CI / benchmark (push) Successful in 1m31s
CI / security (push) Successful in 1m44s
CI / test (push) Successful in 2m45s
CI / images (push) Successful in 54s
CI / required (push) Successful in 1s
French (and German/Spanish) users saw English wherever the UI rendered
planning-engine reason messages or raw identifiers.

- Look up planner reasons by code in planning.reasons and
  planning.validationReasons instead of rendering reason.message; the
  engine keeps its English messages.
- Show calculation stages with their translated labels.
- Translate the Material datepicker labels and the comparison date
  placeholder; add the declared-day comparison reason.
- Keep <html lang> in sync with the loaded translation.
- Generate the registry with English first and `satisfies
  AppTranslations`, and test that every language has en.json's keys.
- Fix fr "Weekend" -> "Week-end".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:06:34 +01:00
nessarandClaude Opus 5.5 63fc119297 feat(planning): calculate locally when client and server builds differ
`bun run build` now builds the browser and server bundles in one script
that defines a fresh PLANNING_BUILD identifier for both. The client sends
it when it opens a planning socket, and the server closes a socket from
another build, or without one, with code 4409 before any message, so a
tab opened before a deployment calculates with its own engine.

Development and test runs have no identifier: the client skips the
socket and calculates locally, and a server run from source accepts no
planning sockets.

Closes #325

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 19:10:45 +01:00
nessarandClaude Opus 5.5 282d9c6787 fix: report line-only coverage honestly and tighten Bun test helpers
CI / policy (push) Successful in 7s
CI / validate (push) Successful in 41s
CI / build (push) Successful in 36s
CI / policy (pull_request) Successful in 10s
CI / validate (pull_request) Successful in 32s
CI / security (push) Successful in 1m3s
CI / test (push) Successful in 3m3s
CI / build (pull_request) Successful in 23s
CI / security (pull_request) Successful in 57s
CI / test (pull_request) Successful in 3m25s
CI / benchmark (push) Successful in 5m19s
CI / benchmark (pull_request) Successful in 4m48s
CI / images (push) Successful in 1m20s
CI / required (push) Successful in 3s
CI / images (pull_request) Successful in 54s
CI / required (pull_request) Successful in 1s
The generated HTML and Cobertura reports no longer show unmeasured
branch and function coverage as 100%. Poll and waitFor deadlines use
performance.now so frozen dates cannot make them loop forever, the
malformed-configuration test covers undefined again next to the empty
array, compose health checks honor PORT, and the migration spec lists
only what is still open.

Refs #291, #292, #293

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 16:10:29 +02:00
nessarandClaude Opus 5.5 ac69a41fc8 ci: run development, quality checks and CI on Bun 1.4.3
Pin Bun 1.4.3 with packageManager, and force every bun run script onto
the Bun runtime through bunfig so ng, ESLint and Prettier never fall
back to an installed Node. Type checking uses bun check for the
application and test projects, next to the Angular build.

CI jobs install the pinned release from a checksum-verified download
instead of npm and run project steps in a shell without Node on PATH,
which stays available only for the checkout and upload actions. The
image test's fake docker runs on Bun.

Refs #290, #293

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 14:25:46 +02:00
nessarandClaude Opus 5.5 94d57add2c test: run the suite and benchmark with Bun's native test runner
Replace Vitest with bun test across the whole suite. A preload compiles
components through Angular's JIT transform with inlined templates, sets
up jsdom, TestBed and zoneless change detection, and a small shim covers
the Vitest APIs bun:test lacks. Files run isolated, real-worker specs
spawn the running Bun, and line coverage from lcov is converted to the
existing HTML and Cobertura reports. The CI benchmark replaces its heap
cap with a container memory limit. Vitest, Jest, Nx and their Vite
configuration are removed.

Refs #291

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:40:42 +02:00
nessar d74dfb9938 ci: migrate to Gitea Actions
CI / policy (push) Successful in 48s
CI / validate (push) Successful in 1m25s
CI / test (push) Successful in 3m43s
CI / build (push) Successful in 1m20s
CI / security (push) Successful in 1m31s
CI / benchmark (push) Failing after 5m52s
CI / images (push) Failing after 1m2s
CI / required (push) Failing after 1s
CI / policy (pull_request) Successful in 9s
CI / validate (pull_request) Successful in 1m6s
CI / test (pull_request) Successful in 3m30s
CI / benchmark (pull_request) Canceled after 3s
CI / build (pull_request) Successful in 1m5s
CI / security (pull_request) Successful in 1m27s
CI / images (pull_request) Successful in 2m24s
CI / required (pull_request) Successful in 5s
2026-10-13 19:43:08 +02:00
nessar 2a53bb6cb4 ci: enforce GitFlow and publish branch images 2026-10-08 00:09:29 +02:00
nessar 9c9114879d feat: implement internationalization with multi-language support and runtime language selection 2026-05-30 21:03:12 +02:00