feat: Network-change auto-trigger — test when joining new Wi-Fi

未关闭
#32 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
领域
networking

调研方向

Start by locating the browser extension's service worker and the existing connectivity and speed test entry points; the issue does not name their files. Check whether the proposed navigator.connection change event is available in the target browser contexts, then trace how test results are stored in history. Done means a new network triggers a lightweight test, reports its result, and stores a network profile; the optional open-network warning can be assessed separately.

由索引模型根据 Issue 内容生成。

描述

enhancement UX

Summary

Automatically run a quick diagnostic test when the user connects to a new Wi-Fi network (hotel, airport, coffee shop, office).

Behavior
  1. Detect network change via navigator.connection API or periodic connectivity checks
  2. Show notification: "Connected to 'Starbucks Guest' — checking speed..."
  3. Run a lightweight ping + mini download test (not full 8-second saturation)
  4. Report: "Starbucks Guest: 8.5 Mbps down, 140ms ping ⚠️ Fair"
  5. Optional: warn about open/unencrypted networks
Why
  • Hotel/airport Wi-Fi quality is a universal pain point
  • Users always want to know "how fast is this Wi-Fi?" when connecting somewhere new
  • Proactive testing without requiring the user to remember to test
Implementation
  • Use navigator.connection.addEventListener('change', ...) in service worker
  • Detect SSID change (limited in browser context, but can detect IP/connection type changes)
  • Run lightweight test variant (2-second duration, single stream)
  • Store network profiles in history with network identifiers
主要语言
TypeScript
星标
1
派生
0
平均合并
15 天 20 小时
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ajithakdev/meterx 的其他 Issue

查看 ajithakdev/meterx 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。