Overview
Pagosapp displays three months at a time, allowing you to view past, current, and upcoming payments simultaneously. The navigation system makes it easy to move through the year while maintaining context of your payment timeline.Three-Month View
The application displays three consecutive months side-by-side, providing a rolling view of your payment obligations:By default, the application starts one month before the current month (or at January if current month is January), giving you visibility into recent past payments and upcoming obligations.
Initial Month Position
The starting month is calculated insrc/App.jsx:28-30:
Logic Breakdown
- Gets current month index (0-11)
- Subtracts 1 to show previous month
- If result is negative (January case), defaults to 0
- Shows three months starting from this position
Navigation Controls
Two buttons control month navigation:Next Button (Siguiente)
Moves the view forward by one month:Next Button Behavior
- Increments the starting index by 1
- Disabled when showing the last three months (October, November, December)
- Updates the view immediately
Previous Button (Anterior)
Moves the view backward by one month:Previous Button Behavior
- Decrements the starting index by 1
- Disabled when showing the first three months (January, February, March)
- Updates the view immediately
Navigation Boundaries
The navigation system has built-in boundaries to prevent invalid month ranges:- Forward Boundary
- Backward Boundary
Maximum starting index is This ensures the last possible view shows:
meses.length - 2 (index 10):- Octubre (October)
- Noviembre (November)
- Diciembre (December)
Month Display Component
Each month is rendered using theMes component from src/components/Mes.jsx:6-17:
Rendering Logic
The application renders months insrc/App.jsx:64-68:
Each month independently filters and displays only the payments relevant to that specific month, based on the payment’s
mensual property or meses array.Navigation UI Layout
The navigation buttons are positioned above the month display:Practical Navigation Scenarios
Planning Ahead
Planning Ahead
Use the Next button to look ahead at upcoming months and prepare for future payment obligations. This is especially useful at the end of a month to see what’s coming.
Historical Review
Historical Review
Use the Previous button to review past months and verify which payments were completed. Useful for reconciliation or record-keeping.
Current Context
Current Context
The default view keeps the current month in the center or right position, providing context from the previous month and visibility into the next month.
Year-End Planning
Year-End Planning
Navigate to the end of the year (October-December view) to plan for year-end payments and prepare for the next year.
Understanding the Month Array
The complete month array insrc/App.jsx:12-25:
Navigation States
Start of Year
Months: Enero, Febrero, MarzoIndex: 0Previous: DisabledNext: Enabled
Mid Year
Example: Mayo, Junio, JulioIndex: 4Previous: EnabledNext: Enabled
End of Year
Months: Octubre, Noviembre, DiciembreIndex: 9Previous: EnabledNext: Disabled
Payment Filtering Per Month
As you navigate, each month automatically filters payments:- Monthly payments (
mensual: true): Appear in all months - Specific month payments: Only appear in designated months
Best Practices
Regular Navigation
Navigate through months regularly to stay aware of upcoming and past payment obligations across the year.
Start of Month Review
At the beginning of each month, navigate to view the current and next two months to plan ahead.
End of Month Check
Before month-end, review the current month to ensure all payments are marked as complete.
Quarterly Overview
Use navigation to review three-month periods for quarterly financial planning and tracking.
Keyboard Accessibility
The navigation buttons are fully accessible:- Click with mouse
- Tab to focus, Enter/Space to activate
- Clear visual feedback on button state
Performance Considerations
The three-month view is optimized for performance:
- Only three months of data are rendered at once
- Navigation updates are instant
- Payment filtering happens per month automatically
- No unnecessary re-renders when navigating
Related Features
Payment Tracking
Track payments across different months
Due Dates
Manage due dates for payments in different months