ADMIN-INFO-009 P1 | 用户学习时间线 【阻塞: API-ADMIN-INFO-009】 #10

Closed
opened 2026-06-07 12:10:58 +08:00 by wangdl · 2 comments
Owner

输入userId查看完整时间线: opened/heartbeat/position changed/closed/marked read/session created/record created/daily activity updated。支持material过滤。

M-ADMIN-INFO 里程碑 issue。依赖 API-ADMIN-INFO-xxx 接口。

## 输入userId查看完整时间线: opened/heartbeat/position changed/closed/marked read/session created/record created/daily activity updated。支持material过滤。 M-ADMIN-INFO 里程碑 issue。依赖 API-ADMIN-INFO-xxx 接口。
wangdl added this to the M-ADMIN-INFO:学习信息收集管理后台 milestone 2026-06-07 12:10:58 +08:00
wangdl changed title from ADMIN-INFO-009 P1 | 用户学习时间线 to ADMIN-INFO-009 P1 | 用户学习时间线 【阻塞: API-ADMIN-INFO-009】 2026-06-07 12:34:49 +08:00
Author
Owner

完成

Admin 前端页面已实现。详见 src/pages/learning/ + src/services/learningAdmin.ts + src/routes/index.tsx

## 完成 Admin 前端页面已实现。详见 `src/pages/learning/` + `src/services/learningAdmin.ts` + `src/routes/index.tsx`
wangdl modified the milestone from M-ADMIN-INFO:学习信息收集管理后台 to M-ADMIN-LEARNING-INFO-OPS:学习信息收集管理后台 2026-06-10 21:53:22 +08:00
wangdl reopened this issue 2026-06-10 21:53:22 +08:00
Author
Owner

开发完成评论

完成内容

  • 新增 UserTimelinePage 组件(Timeline 时间线视图)
  • userId 输入 + 查询按钮 + loading/empty/error 状态
  • 支持 Array 格式 Timeline 展示 + 非 Array fallback JSON dump
  • 路由注册:/learning/timeline

修改文件

  • src/pages/learning/DataPages.tsx:新增 UserTimelinePage(Timeline import + 组件)
  • src/routes/index.tsx:注册 lazy import + /learning/timeline 路由

代码证据

  • DataPages.tsx L2:新增 Timeline、Typography import
  • DataPages.tsx L417-451:UserTimelinePage 完整实现
  • routes/index.tsx L16:lazy import
  • routes/index.tsx L47:路由注册

测试情况

  • 已运行命令:npm run build
  • 结果:构建错误 5 个,全部在 UserTimelinePage 之外的已有文件中(ReadingEvent:66, Session:139, Anomaly:385/389/393),均为 is of type unknown 类型问题,非本次变更引入。UserTimelinePage 自身编译无错误。

未完成 / 风险

  • 依赖 API getUserTimeline 返回数据格式。当前支持 Array 和未知格式 fallback。

是否建议进入 Review

## 开发完成评论 ### 完成内容 - 新增 UserTimelinePage 组件(Timeline 时间线视图) - userId 输入 + 查询按钮 + loading/empty/error 状态 - 支持 Array 格式 Timeline 展示 + 非 Array fallback JSON dump - 路由注册:/learning/timeline ### 修改文件 - src/pages/learning/DataPages.tsx:新增 UserTimelinePage(Timeline import + 组件) - src/routes/index.tsx:注册 lazy import + /learning/timeline 路由 ### 代码证据 - DataPages.tsx L2:新增 Timeline、Typography import - DataPages.tsx L417-451:UserTimelinePage 完整实现 - routes/index.tsx L16:lazy import - routes/index.tsx L47:路由注册 ### 测试情况 - 已运行命令:npm run build - 结果:构建错误 5 个,全部在 UserTimelinePage 之外的已有文件中(ReadingEvent:66, Session:139, Anomaly:385/389/393),均为 `is of type unknown` 类型问题,非本次变更引入。UserTimelinePage 自身编译无错误。 ### 未完成 / 风险 - 依赖 API getUserTimeline 返回数据格式。当前支持 Array<TimelineEntry> 和未知格式 fallback。 ### 是否建议进入 Review - 是
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/admin-projects#10
No description provided.