mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
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:
co-authored by
Cursor
parent
4598add88c
commit
43e3912662
@@ -1,8 +1,14 @@
|
||||
import type { BusinessPrimaryColorId } from './business-primary-colors';
|
||||
import { DEFAULT_BUSINESS_PRIMARY_COLOR_ID } from './business-primary-colors';
|
||||
|
||||
export type DashboardLocale = 'en' | 'fa';
|
||||
|
||||
export const DEFAULT_BUSINESS_DASHBOARD_LOCALE: DashboardLocale = 'fa';
|
||||
|
||||
export type BrandingSettings = {
|
||||
primaryColor: BusinessPrimaryColorId;
|
||||
/** Default UI language for business + customer dashboards. */
|
||||
defaultLocale: DashboardLocale;
|
||||
};
|
||||
|
||||
export type DashboardCommentsSettings = {
|
||||
@@ -22,6 +28,7 @@ export type DashboardSettings = {
|
||||
export type OrderProcessStep = {
|
||||
id: string;
|
||||
label: string;
|
||||
labelFa: string;
|
||||
color: string;
|
||||
};
|
||||
|
||||
@@ -39,15 +46,36 @@ export type BusinessSettings = {
|
||||
};
|
||||
|
||||
export const DEFAULT_ORDER_PROCESS_STEPS: OrderProcessStep[] = [
|
||||
{ id: 'processing', label: 'Under processing', color: '#3B82F6' },
|
||||
{ id: 'ready-for-shipping', label: 'Ready for shipping', color: '#F59E0B' },
|
||||
{ id: 'shipped', label: 'Shipped', color: '#8B5CF6' },
|
||||
{ id: 'delivered', label: 'Delivered', color: '#22C55E' },
|
||||
{
|
||||
id: 'processing',
|
||||
label: 'Under processing',
|
||||
labelFa: 'در حال پردازش',
|
||||
color: '#3B82F6',
|
||||
},
|
||||
{
|
||||
id: 'ready-for-shipping',
|
||||
label: 'Ready for shipping',
|
||||
labelFa: 'آماده ارسال',
|
||||
color: '#F59E0B',
|
||||
},
|
||||
{
|
||||
id: 'shipped',
|
||||
label: 'Shipped',
|
||||
labelFa: 'ارسالشده',
|
||||
color: '#8B5CF6',
|
||||
},
|
||||
{
|
||||
id: 'delivered',
|
||||
label: 'Delivered',
|
||||
labelFa: 'تحویلشده',
|
||||
color: '#22C55E',
|
||||
},
|
||||
];
|
||||
|
||||
export const DEFAULT_BUSINESS_SETTINGS: BusinessSettings = {
|
||||
branding: {
|
||||
primaryColor: DEFAULT_BUSINESS_PRIMARY_COLOR_ID,
|
||||
defaultLocale: DEFAULT_BUSINESS_DASHBOARD_LOCALE,
|
||||
},
|
||||
dashboard: {
|
||||
comments: { autoApprove: false },
|
||||
|
||||
Reference in New Issue
Block a user