From 4616798d34b7f1dc7094208ab2bf540532cc5f4d Mon Sep 17 00:00:00 2001 From: Till JS Date: Sun, 12 Apr 2026 20:57:46 +0200 Subject: [PATCH] fix(calc): use safe evaluate engine in ListView, add error logging The workbench ListView was using Function() (effectively eval) with aggressive sanitizing that stripped valid characters, causing every calculation to fail with a generic "Fehler". Now uses the same safe parser as the standard calculator page. Also adds console.error logging and shows result before persisting to DB. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../web/src/lib/modules/calc/ListView.svelte | 29 ++++++++----------- .../routes/(app)/calc/standard/+page.svelte | 11 +++---- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/apps/mana/apps/web/src/lib/modules/calc/ListView.svelte b/apps/mana/apps/web/src/lib/modules/calc/ListView.svelte index a4bce551d..556ed5de5 100644 --- a/apps/mana/apps/web/src/lib/modules/calc/ListView.svelte +++ b/apps/mana/apps/web/src/lib/modules/calc/ListView.svelte @@ -5,6 +5,7 @@