5sControl / 5sControl/5s-frontend

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

Ouverte
#973 0 commentaires 0 réactions 1 personne assignée Réclamée par @kirilbaskakov Voir sur GitHub
bug ESMIL Front QA done Stage ready v. 0.8.1
Langage dominant
TypeScript
Étoiles
3
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
40/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.