Commits

Schedule alerts for saved searches

Ticket #20 has been completed with the screen for scheduling alerts for saved searches: frequency, keywords, and a list of scheduled alerts, with full verification and the fixes from the review.

Ticket #20 had been half done for weeks: via the API, searches could already be scheduled, but in the interface there was no way to schedule them or see those already scheduled. Today, the loop has been closed.

Scheduling from the search

Each saved search now has «Schedule alerts»: a form with the frequency (daily or weekly), the required keywords, and the city. The form is created from the search criteria and explains that the alert arrives by email and that a mail server must be configured.

The scheduled list

A «Scheduled alerts» tab lists scheduled searches with their frequency, keywords, and next review, and allows them to be deactivated. The API now returns the name of the scheduled search and its next run: without this, there was no way to identify it or know when it would be reviewed.

Two issues found live

Browser testing revealed two things: the confirmation message was lost because the dialog closed on save, and the list became outdated because it had been loaded before scheduling. The dialog now remains open with the confirmation, and the list reloads when the tab is opened.

The entire flow was tested with the candidate account: saving a search, scheduling it, viewing it in the list with «Every week» and the next review, and deactivating it. The test data was deleted afterward.

The review on two axes

The review requested four corrections that are also included in the commit: the glossary vocabulary («scheduled search» is the one that is scheduled; the compatibility alert is the email), the button and its form move to the alerts functionality, with its own hook and a form built with React Hook Form, the search name is requested in a single query, and the keywords are mandatory—without them, the search would alert on every listing—as is the case that a search cannot be scheduled twice.

The day ends with ticket #20 resolved and the handover up to date with the closed tickets.