Files
endorphin-tessera-gui/docs/student-grades-demo.md
codex-bot 3a4a91d5b6
Verify Tessera GUI / verify (push) Failing after 2m35s
example: add interactive Endor student grades center
2026-10-24 23:50:53 +08:00

35 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 学生成绩管理中心测试页
源码:[student-grades.endor](../examples/student-grades.endor)。
在 Tessera 按 F12 打开 Console,点击 `>` 输入位置,粘贴完整源码后按 Enter。
源码创建并渲染一个独立的「学生成绩管理中心」Page,不替换其他页面。
该示例使用 6 位虚构学生的内存对象,展示语文、数学、英语和复核状态。
它验证 Endor 类、原生 Column 子类的测量、自定义绘制、字段绑定、事件和
同一对象在筛选前后的共享状态。关闭应用后数据不会保存。
## 已完成的原生检查
- 通过原生 Console 粘贴完整源码并按 Enter,成功出现成绩页标签和 6 行数据。
- 「查看复核记录」切换为林沐的一行复核记录。
- 「录入复核成绩」执行示例中预设的复核结果:数学 58 → 68、状态改为已复核、待复核 1 → 0。
- 「全部学生」恢复 6 行,林沐的 68 分和已复核状态保留。
- 「恢复示例数据」恢复 58 分、待复核状态和计数 1。
这是交互测试示例,复核按钮应用预设结果,不是通用成绩录入表单;没有
文件存储、通用校验、导入导出、真实学校数据或完整 CRUD 的实现声明。
## 录制结果
尝试了 macOS screencapture 的窗口录像与限定区域录像,均返回 capture error。
随后尝试 QuickTime「新建录屏」,没有成功出现可操作的录制界面;直接打开
系统录屏工具也超时。因此没有成功生成连续录屏,不把截图当作录屏交付。
原生操作关键截图保存在本次会话的 /private/tmp/endor-grades-demo/:
01-endor-input.png、02-rendered.png、03-filtered.png、04-reviewed.png、
05-all-reviewed.png、06-reset.png。
本次仅新增示例和此说明,未修改渲染器。以实际 Console 执行和原生点击
作为验证;未运行 cargo test、自动化 smoke 脚本,也未因纯示例新增而重复构建。