Understanding Schedule Structure
Before creating custom schedules, it’s important to understand how schedules work in stevenson.space.Schedule Types
Schedules are organized into schedule types (collections) that contain one or more schedule modes:Schedule Type
A category of schedules (e.g., “Standard Schedule”, “Late Arrival”, “Activity Period”)
Schedule Mode
A specific bell schedule within a type (e.g., “Normal”, “Half Periods”)
Schedule Data Structure
Each schedule mode contains three key arrays:All three arrays (
start, end, periods) must have the same length, with corresponding indices representing the same period.Example: Standard Normal Schedule
Here’s how the standard Normal schedule is structured:Creating a Custom Schedule
Navigate to Settings
Open the Settings page by clicking the gear icon or navigating to
/settings.Scroll to the Schedules section.Click 'Add Custom'
In the schedule cards grid, click the Add Custom card with the plus icon.This will navigate you to the
/add-schedule route.Configure Your Schedule
Fill in the schedule details:
Schedule Name
Schedule Name
Enter a unique name for your custom schedule. If it conflicts with an official schedule name, the system will automatically append a number (e.g., “Normal (2)”).
Schedule Type
Schedule Type
Select which schedule type this mode belongs to. Common types include:
- Standard Schedule
- Late Arrival
- Activity Period
- Early Dismissal
Periods Configuration
Periods Configuration
Define each period with:
- Period name: Number or label (e.g., “1”, “3A”, “Activity”)
- Start time: In 24-hour format (e.g., “8:30”, “13:46”)
- End time: In 24-hour format
Managing Custom Schedules
Viewing Your Schedules
All schedules (both official and custom) appear as cards in the Settings > Schedules section. Custom schedules are marked withisCustom: true internally and display additional management options.
Editing Schedules
- Custom Schedules
- Official Schedules
Custom schedules can be edited directly:
- Click the Edit button on the schedule card
- Modify the periods, times, or name
- Save your changes
Deleting Custom Schedules
Setting a Default Schedule Mode
You can set any schedule mode (official or custom) as your default:- Go to Settings > General
- Find the Default Schedule Mode dropdown
- Select your preferred schedule mode
- This will be used as the default when multiple modes are available for a schedule type
Advanced: Storage Format
Custom schedules are stored in localStorage using this structure:isCustom: true to user-created modes.
Resetting to Defaults
If you want to remove all custom schedules and return to official schedules only:Technical Reference
For developers working with the schedule system:See
src/stores/schedules.ts for the complete implementation of schedule management.