5sControl / 5sControl/5s-frontend

[1h]The manually set date isn't reset after viewing the full report

Abierto
#973 0 comentarios 0 reacciones 1 asignado Reclamado por @kirilbaskakov Ver en GitHub
bug ESMIL Front QA done Stage ready v. 0.8.1
Lenguaje dominante
TypeScript
Estrellas
3
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Description**
Заданная вручную дата не сбрасывается до сегодняшней даты после просмотра полного отчёта.

**Precondition**
Войти в учётную запись администратора

**Steps to reproduce:**
1. Нажать Reports
2. Установить любую начальную дату отчётного периода, кроме сегодняшней, в поле Report start date
3. Нажать на Full report
4. Нажать стрелку Назад в верхнем левом углу экрана
5. Нажать на Full report
6. Баг появляется

**Actual result:**
после нажатия стрелки Назад заданная дата вручную остаётся прежней, но при нажатии на просмотр полного отчёта генерируется отчёт только за сегодняшний день

**Expected result:**
после нажатия стрелки Назад дата в поле Report start date сбрасывается до сегодняшней автоматически

**Attachments:**

https://github.com/user-attachments/assets/a840b5a1-24ac-4dbb-a25e-d8b12bad2042

**Environment**
- Device: Samsung S20+
- OS: Android 13
- Browser: Google Chrome
- Version: 131.0.6778.260
[ stage.5scontrol.com/mobile](https://stage.5scontrol.com/mobile/)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look for the Reports component and the date handling logic, likely in a file like Reports.tsx or a similar component. Check how the report start date state is managed and reset on navigation. The bug is that the UI state doesn't reset after navigating back, so find where the date is stored and where it should be cleared. Verify by reproducing the steps on the staging environment.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react, typescript
Área
frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
40/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.