Skip to content

feat(ui): 实体校园卡、侧边栏角标、课程详情升级与 Huawei Watch 设计系统迁移 - #218

Merged
Maotechh merged 2 commits into
HeZeBang:masterfrom
Maotechh:feat/brand-polish-card-badges-and-watch-migration
Nov 24, 2026
Merged

Maotechh merged 2 commits into
HeZeBang:masterfrom
Maotechh:feat/brand-polish-card-badges-and-watch-migration

Conversation

@Maotechh

Copy link
Copy Markdown
Collaborator

Summary

在 #217(弹簧物理、触感与毛玻璃浮层)合入之后,本 PR 完成视觉品牌质感升级与剩余页面设计系统收尾:

  1. 双形态实体校园卡(lib/widgets/design_system/tp_campus_card_strip.dart, lib/pages/home_page.dart)
    • 桌面宽屏 Bento 模式(expandedCard: true):使用上海科技大学天际线实体卡面(assets/campus_card/images/card-full.png)+ 固定高对比卡面墨色余额(支持隐私模糊)+ 亮码 胶囊按钮。
    • 移动端 / 窄屏模式(expandedCard: false):保持紧凑横条,左侧替换为 48×32 迷你实体卡缩略图。
  2. 桌面侧边栏 Deadlines 实时角标(lib/widgets/app_shell/app_shell.dart, desktop_sidebar*.dart)
    • 监听 AssignmentService 统计未完成即将截止数(>99 显示 99+);24 小时内或迟交窗口内使用 dangerRed 警示胶囊,其余为柔和中性胶囊;折叠态展示 8.5dp 圆点 + Tooltip('Deadlines (N)')。
  3. 课程详情面板升级(lib/widgets/course_detail_panel.dart)
    • 左侧 3dp 课程色竖条 + 来源 TpBadge(课程 / 考试 / 自定义)+ 统一 TpColors / TpIcons 分组元信息卡片;支持点击课程名与教室地点一键复制并触发触感与提示。
  4. Huawei Watch 页面迁移至 TechPie Design System(lib/pages/huawei_watch_page.dart)
    • 统一使用 AdaptiveNavigationScaffold.adaptiveBar、colors.canvas、TpPageBody、TpCard、TpListRow、TpBadge、TpIcons 与 AdaptiveSwitch,完整保留 huawei_watch_page_test.dart 所有交互与状态契约。
  5. Deadlines 桌面端溢出菜单升级毛玻璃 Popover(lib/pages/assignments_page.dart, test/deadline_reminder_service_test.dart)
    • 桌面侧边栏布局下将 PopupMenuButton 升级为 showDesktopPopover + DesktopPopoverSurface + DesktopMenuRow。
  6. Settings 品牌收尾与暗黑模式墨色修正(lib/pages/settings_page.dart, tp_list_row.dart, third_party_accounts_page.dart)
    • 「关于 TechPie」图标替换为 TpBrandMark,底部增加 TechPie · Built with Flutter by GeekPie_ 品牌页脚;ThirdPartyAccountsPage 剩余 4 处图标统一为高对比 colors.brandInk。

Verification

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

Copilot AI balanced review requested due to automatic review settings November 24, 2026 10:31
@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 5a4a602 into HeZeBang:master Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants