feat: 完善 AI 对话、每日作息与课件目录体验

新增持久化对话、追问卡片和轮次导航;支持每日子时间表、切换保留课程与自动课间;完善课件逐层目录、学期周次同步及两端自适应。同步迁移、文档和回归截图。

验证:后端 262/262、AI 55 项、Web 81/81、桌面 71/71、授权 23 项;构建、类型、Lint 与文档检查通过。
This commit is contained in:
LoveChengke committed 2026-11-08 09:07:10 +08:00
1 parent cdb64c5499
commit 9351203deb
59 files changed
+1277 -149

No files matched your search

+43
View File
@@ -319,6 +319,49 @@ module.exports = async function runAssistantChecks({ win, target, record, waitFo
await win.webContents.executeJavaScript(`document.querySelector('.ch-guide [data-action=skip]').click()`);
assert(await waitFor(win, `!document.querySelector('.ch-guide')`));
record('共享日历支持深色与150%关怀模式,全屏引导在390px小屏无横向溢出', true);
for (const [width, height] of [
[360, 800],
[768, 1024],
[1366, 768],
[1920, 1080],
]) {
win.setContentSize(width, height);
for (const route of [
'assistant',
'courseware',
'term-weeks',
'plan-editor',
'dashboard',
'classes',
'students',
'teachers',
'promotion',
'archives',
'homeworks',
'notifications',
'grades',
'ai-settings',
'database',
'permissions',
'clients',
'system-settings',
]) {
await win.loadURL(origin + '/' + route);
assert(
await waitFor(
win,
`location.pathname === ${JSON.stringify('/' + route)} && Boolean(document.querySelector('.page, .page-container'))`,
),
);
await new Promise((resolve) => setTimeout(resolve, 100));
assert(
await waitFor(win, `document.documentElement.scrollWidth<=innerWidth+1`),
route + ' 页面溢出 ' + width,
);
}
await screenshot('responsive-' + width);
}
record('全部Web业务页面在360/768/1366/1920宽度无页面横向溢出', true);
} catch (error) {
record('AI 与共享控件隔离界面验收', false, error.stack || error.message);
} finally {