5sControl / 5sControl/5s-webserver

fix bug A push notification popup "Low space disk"

Open
#117 0 comments 0 reactions 1 assignee Assigned to @AlexGurski View on GitHub
bug
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Summary: Всплывающее push-уведомление "Low space disk" появляется в столбик на каждое уведомление

Envornment:
http://192.168.1.110:3000/
http://192.168.1.111:3000/
https://5s-kaunas-hp.netlify.app/
Win 10 pro, win 11
Chrome 115.0.5790.99

Precondition:
Пользователь авторизован
Камеры авторизованы
На камерах назначены алгоритмы

Steps to reproduce:
1. Ожидать появления новых репортов
2. Игнорировать первое всплывающее push-уведомление "Low space disk"

Expected result:
При остатке менее 20% места на жестком диске отображается одно всплывающее push-уведомление "Low space disk".
После закрытия этого уведомления, чтобы оно не отображалось спустя короткое время.

Actual result:
При остатке менее 20% места на жестком диске отображается три всплывающих push-уведомления "Low space disk".
После закрытия этого уведомления, отображается снова спустя короткое время.

https://user-images.githubusercontent.com/86359211/257478259-6bf8091a-ba73-4cd0-9b86-0bba89eb683c.webm

Contributor guide

Open the contributing guide

Research direction

The issue describes a bug with duplicate 'Low space disk' push notifications appearing and reappearing. Look for notification handling code, likely in a frontend service worker or a notification component. Check for logic that triggers the notification based on disk space and ensures it only shows once. The video shows the behavior; reproduce by simulating low disk space in the test environments listed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.