feat(admin): merge Site Settings and Wishlist into single Configurações panel

Single-wishlist apps no longer need two separate edit sections.
Both siteTitle/homepageSubtext and wishlist fields now save together
in one action from a unified Configurações card.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Adriano Belisario
2026-05-03 21:10:58 +00:00
parent 21e8b7e137
commit 3df9a67b97
5 changed files with 126 additions and 64 deletions

View File

@@ -81,6 +81,8 @@ export async function PATCH(
const {
name,
description,
price,
currency,
quantity,
imageUrl,
purchaseUrls,
@@ -108,6 +110,8 @@ export async function PATCH(
if (name !== undefined) updateData.name = name;
if (description !== undefined) updateData.description = description;
if (price !== undefined) updateData.price = price != null ? Number(price) : null;
if (currency !== undefined) updateData.currency = currency;
if (quantity !== undefined) updateData.quantity = quantity;
if (imageUrl !== undefined) updateData.imageUrl = imageUrl;
if (purchaseUrls !== undefined) updateData.purchaseUrls = purchaseUrls;