5sControl / 5sControl/5s-frontend
[1h]The administrator account is loaded for a few seconds when logging in using worker credentials
- 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. Войти в систему, используя креды любого работника
2. Баг появляется
**Actual result:**
на несколько секунд загружается страница администратора, после чего появляется страница работника
**Expected result:**
сразу загружается аккаунт работника
**Attachments:**
https://github.com/user-attachments/assets/e8358e7f-e4a2-4290-bf8e-6ee2549e2614
**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
Línea de trabajo
The issue describes a flash of the admin page before the worker page loads. Look at the authentication flow and routing logic, likely in components handling login and session state. Check for any cached user data or redirect delays. The linked pull request #979 (merged) may have addressed this, so review its changes to understand the fix.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- authentication, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100