2026-03-26
- Fixed Formula Validation for Numeric Labels:
- Identified a bug where identifiers starting with digits (e.g.,
1Property) causedexpr-evalparse failures in the backend validation API. - Updated
DynaformService(generateUniqueJsonKeyandgenerateUniqueJsonKeyWithContext) to automatically prepend anfprefix to any JSON key that starts with a number. - Added comprehensive unit tests in
dynaform.service.jest.spec.tsto verify the fix across different label types. - Successfully ran Jest tests (18/18 tests passed).
- Identified a bug where identifiers starting with digits (e.g.,
- Hardened Template Import & Autofix Flow:
- Implemented a new validation rule
FORMULA_UNSAFE_NUMERIC_STARTinTemplateSchemaValidatorServiceto explicitly block imports containing numeric JSON keys (moving from silent fixing to forced validation). - Integrated this blocking error into the
CenterPanelComponentAutofix system (autoFixableJsonKeyCodes). - Implemented a symmetric
ensureNonNumericPrefixutility inCenterPanelComponentused across bothrepairImportJsonKeysandbuildUniqueImportJsonKey. - This ensures a "single-click" Autofix experience where both existing malformed keys and newly derived keys (from numeric labels) are sanitized in a single pass.
- Documented the Error Accumulation Strategy in
validation-flow-explainer.md: using independentifblocks instead ofelse ifchains to allow surfacing multiple concurrent errors (Format + Duplicate) for better user feedback. - Updated
docs/dynaforms-history.mdwith the final architectural decisions.
- Implemented a new validation rule