5sControl / 5sControl/5s-frontend

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

Aperta
#973 0 commenti 0 reazioni 1 assegnatario Rivendicata da @kirilbaskakov Vedi su GitHub
bug ESMIL Front QA done Stage ready v. 0.8.1
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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/)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
40/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.