90e4e2b2e6
docs: update README with current page list, project structure, and fix changelog
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 15:24:44 +08:00
a05dd09902
refactor(ios): migrate NavigationLink to value-based routing, add Dynamic Type support, fix gesture conflicts
...
- Replace all deprecated NavigationLink(destination:) with NavigationLink(value: Route)
- Add Route enum with navigationDestination mapping in new Core/Navigation/
- Extract 7 new sub-page files (AIChatPage, AIFeedbackPageView, RecallTestPage, WeakPointsPage, FeedbackFormView, GoalSettingDetailView, MethodPreferenceView)
- Add @ScaledMetric-based zxFontScaled modifier for Dynamic Type
- Fix ZXPressModifier gesture conflict with ScrollView using onLongPressGesture
- Enlarge touch targets from 36pt to 44pt
- Add accessibility labels to TextField and other controls
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 15:21:36 +08:00
9a4b4afaf4
fix: add missing animations to progress rings, bars, and charts in learning views
...
- StudyHomeView: ring trim animation + bar width animation + week bar spring animations with staggered delay + numeric text transitions
- LearningSessionView: animatedProgress state with onChange driving smooth ring animation + background track ring
- ReviewCardView: progress bar width animation
- AnalysisHomeView: chart line trim animation + gradient fill fade-in
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 15:59:31 +08:00
8c486c73ae
fix: change API base URL to https://longde.cloud/api to match nginx proxy
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 15:44:29 +08:00
be7fca5305
fix: resolve 3 compilation errors
...
- NotificationListView.swift: unwrap optional String? for Text()
- LocalCache.swift: add @escaping to fetch closure parameter
- ContentView.swift: reformat ZXTabBar body for item scope fix
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 11:35:23 +08:00
89d89e542c
feat(ios): P2 动效补充 + 无障碍适配
...
- 新增 ZXAnimations.swift — ZXButtonStyle/ZXPressModifier/ZXPageTransition/ZXThinkingOverlay/ZXCelebrationView/ZXAIAnalysisProgress
- 新增 ZXLoadingView.swift — 品牌化加载动画/ZXDotLoader/ZXShimmer
- 新增 ZXRefreshableScrollView.swift — 下拉刷新+上拉加载更多
- 新增 ZXToast.swift — 全局 Toast 通知系统
- 新增 FileCache.swift / LocalCache.swift — 本地缓存层
- 新增 AIChatViewModel.swift / StudyHomeViewModel.swift / ReviewPlanViewModel.swift
- 全部关键按钮接入 .zxPressable() 触觉反馈
- AI 分析流程接入 ZXThinkingOverlay + ZXAIAnalysisProgress
- 学习完成/复习完成接入 ZXCelebrationView 庆祝动画
- 全部关键交互元素添加 .accessibilityLabel
- 修复 ProfileViewModel async let 问题、EditProfilePage 保存失败、let _ = Task{} 反模式
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 22:31:24 +08:00
b182203464
fix(ios): APIClient 兼容有无 ResponseInterceptor 两种响应格式
...
服务器部署版本可能未启用 ResponseInterceptor,返回裸 JSON 而非
{ success, data, timestamp } 信封格式。APIClient 解码时先探测
JSON 结构,自动适配包裹/裸数据两种格式。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 19:42:17 +08:00
5e19bd740e
feat(ios): 鉴权系统完善 + 前后端打通 + 模型对齐 + ViewModel 创建
...
- 新增 AuthManager (ObservableObject) 集中管理鉴权状态:
- session 恢复 → token 验证 → 自动刷新
- 登出自动重定向到登录页
- NotificationCenter 监听 401 实现全局踢回
- APIClient 新增 401 自动 refresh + 单次重试
- App.swift 重构鉴权门控:
- 去掉 hasCompletedOnboarding 绕过鉴权漏洞
- 拆分为 SplashScreen / PreLoginFlow / PostLoginOnboardingFlow / ContentView
- LoginPage 移除"跳过"按钮
- KeychainHelper 实现 token 安全存储
- APIModels 对齐后端 Prisma schema (UserProfile/KnowledgeBase/ReviewCard 等)
- APIService 简化 AuthService,token 管理迁移至 AuthManager
- 新增 8 个 ViewModel 接入 API:
ProfileViewModel, LibraryViewModel, StudyViewModel,
ActiveRecallViewModel, AIAnalysisViewModel, ReviewViewModel, ActivityViewModel
- 新增 EditProfilePage 编辑资料页
- 新增 NotificationListView 通知列表页
- AIHomeView 修复"检测中"卡住 (改用公开 GET / 健康检查)
- SettingsView 登出调用 AuthManager.signOut() 实现重定向
- 修复 NotificationItem 命名冲突、Combine import 缺失等编译错误
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 19:06:23 +08:00
dc4ad424e2
switch API to HTTPS api.longde.cloud, remove NSAllowsArbitraryLoads, migrate docs to startup-plan
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 17:30:27 +08:00
d7e57dcebc
chore: 同步 xcodeproj 和 LearningSessionView 改动
2026-05-13 15:59:32 +08:00
a96d6cb159
feat(ios): 补全页面跳转、浅色模式、3个新页面
...
- 移除 3 处强制深色模式,用 @AppStorage 全局切换
- 设置页「外观」按钮实时切换深色/浅色/跟随系统
- 底部导航栏 inactive 颜色改为自适应 Color.zxF03
- 12 个子页面修复:保留返回按钮 + 消除顶部空白
- 新增 LearningSessionView/ReviewCardView/ActiveRecallView
- 新增 NotificationListView/SettingsView 等子页面
- 补全所有按钮 NavigationLink 跳转(0 个空白 action)
- KnowledgeBase 模型对齐服务器数据
- Info.plist 补充 CFBundleIdentifier + ATS
- 新增缺口分析文档 gap-analysis-1/2.md
2026-05-12 17:08:27 +08:00
fb95c27340
refactor: 重构架构,接入线上 API 并修复编译错误
...
- 删除旧 ViewModel/Repository/Storage 层,简化架构
- 新增网络层:APIClient、APIConfig、APIError
- 新增数据模型层:APIModels(含 20+ DTO)
- 新增服务层:APIService(含 8 个业务服务类)
- 各页面内联组件定义,消除跨文件依赖
- 修复 ZXQuickAction、ZXAIInteractionRow、ZXWeakRow 缺失
- 修复 ZXTabBtn 参数标签缺失
- 配置 ATS 例外允许 HTTP 请求
- API 地址指向线上服务器 81.70.187.179:3001
2026-05-11 17:27:56 +08:00
7066200b7b
feat: MVVM 架构、全套 UI 页面、浅深色主题、本地持久化、等待名单、AI 动效
...
- 架构层:ViewModel/ObservableObject、Service/Repository、网络层 APIClient/APIEndpoint/APIError
- 设计系统:Color(light:dark:) 自适应 28 色 Token、ColorSchemeManager 深浅色切换
- 全页面:AI 对话/反馈/回忆/薄弱点、知识库 CRUD、学习工作台、复习计划、学习分析、个人中心/设置
- 登录与引导:Sign in with Apple、AppSession 状态管理、引导流程、演示模式
- 本地持久化:FileCache + PersistenceController(学习任务/复习任务/学习记录)
- 本地化:zh-Hans Localizable.strings ~120 条、ZXStrings 程序化引用、LanguageManager
- 组件库:ZXTabBar/ZXBackHeader/ZXSTaskRow/ZXChartView/ZXTypingIndicator 等 22 个共享组件
- 等待名单:WaitlistView 邮箱收集表单
- 动效:ZXTypingIndicator AI 打字动画、ZXShimmerModifier 骨架屏
- 测试:StudyHomeViewModel/AIChatViewModel/ReviewPlanViewModel/FileCache 共 28 条
- Dynamic Type 支持 + 范围限制
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 22:22:50 +08:00
b2795fe64b
feat: iOS app - design tokens, 22 pages, navigation, onboarding
2026-05-09 11:18:35 +08:00
5f1930be40
feat: init AIStudyApp iOS project
...
- SwiftUI App
- Basic project structure
- Assets configuration
2026-05-04 16:12:51 +08:00