Sample Activity Timeline

This page shows a sample activity with its events and the implementation logic Memryo uses for the timeline view.

Sample Activity: Car Wash

We use Car Wash from the Car Maintenance category as the example. It has a monthly recurrence (every month). The timeline shows exactly 6 events, rendered as the real app would.

1. Timeline visualization (as in the app)

The timeline shows the last 6 events for the selected activity. For monthly recurrence, event labels use month/day (e.g. "Sep 4"), and the gap between events is shown in days (e.g. "31d"). Period boundary markers are hidden for monthly to avoid clutter.

Timeline behavior

  • Filter: Events are filtered by activityId === selectedActivity (or activity name for backward compatibility).
  • Sort: For the timeline bar, events are sorted oldest → newest. For the event list below, newest → oldest.
  • Range: Uses the first and last event in the (up to) 6 events to determine the start and end of the line.
  • Position: Each event’s position is 0–100% along the line based on its timestamp within that range.
Sep 4
Oct 5
31d
Nov 2
28d
Dec 3
31d
Jan 5
33d
Feb 7
33d

Period: Sep 2025 – Feb 2026 • Monthly recurrence • 6 events

2. Event list (as shown in app)

Each event row shows date/time (formatted by recurrence), a dot, and optional notes. Actions: add/edit notes, edit date/time, delete.

Feb 7, 2026
Notes: Wax included
Jan 5, 2026
Notes: Touchless wash
Dec 3, 2025
Notes: Hand wash, interior vacuum
Nov 2, 2025
Notes: Quick wash
Oct 5, 2025
Notes: Full detail
Sep 4, 2025
Notes: Self-service bay

3. “Time since last activity” display

Below the timeline, Memryo shows how long it has been since the last recorded event. The format depends on the activity’s recurrence:

  • hourly: e.g. “2 days, 5 hours”
  • daily: e.g. “3 days”
  • weekly: e.g. “2 weeks, 4 days”
  • monthly / quarterly / half-yearly: e.g. “2 months, 5 days”
  • yearly: e.g. “1 year, 3 months, 12 days”

For our sample (Car Wash): It’s been 0 days since the last activity (just recorded today).

4. Implementation logic summary

Recording (“Remember it”)

Recurrence periods (used for warnings and timeline scaling)

Timeline axis by recurrence

Event actions

5. Storage

All data is stored locally using AsyncStorage:

No data is sent to external servers. Everything stays on the device.


← Back to Memryo