docs: activity log — frontend v2.8.79 (template maxUsage optional)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
<!-- Add new entries above this line. Newest at top. -->
|
||||
|
||||
Reference in New Issue
Block a user