fix: allow sellers to remove public contact methods
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 07:56:17 -04:00
parent 73c430b8a5
commit 9a790ce294
12 changed files with 122 additions and 22 deletions
+7
View File
@@ -190,3 +190,10 @@ Public listing and product details include nullable `sellerDescription` from
`PATCH /api/v1/admin/settings` accepts this optional plain-text field (trimmed,
maximum 2,000 characters); send an empty string to remove it. Omitted fields
retain their current values. Private settings are not exposed in public DTOs.
Seller contact removal uses the same explicit-empty-string convention:
`general.publicContactEmail` accepts a valid email or `""`, and
`general.publicContactPhone` accepts up to 50 characters or `""`. Both are trimmed;
whitespace-only strings clear the contact. Omitted contact fields retain their
saved values. `null` is not a settings input. Public listing/product detail DTOs
return `null` for empty or absent contacts, so no contact link is rendered.