After an appointment reaches theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JulietaEM/EdgeTimer/llms.txt
Use this file to discover all available pages before exploring further.
realizada (completed) state, clients can leave a rating and an optional written review. Ratings serve two purposes: they give barbers direct feedback about a completed service, and they aggregate into the barber’s promedioCalificacion score, which is displayed on their profile card for all clients to see. Only clients can submit ratings, and only for appointments they personally attended.
When ratings become available
The “Calificar esta cita” button appears on an appointment card in the Agenda “Pasadas” tab only when all three conditions are true:- The current user is a client (not a barber).
- The appointment’s
estadoisrealizada. - The appointment’s
calificacionfield isnull— no rating has been submitted yet.
Barbers viewing the same completed appointment see either the rating the client submitted (score and review text) or the message “Sin calificación recibida.” if no rating has been left yet.
Rating fields (CalificarCitaDto)
The client’s profile ID. Used to verify that the user submitting the rating is the client on the appointment.
A whole-number score from 1 to 5. In the mobile app this is picked using a row of five numbered buttons; the selected button is highlighted.
An optional free-text review. Stored alongside the score and displayed on both the client’s and barber’s appointment card.
Submitting a rating
From the Agenda screen, open the “Pasadas” tab and find the completed appointment. Tap Calificar esta cita to open the rating modal.Select a score
Tap one of the five numbered buttons to choose a score from 1 to 5. The selected button is highlighted. The default selection is 5.
Write an optional review
Enter free-text feedback in the review field. This step is optional — submitting without a review records only the numeric score.
How ratings affect the barber profile
Each submitted rating is stored on the appointment record. The barber’spromedio_calificacion field in the database is recalculated to reflect the running average across all rated appointments. The updated average is returned by GET /catalogos/barberos and GET /catalogos/barberos/:id, and is displayed on the barber’s card in the client home screen.
Client vs. barber perspective on ratings
| Scenario | Client sees | Barber sees |
|---|---|---|
| Appointment completed, not yet rated | ”Calificar esta cita” button | ”Sin calificación recibida.” |
| Rating submitted | Score (e.g., 4/5) and review text | Score (e.g., 4/5) and review text |
| Appointment not yet completed | No rating UI | No rating UI |