Commits
Marek Vsechovsky committed 9f96ad760ae
Session 151, Step 5: Add Documentation-type issue warning dialog to output file validation - AIM-2802 Add Documentation-type issue warning dialog to output file validation - AIM-2814 Continue re-checking output file for changes after it is deemed finished; update Wf S4 UI dynamically - Add pre-processing validation re-check with comparison to previous state on Process button click Outcome: (1) Fixed three root causes preventing the docu-type dialog from appearing: `_applyIgnoredWarnings` dropped `_docuTypeIssues` (Array.map doesn't copy non-enumerable properties); `_finishS4Validation` lost `_docuTypeIssues` on concat(); `processS4Task` didn't re-validate before processing. (2) Fixed warning count mismatch by excluding `_isDocuType` from warns. (3) Fixed false-positive 'missing type' warning for docu-type issues. (4) Added periodic re-check timer with progress bar. (5) Implemented Process button pre-processing validation: re-reads file, re-validates, compares against previous state, shows Error(s) dialog if new issues found, processes if clean. (6) Fixed credit tracking: removed premature client-side PUT that decremented purchase remaining before import; added `step.remainingCredit` and `step.creditProviderPurchaseId` to output schema; server updates purchase only on successful import via `UpdateCreditProviderRemainingAsync`. (7) Allowed credit increases: removed server-side block; client shows adjustment vs new purchase choice dialog. (8) Credit increase uses LIFO order: oldest active purchase first (capped at original amount), then youngest depleted purchase, then next youngest, etc. Response only returns changed purchases.