Repository navigation
fix(windows-tray): 显示当前 Wi-Fi 名称 - #55
Merged
Merged
Conversation
mel0nyrame
added a commit
that referenced
this pull request
Sep 28, 2026
* docs(windows): 记录托盘交互研究与视觉方向 * feat(windows): 建立单一认证运行时与手动检查入口 * fix(windows): 配置读取失败时保持认证窗口可用 * feat(windows): 响应 Wi-Fi 切换并定向认证连接 * fix(windows): 显式转换端口以通过 MSVC 编译 端口已在 OpenWifiTunnel 限定为 1–65535;传入 htons 前显式转换为 u_short,消除 MSVC C4244 窄化警告。 * feat(windows-tray): 提供托盘状态浮层与单实例生命周期 * feat(windows): 增加桌面配置与网络详情窗口 * feat(windows): 增加在线设备与会话管理 * docs: 补充 Windows 路径并统一中文说明 * feat(windows-logs): 增加诊断日志查看与管理 * feat(windows): 交付安装包并支持登录自启 * fix(ci): 修复 Windows 安装器版本解析 * fix(ci): 使用 ISCC 支持的版本定义参数 * fix(ci): 明确等待 Windows 安装器进程结束 失败日志显示首次静默安装检查拿到空的 LASTEXITCODE。改用 Start-Process -Wait -PassThru 读取进程退出码,并保留安装文件与卸载断言。同步更新 Windows 安装器契约测试中的 ISCC 参数。 * chore(windows): 明确安装器检查范围并补充自启导航 * feat(windows-update): 支持 Windows 应用内更新并发布安装包 * fix(windows-tray): 显示当前 Wi-Fi 名称 (#55)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
Refs #37。第 11 条要求托盘状态浮层显示当前 Wi-Fi 名称;名称不可读取时显示通用提示。
变更轮廓
Windows 宿主查询当前 WLAN 连接的 SSID,写入 Wi-Fi 快照,再经 Dart 运行时传到托盘浮层。SSID 只用于显示;若 SSID 不是有效 UTF-8,则尝试使用 Windows 配置名称,仍不可读时显示通用文案。
windows_wifi_contract_test.dart覆盖原生 payload 与通道字段,auth_runtime_test.dart覆盖运行时状态传递,windows_home_test.dart覆盖浮层文案。Windows API 依据:WlanQueryInterface 的
wlan_intf_opcode_current_connection返回当前连接属性;WLAN_CONNECTION_ATTRIBUTES 包含关联 SSID。验证汇总
tool/flutter_sdk.sh flutter pub get:成功。tool/flutter_sdk.sh flutter analyze --no-fatal-infos:通过;现有 94 条 info,无 error 或 warning。tool/flutter_sdk.sh flutter test --reporter=compact:210 项全部通过。tool/flutter_sdk.sh dart format --output=none --set-exit-if-changed .:通过,无格式变更。git diff --check:通过。.github/workflows/ci.yml的 Windows job 会构建 release 客户端。按任务要求,提交后不等待 CI。评审注意事项
Windows 10/11 x64 真机与真实校园 Wi-Fi 验收尚未通过,按 #37 的验收约定继续保持 issue 打开。浮层文本对长名称使用单行省略。
风险与回滚
无持久化格式变更;修复可通过 revert 本提交回滚。Standards 轴提出
FlutterWindow职责集中、主界面与浮层重复投影标题文案两项判断意见。本次接受现状,因为两项都不影响 Wi-Fi 名称传递,且将它们并入会扩大这项局部修复;若之后维护中两处需频繁同步,可单独抽取共享展示逻辑。