Abdulrahman Elsayed Badawy

Web and Mobile AppsWeb application

Time Manager: a Weekly Planner with Recurring Events

A week planner for recurring events, one-off tasks and coursework with deadlines: a React timeline over an Express and PostgreSQL API.

  • TypeWeb application
  • RoleSolo project
  • WhenMar 2023 – May 2024
  • 6database tables
  • 25API routes
  • 11forms
  • 13status names
Time Manager: a Weekly Planner with Recurring Events

Highlights

  • A recurring event is stored once (start date, end date, repeat every N days); the API expands it for the week on screen and leaves out the single days marked as exceptions
  • Unfinished tasks and assignments can be extended into a second slot, and 8 of the 11 forms refuse a slot that is already occupied or falls outside 04:00 to 22:00
  • Every block on the timeline re-checks its own status each minute (13 names, from "About to start" to "Overdue") and the browser notifies you when something starts, is about to end or passes its deadline
  • Interface redesigned in November 2026: the whole day fits a desktop window, a phone shows one day at a time, and every form is a dialog with labelled fields and its problems written out

The problem

A week of study and work mixes three kinds of thing: events that repeat, one-off tasks, and coursework that belongs to a course and has a deadline. A to-do list does not show when there is time for each, and a plain calendar does not know that an assignment belongs to a lecture or that unfinished work needs another slot.

Approach

The front end is a React single-page app. On a wide screen it is one grid with seven rows, Saturday to Friday, from 04:00 to 22:00, where every item is a coloured block placed by its start time and length; on a phone the same items are listed one day at a time. Eleven forms add, change, extend and delete items.

The back end is an Express REST API on PostgreSQL, with six tables built by db-migrate migrations: scheduled events, their exceptions and assignments, tasks, and the extensions of tasks and assignments. For the week you pick, the API works out which days each recurring event lands on, removes the exceptions and returns blocks ready to draw.

In the browser, each block compares itself with the clock every minute to set its status, and the forms check a new slot against everything already in that day before saving.

The application dates from 2023-2024. Its interface was redesigned in November 2026 for this portfolio; the features, the API and the database are as they were.

Results

  • A week planner in about 3,300 lines of JavaScript: 6 tables, 25 API routes, 11 forms
  • Five kinds of block on one timeline: recurring events, tasks, assignments and the extensions of the last two
  • 13 status names, each with its own icon, and browser notifications around each start, end and deadline
  • Fits a desktop window and works on a phone, where the week becomes one day at a time
  • A single-user tool that runs on your own machine: no sign-in and no hosted version

What this means for you

The hard part of any booking or planning tool is its rules: what repeats, what is skipped, what clashes. Here those rules live in the data model and the API rather than being patched on in the interface.

Tools

  • JavaScript
  • React
  • Axios
  • CSS
  • Node.js
  • Express
  • PostgreSQL
  • db-migrate

Figures

Select a figure to enlarge it.

The app at a glance

The app at a glance

Plan, work out the week, see it: three kinds of item go in, the API expands and filters them for one week, and the timeline shows them with a live status.

The week view

The week view

One week, Saturday to Friday, with the whole day from 04:00 to 22:00 in one window. Blue is a scheduled event, green a task, orange an assignment, and a hatched block is an extension. Every block names its kind and shows its status as an icon; pointing at one shows its details at the top right. This is sample data, with the interface running without its server.

On a phone: one day at a time

On a phone: one day at a time

A row of seven days to choose from, then that day’s items in time order, each with its kind, its time and its status in words, and a line that marks the present moment.

How one week is worked out

How one week is worked out

The six tables, how a repeating event is expanded and its skipped day removed, and the statuses a block moves through as time passes.

A recurring event

A recurring event

First and last day, start time, length and the repeat interval in days. From here a single day can be skipped with an exception, or an assignment attached.

The clash check

The clash check

The new task overlaps a lecture, so the form says so in a sentence and keeps the Add task button disabled.

The same form on a phone

The same form on a phone

On a phone a form takes the whole screen, with fields and buttons large enough for a finger.

Skipped days

Skipped days

The list of exceptions: single days on which a recurring event does not take place. Deleting one puts the event back.

An assignment

An assignment

Work that belongs to a course, with its own slot and a deadline. It can be ticked as completed or extended into another slot.