Description
Add a simulation menu for admins and executive users to preview how a tea day will look at different times of the day, without waiting for the actual reveal times.
Motivation
Currently, to verify that story parts, tea info, and media are displayed correctly at different times (08:00, 13:00, 18:00, 21:00 UTC), developers and content managers must wait for those times or manually modify system time. A simulation mode would allow:
- Testing progressive story reveals
- Previewing tea name reveal (21:00 UTC)
- Verifying YouTube embed and images display correctly
- QA without time constraints
Tasks
UI Design
- Floating action button or navbar dropdown
- Clear visual indicator when simulation is active
- Time selector with preset options
- "Exit simulation" button
Technical Considerations
- Override should only affect tea day display logic
- Should not modify actual database timestamps
- Consider URL query param (
?simulateTime=21:00) for shareable preview links
- Integrate with existing
advientea-rules.ts time functions
Definition of Done
Security
- Only Admin and Executive roles can access simulation
- Simulation state should not leak to regular users
- Prevent accidental production use
Phase: Production Polish
Priority: Medium
Description
Add a simulation menu for admins and executive users to preview how a tea day will look at different times of the day, without waiting for the actual reveal times.
Motivation
Currently, to verify that story parts, tea info, and media are displayed correctly at different times (08:00, 13:00, 18:00, 21:00 UTC), developers and content managers must wait for those times or manually modify system time. A simulation mode would allow:
Tasks
getAdvienteaDayState()logicUI Design
Technical Considerations
?simulateTime=21:00) for shareable preview linksadvientea-rules.tstime functionsDefinition of Done
Security
Phase: Production Polish
Priority: Medium