Add dark-mode business logo, payment order steps, and Arvan DNS diagnostics.

Store logo_dark_media_id on businesses, expose logoDarkUrl on tenant/website APIs, prepend awaiting-payment steps to order workflows, and surface clearer Arvan API network errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-26 00:21:46 +03:30
co-authored by Cursor
parent e942348b1d
commit 6ce6f959ac
17 changed files with 237 additions and 29 deletions
+2
View File
@@ -44,6 +44,7 @@ export class TenantService {
where: { id: business.id },
select: {
logoMedia: { select: { publicUrl: true } },
logoDarkMedia: { select: { publicUrl: true } },
faviconMedia: { select: { publicUrl: true } },
},
});
@@ -61,6 +62,7 @@ export class TenantService {
homeCharts: settings.modules.charts,
specialProductsSource: settings.website.specialProductsSource,
logoUrl: media?.logoMedia?.publicUrl ?? null,
logoDarkUrl: media?.logoDarkMedia?.publicUrl ?? null,
faviconUrl:
media?.faviconMedia?.publicUrl ?? media?.logoMedia?.publicUrl ?? null,
ePayment: listPublicPaymentGateways(settings.store.ePayment),