From 43ae7f39e12250aa98ccebb5496e01aa6859adc1 Mon Sep 17 00:00:00 2001 From: moojttaba Date: Wed, 3 Jun 2026 23:40:04 +0330 Subject: [PATCH] =?UTF-8?q?docs:=20activity=20log=20=E2=80=94=20frontend?= =?UTF-8?q?=20v2.8.79=20(template=20maxUsage=20optional)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- 09 - Audits/Activity Log.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/09 - Audits/Activity Log.md b/09 - Audits/Activity Log.md index f388c14..c839db9 100644 --- a/09 - Audits/Activity Log.md +++ b/09 - Audits/Activity Log.md @@ -1091,4 +1091,17 @@ defaults instead of receiving ''. --- +### 2026-06-03 — frontend v2.8.79 — request-template maxUsage truly optional + +The «حداکثر تعداد استفاده (اختیاری)» field threw a ZodError ("Invalid input") and +blocked the template form submit. It was wrapped in schemaHelper.nullableInput — +a helper for REQUIRED fields that adds an issue on null/undefined — so an empty +optional value failed. Replaced with zod.preprocess (blank/null/NaN → undefined, +validate int ≥ 1 only when present); default null → undefined. Together with +backend v2.8.71 (blank → NULL for product_link/delivery_email/enums), optional +template fields can now be left empty end-to-end. +**Verification:** tsc + eslint clean. + +--- +