feat: add DISC profiles and a sales copilot as an org module

Help reps capture a customer's likely behavior style and get negotiation guidance, with the feature gated from super admin.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-18 21:04:26 +03:30
co-authored by Cursor
parent 96befd3867
commit 002f697dfe
27 changed files with 2838 additions and 26 deletions
+9
View File
@@ -82,6 +82,11 @@ export const router = createRouter({
name: 'reports',
component: () => import('@/views/ReportsView.vue'),
},
{
path: 'behavior/disc',
name: 'disc-report',
component: () => import('@/views/DiscReportView.vue'),
},
{
path: 'sales/forecast',
name: 'sales-forecast',
@@ -563,6 +568,10 @@ router.beforeEach((to) => {
) {
return { name: 'home' };
}
if (String(to.path).startsWith('/behavior')) {
const modules = auth.user?.enabledModules;
if (modules && !modules.includes('behavior')) return { name: 'home' };
}
if (String(to.path).startsWith('/finance')) {
const modules = auth.user?.enabledModules;
if (modules && !modules.includes('treasury')) return { name: 'home' };