Skip to content

Commit d310937

Browse files
Copilothotlong
andcommitted
fix: CRM metadata spec compliance and add i18n for 10 locales
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a29cdc6 commit d310937

28 files changed

Lines changed: 2459 additions & 38 deletions

examples/crm/objectstack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ export default defineStack({
119119
]
120120
},
121121
plugins: [],
122-
}, { strict: false }); // Defer validation to `objectstack compile` CLI to avoid Zod double-parse transform bug on form.sections.columns
122+
}, { strict: false }); // Defer validation to `objectstack compile` CLI

examples/crm/src/actions/account.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const AccountActions = [
3131
type: 'api' as const,
3232
locations: ['record_more' as const],
3333
confirmText: 'Are you sure you want to merge these accounts? This action cannot be undone.',
34-
variant: 'danger' as const,
34+
variant: 'destructive' as const,
3535
refreshAfter: true,
3636
},
3737
];

examples/crm/src/actions/event.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const EventActions = [
2626
icon: 'x-circle',
2727
type: 'api' as const,
2828
locations: ['record_more' as const],
29-
variant: 'danger' as const,
29+
variant: 'destructive' as const,
3030
params: [
3131
{ name: 'cancel_reason', label: 'Cancellation Reason', type: 'text' as const },
3232
{ name: 'notify_participants', label: 'Notify Participants', type: 'boolean' as const },

examples/crm/src/actions/opportunity.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const OpportunityActions = [
3838
icon: 'x-circle',
3939
type: 'api' as const,
4040
locations: ['record_more' as const],
41-
variant: 'danger' as const,
41+
variant: 'destructive' as const,
4242
params: [
4343
{ name: 'loss_reason', label: 'Reason for Loss', type: 'text' as const, required: true },
4444
],

examples/crm/src/actions/user.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const UserActions = [
1414
icon: 'user-x',
1515
type: 'api' as const,
1616
locations: ['record_more' as const],
17-
variant: 'danger' as const,
17+
variant: 'destructive' as const,
1818
confirmText: 'Are you sure you want to deactivate this user?',
1919
refreshAfter: true,
2020
successMessage: 'User deactivated',

examples/crm/src/dashboards/crm.dashboard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export const CrmDashboard = {
2+
type: 'dashboard' as const,
23
name: 'crm_dashboard',
34
label: 'CRM Overview',
45
widgets: [

examples/crm/src/i18n/ar.ts

Lines changed: 116 additions & 0 deletions
Large diffs are not rendered by default.

examples/crm/src/i18n/de.ts

Lines changed: 174 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)