Improve the frontend and fix TODOs
This commit is contained in:
@@ -129,18 +129,21 @@ export const ROUTES = {
|
||||
|
||||
// Settings
|
||||
SETTINGS: '/settings',
|
||||
SETTINGS_PROFILE: '/app/settings/personal-info',
|
||||
SETTINGS_COMMUNICATION: '/app/settings/communication-preferences',
|
||||
SETTINGS_PROFILE: '/app/settings/profile',
|
||||
SETTINGS_BAKERY: '/app/settings/bakery',
|
||||
SETTINGS_SUBSCRIPTION: '/app/settings/subscription',
|
||||
SETTINGS_ORGANIZATIONS: '/app/settings/organizations',
|
||||
SETTINGS_PRIVACY: '/app/settings/privacy',
|
||||
// Legacy routes (will redirect)
|
||||
SETTINGS_PERSONAL_INFO_OLD: '/app/settings/personal-info',
|
||||
SETTINGS_COMMUNICATION_OLD: '/app/settings/communication-preferences',
|
||||
SETTINGS_PRIVACY_OLD: '/app/settings/privacy',
|
||||
SETTINGS_BAKERY_INFO_OLD: '/app/database/information',
|
||||
SETTINGS_BAKERY_AJUSTES_OLD: '/app/database/ajustes',
|
||||
SETTINGS_TENANT: '/settings/tenant',
|
||||
SETTINGS_USERS: '/settings/users',
|
||||
SETTINGS_PERMISSIONS: '/settings/permissions',
|
||||
SETTINGS_INTEGRATIONS: '/settings/integrations',
|
||||
SETTINGS_BILLING: '/settings/billing',
|
||||
SETTINGS_BAKERY_CONFIG: '/app/database/information',
|
||||
SETTINGS_BAKERY_AJUSTES: '/app/database/ajustes',
|
||||
SETTINGS_TEAM: '/app/database/team',
|
||||
QUALITY_TEMPLATES: '/app/database/quality-templates',
|
||||
|
||||
@@ -382,21 +385,10 @@ export const routesConfig: RouteConfig[] = [
|
||||
requiresAuth: true,
|
||||
showInNavigation: true,
|
||||
children: [
|
||||
{
|
||||
path: '/app/database/information',
|
||||
name: 'Information',
|
||||
component: 'InformationPage',
|
||||
title: 'Información',
|
||||
icon: 'settings',
|
||||
requiresAuth: true,
|
||||
requiredRoles: ROLE_COMBINATIONS.ADMIN_ACCESS,
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/database/ajustes',
|
||||
name: 'Ajustes',
|
||||
component: 'AjustesPage',
|
||||
path: '/app/settings/bakery',
|
||||
name: 'BakerySettings',
|
||||
component: 'BakerySettingsPage',
|
||||
title: 'Ajustes',
|
||||
icon: 'settings',
|
||||
requiresAuth: true,
|
||||
@@ -500,25 +492,15 @@ export const routesConfig: RouteConfig[] = [
|
||||
showInNavigation: true,
|
||||
children: [
|
||||
{
|
||||
path: '/app/settings/personal-info',
|
||||
name: 'PersonalInfo',
|
||||
component: 'PersonalInfoPage',
|
||||
title: 'Información',
|
||||
path: '/app/settings/profile',
|
||||
name: 'Profile',
|
||||
component: 'NewProfileSettingsPage',
|
||||
title: 'Ajustes',
|
||||
icon: 'user',
|
||||
requiresAuth: true,
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/settings/communication-preferences',
|
||||
name: 'CommunicationPreferences',
|
||||
component: 'CommunicationPreferencesPage',
|
||||
title: 'Notificaciones',
|
||||
icon: 'bell',
|
||||
requiresAuth: true,
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/settings/subscription',
|
||||
name: 'Subscription',
|
||||
@@ -539,16 +521,6 @@ export const routesConfig: RouteConfig[] = [
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
{
|
||||
path: '/app/settings/privacy',
|
||||
name: 'Privacy',
|
||||
component: 'PrivacySettingsPage',
|
||||
title: 'Privacidad',
|
||||
icon: 'settings',
|
||||
requiresAuth: true,
|
||||
showInNavigation: true,
|
||||
showInBreadcrumbs: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user