Add onboarding pages

This commit is contained in:
Urtzi Alfaro
2025-09-01 08:13:01 +02:00
parent bde52d8ca2
commit 330e4a06b1
8 changed files with 518 additions and 113 deletions

View File

@@ -0,0 +1,37 @@
/**
* Mock configuration for testing the complete onboarding flow
* Set MOCK_MODE to false for production
*/
export const MOCK_CONFIG = {
// Global mock mode toggle
MOCK_MODE: true,
// Component-specific toggles
MOCK_REGISTRATION: true,
MOCK_AUTHENTICATION: true,
MOCK_ONBOARDING_FLOW: true,
// Mock user data
MOCK_USER: {
full_name: 'María García López',
email: 'maria.garcia@elbuenpan.com',
role: 'admin',
tenant_name: 'Panadería Artesanal El Buen Pan'
},
// Mock bakery data
MOCK_BAKERY: {
name: 'Panadería Artesanal El Buen Pan',
type: 'artisan',
location: 'Av. Principal 123, Centro Histórico',
phone: '+1 234 567 8900',
email: 'info@elbuenpan.com'
}
};
// Helper function to check if mock mode is enabled
export const isMockMode = () => MOCK_CONFIG.MOCK_MODE;
export const isMockRegistration = () => MOCK_CONFIG.MOCK_MODE && MOCK_CONFIG.MOCK_REGISTRATION;
export const isMockAuthentication = () => MOCK_CONFIG.MOCK_MODE && MOCK_CONFIG.MOCK_AUTHENTICATION;
export const isMockOnboardingFlow = () => MOCK_CONFIG.MOCK_MODE && MOCK_CONFIG.MOCK_ONBOARDING_FLOW;