chore: update comments and documentation for clarity and consistency across various files
- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts. - Improved descriptions for better understanding of code functionality and purpose. - Ensured uniformity in terminology and phrasing throughout the codebase.
This commit is contained in:
@@ -5,10 +5,10 @@ import { GroupDtoSchema } from './groups.js';
|
||||
export type { BillingType, PaymentProvider, WeekDay } from './enums.js';
|
||||
export { billingTypeSchema, paymentProviderSchema, weekdaySchema } from './enums.js';
|
||||
|
||||
// Paso 2: vincula la cuenta de cobro del profesor.
|
||||
// Step 2: link the teacher's payment account.
|
||||
export const ConnectPaymentSchema = z.strictObject({
|
||||
provider: paymentProviderSchema,
|
||||
// Para el MVP se conecta en modo simulación / sandbox.
|
||||
// For the MVP it connects in simulation / sandbox mode.
|
||||
sandbox: z.boolean().default(true),
|
||||
accessToken: z.string().optional(),
|
||||
});
|
||||
@@ -21,7 +21,7 @@ export const ConnectPaymentResultSchema = z.object({
|
||||
});
|
||||
export type ConnectPaymentResult = z.output<typeof ConnectPaymentResultSchema>;
|
||||
|
||||
// Paso 3: crea el primer grupo del profesor.
|
||||
// Step 3: create the teacher's first group.
|
||||
export const CreateFirstGroupSchema = z.strictObject({
|
||||
name: z
|
||||
.string()
|
||||
@@ -64,7 +64,7 @@ export const CreateFirstGroupResultSchema = z.object({
|
||||
});
|
||||
export type CreateFirstGroupResult = z.output<typeof CreateFirstGroupResultSchema>;
|
||||
|
||||
// Estado del onboarding para retomar el flujo si se interrumpió.
|
||||
// Onboarding state, to resume the flow if it was interrupted.
|
||||
export const onboardingStepSchema = z.enum(['NOT_STARTED', 'PAYMENT_CONNECTED', 'COMPLETED']);
|
||||
export type OnboardingStep = z.output<typeof onboardingStepSchema>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user