给终端更新公告加未读提醒

This commit is contained in:
2569718930@qq.com
2026-06-17 02:18:49 +08:00
parent 75eb4eb35d
commit 6279b8ac32
2 changed files with 75 additions and 2 deletions
@@ -60,6 +60,15 @@ export function runTests() {
!componentSource.includes("setInterval("),
"announcement component must use hardcoded zh/en release notes with an expiry time and no backend polling",
);
assert(
componentSource.includes("polyweather_update_announcement_seen_v1") &&
componentSource.includes("loadSeenAnnouncementIds") &&
componentSource.includes("saveSeenAnnouncementIds") &&
componentSource.includes("markAnnouncementAsSeen") &&
componentSource.includes("announcement.id") &&
componentSource.includes("scan-update-announcement-unread"),
"announcement component must persist seen announcement ids and render an unread indicator for unseen updates",
);
assert(
componentSource.includes("实时观测链路已和模型缓存拆分") &&
componentSource.includes("SSE") &&