Skip to content

feat(ux): 精简账号信息、校园卡小眼睛、首页 3×2 快捷功能与全应用偏好记忆 - #219

Merged
Maotechh merged 2 commits into
HeZeBang:masterfrom
Maotechh:feat/ux-details-and-preference-persistence
Nov 24, 2026
Merged

Maotechh merged 2 commits into
HeZeBang:masterfrom
Maotechh:feat/ux-details-and-preference-persistence

Conversation

@Maotechh

Copy link
Copy Markdown
Collaborator

Summary

在 #218 合入之后,本 PR 完成一整轮产品与交互细节打磨及全应用视图偏好持久化:

  1. 精简账号信息,移除个人信息模糊(lib/pages/settings_page.dart, lib/pages/home_page.dart, lib/services/storage_service.dart)
    • 移除「默认模糊个人信息」开关及 ImageFiltered.blur 逻辑;
    • 「我的」账号卡直接明文显示用户名 + 在线 状态,副标题精简为 GeekPie Uni-Auth(移除尾部 userId 代码);首页头像直接展示真实首字。
  2. 首页校园卡余额默认显示 + 独立小眼睛持久化(lib/widgets/design_system/tp_campus_card_strip.dart, lib/pages/home_page.dart)
    • 余额默认明文显示,在宽屏实体卡与窄屏紧凑条余额旁均提供独立小眼睛按钮(home.campus-card-balance-toggle),点击带触感反馈切换明文 / •••• 并持久化记忆(hide_campus_card_balance),设置页不留冗余开关。
  3. 首页体验收口(lib/pages/home_page.dart)
    • 问候语登录后显示个性化称呼(如 晚上好,Henry);
    • 「快捷功能」移除与上方实体校园卡重复的 校园卡 入口,改为工整对称的 3×2 网格(消灭 4×2 末尾空位,保留 featureEntries 向后兼容);
    • 首页 Deadlines 卡片统一使用 effectiveDue,将处于迟交窗口内的紧急作业纳入排序与展示(标注 迟交剩余 ...),与侧边栏角标及 Deadlines 页口径一致。
  4. 全应用 UI 偏好持久化 + 课表周末列智能默认(lib/services/storage_service.dart, app_shell.dart, schedule_page.dart, assignments_page.dart)
    • 记住桌面侧边栏展开/折叠状态(desktop_sidebar_collapsed);
    • 记住课表视图模式(周课表 / 日程)、周六/周日/非本周课程开关;且未手动设置时,仅当本学期存在周六/周日课程或考试才默认显示对应列(周一至周五列宽大幅增加),手动开关后永久记忆;
    • 记住 Deadlines 页面的「显示作业 / 显示考试」筛选状态。
  5. 「我的」设置页精简(lib/pages/settings_page.dart)
    • Huawei Watch 入口改为仅在 Android 上显示(与 Apple Watch 仅在 iOS 显示一致);
    • 修正「第三方账号」副标题为 已绑定 N / 4 项 · IDS / eCard / Gradescope / Hydro;
    • 「网络与支持」将高频的「问题反馈」「隐私政策」「关于 TechPie」前置,低频「应用代理」移至卡片底部。

Verification

  • git diff --exit-code -- pubspec.lock:无改动
  • flutter analyze --no-pub:0 issues
  • 全量测试 + 新增回归测试 test/ux_details_and_preferences_test.dart 全部通过(1,068 passed)

Copilot AI balanced review requested due to automatic review settings November 24, 2026 11:14
@github-project-automation github-project-automation Bot moved this to Backlog in TechPie Nov 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Maotechh
Maotechh merged commit be7fda1 into HeZeBang:master Nov 24, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in TechPie Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants