Localize order modals, add dual logos, and improve admin order tools.
Farsi business order/variation UI, light/dark logo upload on business profile, payment order steps, variation editing, super-admin site links, and checkout/auth fixes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
dc570c1e7f
commit
5e799eddf9
@@ -27,6 +27,8 @@ export interface BusinessProfile {
|
||||
socialMedia: BusinessSocialMedia
|
||||
logoMediaId: string | null
|
||||
logoUrl: string | null
|
||||
logoDarkMediaId: string | null
|
||||
logoDarkUrl: string | null
|
||||
faviconMediaId: string | null
|
||||
faviconUrl: string | null
|
||||
categoryIds: string[]
|
||||
@@ -56,6 +58,7 @@ export interface UpdateBusinessProfilePayload {
|
||||
phoneNumbers?: BusinessPhoneNumber[]
|
||||
socialMedia?: Partial<BusinessSocialMedia>
|
||||
logoMediaId?: string | null
|
||||
logoDarkMediaId?: string | null
|
||||
categoryIds?: string[]
|
||||
addresses?: Array<{
|
||||
id?: string
|
||||
@@ -92,6 +95,12 @@ export async function updateBusinessProfile(payload: UpdateBusinessProfilePayloa
|
||||
: payload.logoMediaId
|
||||
? Number(payload.logoMediaId)
|
||||
: null,
|
||||
logoDarkMediaId:
|
||||
payload.logoDarkMediaId === undefined
|
||||
? undefined
|
||||
: payload.logoDarkMediaId
|
||||
? Number(payload.logoDarkMediaId)
|
||||
: null,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -120,6 +120,18 @@ export interface SettingsResponse {
|
||||
}
|
||||
|
||||
export const DEFAULT_ORDER_PROCESS_STEPS: OrderProcessStep[] = [
|
||||
{
|
||||
id: 'awaiting-payment',
|
||||
label: 'Waiting for payment',
|
||||
labelFa: 'در انتظار پرداخت',
|
||||
color: '#64748B',
|
||||
},
|
||||
{
|
||||
id: 'payment-successful',
|
||||
label: 'Payment successful',
|
||||
labelFa: 'پرداخت موفق',
|
||||
color: '#10B981',
|
||||
},
|
||||
{
|
||||
id: 'processing',
|
||||
label: 'Under processing',
|
||||
|
||||
Reference in New Issue
Block a user