Add defaultLocale, EN names, and dashboard activity endpoints.

Expose branding.defaultLocale, optional user EN name fields, and lightweight dual daily activity for orders/customers; update project context and rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-01 09:35:27 +03:30
co-authored by Cursor
parent 4598add88c
commit 43e3912662
22 changed files with 331 additions and 15 deletions
@@ -66,6 +66,8 @@ export class BusinessSettingsService {
primaryColor: normalizeBusinessPrimaryColorId(
dto.branding.primaryColor ?? current.branding.primaryColor,
),
defaultLocale:
dto.branding.defaultLocale ?? current.branding.defaultLocale,
};
}
@@ -88,8 +90,11 @@ export class BusinessSettingsService {
patch.store = {
onlineSellEnabled:
dto.store.onlineSellEnabled ?? current.store.onlineSellEnabled,
orderProcessSteps:
dto.store.orderProcessSteps ?? current.store.orderProcessSteps,
orderProcessSteps: dto.store.orderProcessSteps
? normalizeBusinessSettings({
store: { orderProcessSteps: dto.store.orderProcessSteps },
}).store.orderProcessSteps
: current.store.orderProcessSteps,
};
}