feat: Idle-aware smart test scheduling using chrome.idle API

Đang mở
#30 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Start by reading the manifest permissions, the alarm listener that calls runFullTest(), and the options page where test intervals are configured. Check how scheduled tests are currently retried and how browser idle state is accessed in this extension. Done means full bandwidth tests follow the requested idle and locked rules, active users trigger a five-minute retry, and the idle threshold is configurable with a 60-second default.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement performance

Summary

Enhance the scheduled test system to be "idle-aware" — never run bandwidth-intensive tests while the user is actively working, on a video call, or gaming.

Current state

Scheduled tests use chrome.alarms with fixed intervals (configurable in options). Tests fire regardless of user activity.

Proposed improvement
  • Use chrome.idle.queryState() before running scheduled tests
  • Only run full bandwidth tests when state is 'idle' (user hasn't interacted for 60+ seconds)
  • If user is 'active', defer the test and retry after 5 minutes
  • If user is 'locked', still run the test (screen locked = not actively using bandwidth)
Why
  • Prevents scheduled tests from disrupting active Zoom calls, gaming sessions, or large downloads
  • Makes background monitoring truly invisible and non-intrusive
  • Addresses the #1 complaint about continuous monitoring tools: "It slows down my browser"
Implementation
  • Add chrome.idle permission to manifest
  • Wrap runFullTest() call in alarm listener with idle check
  • Add configurable idle threshold in options (default: 60 seconds)
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
15 ngày 20 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ajithakdev/meterx

Tất cả issue của ajithakdev/meterx

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.