diff --git a/apps/web/tests/expected/schedule-recommendations-en.expected.md b/apps/web/tests/expected/schedule-recommendations-en.expected.md index 57a00d021e..b11eeadea2 100644 --- a/apps/web/tests/expected/schedule-recommendations-en.expected.md +++ b/apps/web/tests/expected/schedule-recommendations-en.expected.md @@ -3,6 +3,8 @@ - list: - listitem: - button "Daily brief": Daily brief Recent changes in the workspace and what needs follow-up, with what to do first today. Weekdays at 9:00 + - listitem: + - button "Weekly review": Weekly review This week's changes in the workspace, with loose ends and what to do first next week. Fridays at {{clock}} - listitem: - button "Issue scan": Issue scan Sort new issues into bugs, requests, and questions, and flag duplicates and ones that need a reply. Weekdays at {{clock}} - listitem: diff --git a/apps/web/tests/expected/schedule-recommendations-zh.expected.md b/apps/web/tests/expected/schedule-recommendations-zh.expected.md index 68c90f0426..f4d7e76203 100644 --- a/apps/web/tests/expected/schedule-recommendations-zh.expected.md +++ b/apps/web/tests/expected/schedule-recommendations-zh.expected.md @@ -3,6 +3,8 @@ - list: - listitem: - button "每日简报": 每日简报 汇总工作区最近的变化和待跟进的事,列出今天先做什么。 工作日 9:00 + - listitem: + - button "每周回顾": 每周回顾 回顾这周工作区的变化,列出没收尾的事和下周先做什么。 周五 {{clock}} - listitem: - button "Issue 扫描": Issue 扫描 把新开的 issue 分成 bug、需求、提问,标出重复的和需要回复的。 工作日 {{clock}} - listitem: diff --git a/apps/web/tests/schedule-manual.e2e.ts b/apps/web/tests/schedule-manual.e2e.ts index abf438f7e8..46b52df29f 100644 --- a/apps/web/tests/schedule-manual.e2e.ts +++ b/apps/web/tests/schedule-manual.e2e.ts @@ -71,7 +71,7 @@ it.each([ const recommendations = manager.getByRole('region', { name: copy.heading, exact: true }) const recommendation = recommendations.getByRole('button', { name: copy.title, exact: true }) await recommendation.waitFor() - expect(await recommendations.getByRole('button').count()).toBe(7) + expect(await recommendations.getByRole('button').count()).toBe(8) if (draft === '') { expect(await recommendationColumns(recommendations)).toBe(2) await compareOrRefreshGolden( diff --git a/packages/client/ui-schedule/README.i18n.yaml b/packages/client/ui-schedule/README.i18n.yaml index 3745e445aa..e851c470e1 100644 --- a/packages/client/ui-schedule/README.i18n.yaml +++ b/packages/client/ui-schedule/README.i18n.yaml @@ -15,8 +15,8 @@ en: d152484eb41ac6b4 zh: 405b30feaf48c087 /deepseek-ai-dsh-client-ui-schedule/use-this-package: - en: ff9e353f9330cf8d - zh: 61b0656261a69d4d + en: ac56ad367cd6624f + zh: 47642dc177dd0b58 /deepseek-ai-dsh-client-ui-schedule/use-this-package/time-zone-data-source: en: 4005b800e930f581 zh: ccb9318dad7f7e8f diff --git a/packages/client/ui-schedule/README.md b/packages/client/ui-schedule/README.md index b313e1e810..0776f904f4 100644 --- a/packages/client/ui-schedule/README.md +++ b/packages/client/ui-schedule/README.md @@ -27,7 +27,7 @@ The Automation tasks page and right Sidebar task tab use the same editor for tas Below 768px, the task list uses 20px horizontal insets, matching the Plugins page. -The shipped Web composition mounts `ui-schedule` with Host Schedule. The Automation tasks sidebar entry opens the task list without selecting or activating a Session. New and the adjacent menu's Create in a session action both open a new conversation with a short task-creation prompt in the current UI language, ready for the user to complete and send. When a blank conversation is reused, the prompt is appended on a new line, preserving its text, inline references, and attachments. The same menu offers Create manually. Manual creation opens the same editor as an existing task, validates required fields, and saves a task without starting an Agent or sending the instruction. A failed request leaves the form and its values visible. The empty state shows a decorative document-and-clock illustration whose colors follow the theme. Below the empty Enabled and All views, seven built-in recommended tasks appear in two columns, each with a glyph, title, description, and default run time. Choosing one opens a new conversation with that task's request prefilled in the same way. Each glyph tile takes the empty-state artwork's background color, and its glyph is drawn in blue with a light blue fill. +The shipped Web composition mounts `ui-schedule` with Host Schedule. The Automation tasks sidebar entry opens the task list without selecting or activating a Session. New and the adjacent menu's Create in a session action both open a new conversation with a short task-creation prompt in the current UI language, ready for the user to complete and send. When a blank conversation is reused, the prompt is appended on a new line, preserving its text, inline references, and attachments. The same menu offers Create manually. Manual creation opens the same editor as an existing task, validates required fields, and saves a task without starting an Agent or sending the instruction. A failed request leaves the form and its values visible. The empty state shows a decorative document-and-clock illustration whose colors follow the theme. Below the empty Enabled and All views, eight built-in recommended tasks appear in two columns, each with a glyph, title, description, and default run time. Choosing one opens a new conversation with that task's request prefilled in the same way. Each glyph tile takes the empty-state artwork's background color, and its glyph is drawn in blue with a light blue fill. Enabled, Paused, Ended, and All filters combine with text search over the title, prompt, and linked Session id; the page starts on Enabled. The search-row menu clears all ended tasks after confirmation, preserving active and paused tasks. Selecting a task opens its editable Rules / Records page. Save is enabled only for valid, meaningful changes and sends only changed fields with `expectedUpdatedAt`, or `null` when no stored revision exists. The fields stay editable after saving. Unsaved drafts survive navigation between tasks and away from the page. A conflict retains the whole draft and disables Save. Review with my edits reapplies the changed field groups to the latest values for review before saving; Discard replaces the draft with the latest stored values. For a new task, Discard closes the editor. Late responses cannot change another task's detail. Coarse-pointer search, instruction, and timing fields use 16px text to prevent focus zoom on iOS Safari. diff --git a/packages/client/ui-schedule/README.zh.md b/packages/client/ui-schedule/README.zh.md index 3e108eb805..775887d4e7 100644 --- a/packages/client/ui-schedule/README.zh.md +++ b/packages/client/ui-schedule/README.zh.md @@ -27,7 +27,7 @@ kind: "package-reference" 宽度小于 768px 时,任务列表使用 20px 的左右内边距,与插件页一致。 -发布的 Web 组合将 `ui-schedule` 与宿主 Schedule 一起挂载。自动化任务侧栏入口打开任务列表,不选择或激活会话。“新建”和相邻菜单的“在会话中创建”都会进入新会话,按当前界面语言预填简短的任务创建提示,供用户补充并发送。若复用空白会话,提示会另起一行追加,保留原有文本、行内引用和附件。该菜单还提供“手动创建”。手动创建与已有任务打开同一编辑页,校验必填项并保存任务,不启动 Agent 或发送指令。请求失败时保留表单和已填内容。空态显示装饰性的文档与时钟插图,其颜色随主题变化。“已开启”和“全部”的空态下方以两列列出七个内置推荐任务,每项显示图标、标题、说明和默认运行时间。点击其中一项会同样进入新会话,并预填该任务的请求。推荐图标块使用空态插图的背景色,图标为蓝色线条加浅蓝填充。 +发布的 Web 组合将 `ui-schedule` 与宿主 Schedule 一起挂载。自动化任务侧栏入口打开任务列表,不选择或激活会话。“新建”和相邻菜单的“在会话中创建”都会进入新会话,按当前界面语言预填简短的任务创建提示,供用户补充并发送。若复用空白会话,提示会另起一行追加,保留原有文本、行内引用和附件。该菜单还提供“手动创建”。手动创建与已有任务打开同一编辑页,校验必填项并保存任务,不启动 Agent 或发送指令。请求失败时保留表单和已填内容。空态显示装饰性的文档与时钟插图,其颜色随主题变化。“已开启”和“全部”的空态下方以两列列出八个内置推荐任务,每项显示图标、标题、说明和默认运行时间。点击其中一项会同样进入新会话,并预填该任务的请求。推荐图标块使用空态插图的背景色,图标为蓝色线条加浅蓝填充。 “已开启”“已暂停”“已结束”“全部”筛选结合标题、指令和关联会话 id 搜索,默认显示已开启任务。搜索行菜单在确认后清除全部已结束任务,保留已开启和已暂停任务。选择任务直接打开可编辑的“规则 / 任务运行记录”页面。只有字段有效且有实际修改时才能保存;保存只发送变更字段及 `expectedUpdatedAt`,存储版本缺失时发送 `null`。保存后字段保持可编辑。切换任务或离开页面时保留未保存的草稿。冲突保留整份草稿并禁用保存。“保留修改并复核”将改过的字段组应用到最新值,供保存前复核;“放弃”用最新存储值替换草稿。对于新任务,“放弃”关闭编辑页。迟到响应不会改变其他任务详情。粗指针设备的搜索、指令和时间字段使用 16px 字号,避免 iOS Safari 聚焦时缩放。 diff --git a/packages/client/ui-schedule/src/client/RecommendationArtwork.tsx b/packages/client/ui-schedule/src/client/RecommendationArtwork.tsx index 909ec2f016..0c5ad0ebde 100644 --- a/packages/client/ui-schedule/src/client/RecommendationArtwork.tsx +++ b/packages/client/ui-schedule/src/client/RecommendationArtwork.tsx @@ -38,6 +38,23 @@ export function SunriseGlyph(props: TileGlyphProps): ReactNode { ) } +/** + * Calendar page with a check: a week in review. + * @param props - class of the root SVG. + * @returns the glyph. + */ +export function CalendarCheckGlyph(props: TileGlyphProps): ReactNode { + return ( + + + + + + + + ) +} + /** * Open-issue mark: a ring with a center dot. * @param props - class of the root SVG. diff --git a/packages/client/ui-schedule/src/client/ScheduleRecommendations.tsx b/packages/client/ui-schedule/src/client/ScheduleRecommendations.tsx index b130a538a4..8f3accdd29 100644 --- a/packages/client/ui-schedule/src/client/ScheduleRecommendations.tsx +++ b/packages/client/ui-schedule/src/client/ScheduleRecommendations.tsx @@ -3,13 +3,14 @@ import { useId, type ReactNode } from 'react' import { Button, IconClockOutlineRegular, IconPlusOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives' import type { TaskManagerKey } from './task-manager-locales.ts' import { - BranchGlyph, CloudSunGlyph, DumbbellGlyph, IssueGlyph, NewspaperGlyph, PluginCheckGlyph, + BranchGlyph, CalendarCheckGlyph, CloudSunGlyph, DumbbellGlyph, IssueGlyph, NewspaperGlyph, PluginCheckGlyph, SunriseGlyph, type TileGlyphProps, } from './RecommendationArtwork.tsx' import css from './TaskManagerPage.module.css' const RECOMMENDATIONS = [ { id: 'dailyBrief', Glyph: SunriseGlyph }, + { id: 'weeklyReview', Glyph: CalendarCheckGlyph }, { id: 'issueScan', Glyph: IssueGlyph }, { id: 'pluginCompat', Glyph: PluginCheckGlyph }, { id: 'topicTracking', Glyph: NewspaperGlyph }, diff --git a/packages/client/ui-schedule/src/client/recommendation-locales.ts b/packages/client/ui-schedule/src/client/recommendation-locales.ts index ec965a647a..ab52e0392c 100644 --- a/packages/client/ui-schedule/src/client/recommendation-locales.ts +++ b/packages/client/ui-schedule/src/client/recommendation-locales.ts @@ -7,6 +7,10 @@ export const recommendationEn = { 'recommend.dailyBrief.description': 'Recent changes in the workspace and what needs follow-up, with what to do first today.', 'recommend.dailyBrief.schedule': 'Weekdays at 9:00', 'recommend.dailyBrief.prompt': 'Create an automation task named "Daily brief": every weekday at 9:00, review the last 24 hours of changes in the current workspace and list what needs my follow-up and what to do first today; when the workspace is a code repository, also cover new commits, pull requests awaiting my review, and failing CI.', + 'recommend.weeklyReview.title': 'Weekly review', + 'recommend.weeklyReview.description': 'This week\'s changes in the workspace, with loose ends and what to do first next week.', + 'recommend.weeklyReview.schedule': 'Fridays at 16:00', + 'recommend.weeklyReview.prompt': 'Create an automation task named "Weekly review": every Friday at 16:00, review this week\'s changes in the current workspace, summarize what got done, and list what is still unfinished and what to do first next week; when the workspace is a code repository, also cover this week\'s commits, merged pull requests, and pull requests still open. Summarize here only; do not change files in the workspace.', 'recommend.issueScan.title': 'Issue scan', 'recommend.issueScan.description': 'Sort new issues into bugs, requests, and questions, and flag duplicates and ones that need a reply.', 'recommend.issueScan.schedule': 'Weekdays at 10:00', @@ -40,6 +44,10 @@ export const recommendationZh: Record = { 'recommend.dailyBrief.description': '汇总工作区最近的变化和待跟进的事,列出今天先做什么。', 'recommend.dailyBrief.schedule': '工作日 9:00', 'recommend.dailyBrief.prompt': '创建一个名为「每日简报」的自动化任务:每个工作日 9:00 查看当前工作区过去 24 小时的变化,列出需要我跟进的事和今天先做的事;工作区是代码仓库时,也看新提交、待我评审的 PR 和失败的 CI。', + 'recommend.weeklyReview.title': '每周回顾', + 'recommend.weeklyReview.description': '回顾这周工作区的变化,列出没收尾的事和下周先做什么。', + 'recommend.weeklyReview.schedule': '周五 16:00', + 'recommend.weeklyReview.prompt': '创建一个名为「每周回顾」的自动化任务:每周五 16:00 回顾当前工作区这一周的变化,总结这周做了什么,列出还没收尾的事和下周先做的事;工作区是代码仓库时,也看这周的提交、合入的 PR 和还开着的 PR。只在这里汇总,不改工作区里的文件。', 'recommend.issueScan.title': 'Issue 扫描', 'recommend.issueScan.description': '把新开的 issue 分成 bug、需求、提问,标出重复的和需要回复的。', 'recommend.issueScan.schedule': '工作日 10:00', @@ -73,6 +81,10 @@ export const recommendationJa: Record = { 'recommend.dailyBrief.description': 'ワークスペースの最近の変化とフォローが必要なことをまとめ、今日最初にやることを挙げます。', 'recommend.dailyBrief.schedule': '平日 9:00', 'recommend.dailyBrief.prompt': '「デイリーブリーフィング」という名前の自動化タスクを作成してください。平日は毎日 9:00 に、現在のワークスペースの過去24時間の変化を確認し、私がフォローすべきことと今日最初にやることを挙げてください。ワークスペースがコードリポジトリの場合は、新しいコミット、私のレビュー待ちのプルリクエスト、失敗した CI も確認してください。', + 'recommend.weeklyReview.title': '週次レビュー', + 'recommend.weeklyReview.description': '今週のワークスペースの変化を振り返り、やり残したことと来週最初にやることを挙げます。', + 'recommend.weeklyReview.schedule': '毎週金曜日 16:00', + 'recommend.weeklyReview.prompt': '「週次レビュー」という名前の自動化タスクを作成してください。毎週金曜日の 16:00 に、現在のワークスペースの今週の変化を振り返り、今週やったことをまとめて、まだ終わっていないことと来週最初にやることを挙げてください。ワークスペースがコードリポジトリの場合は、今週のコミット、マージされたプルリクエスト、まだオープンのプルリクエストも確認してください。まとめはここでだけ行い、ワークスペースのファイルは変更しないでください。', 'recommend.issueScan.title': 'Issue スキャン', 'recommend.issueScan.description': '新しい Issue をバグ・要望・質問に分類し、重複しているものと返信が必要なものを指摘します。', 'recommend.issueScan.schedule': '平日 10:00', @@ -106,6 +118,10 @@ export const recommendationEs: Record = { 'recommend.dailyBrief.description': 'Cambios recientes en el espacio de trabajo y pendientes de seguimiento, con lo primero que hacer hoy.', 'recommend.dailyBrief.schedule': 'De lunes a viernes a las 9:00', 'recommend.dailyBrief.prompt': 'Crea una tarea de automatización llamada «Resumen diario»: de lunes a viernes a las 9:00, revisa los cambios de las últimas 24 horas en el espacio de trabajo actual y enumera lo que requiere mi seguimiento y lo primero que debo hacer hoy; si el espacio de trabajo es un repositorio de código, incluye también los commits nuevos, los pull requests pendientes de mi revisión y los fallos de CI.', + 'recommend.weeklyReview.title': 'Revisión semanal', + 'recommend.weeklyReview.description': 'Cambios de la semana en el espacio de trabajo, con lo pendiente y lo primero que hacer la próxima semana.', + 'recommend.weeklyReview.schedule': 'Los viernes a las 16:00', + 'recommend.weeklyReview.prompt': 'Crea una tarea de automatización llamada «Revisión semanal»: todos los viernes a las 16:00, repasa los cambios de esta semana en el espacio de trabajo actual, resume lo que se hizo y enumera lo que queda pendiente y lo primero que debo hacer la próxima semana; si el espacio de trabajo es un repositorio de código, incluye también los commits de la semana, los pull requests fusionados y los que siguen abiertos. Haz el resumen solo aquí; no modifiques archivos del espacio de trabajo.', 'recommend.issueScan.title': 'Revisión de issues', 'recommend.issueScan.description': 'Clasifica los issues nuevos en bugs, solicitudes y preguntas, y señala los duplicados y los que necesitan respuesta.', 'recommend.issueScan.schedule': 'De lunes a viernes a las 10:00', @@ -139,6 +155,10 @@ export const recommendationFr: Record = { 'recommend.dailyBrief.description': 'Changements récents dans l\'espace de travail et points à suivre, avec les priorités du jour.', 'recommend.dailyBrief.schedule': 'Du lundi au vendredi à 9:00', 'recommend.dailyBrief.prompt': 'Crée une tâche d\'automatisation nommée « Résumé quotidien » : du lundi au vendredi à 9:00, passe en revue les changements des dernières 24 heures dans l\'espace de travail actuel et liste ce qui demande mon suivi et ce que je dois faire en premier aujourd\'hui ; si l\'espace de travail est un dépôt de code, couvre aussi les nouveaux commits, les pull requests en attente de ma revue et les échecs de CI.', + 'recommend.weeklyReview.title': 'Bilan hebdomadaire', + 'recommend.weeklyReview.description': 'Changements de la semaine dans l\'espace de travail, avec ce qui reste à terminer et les priorités de la semaine prochaine.', + 'recommend.weeklyReview.schedule': 'Le vendredi à 16:00', + 'recommend.weeklyReview.prompt': 'Crée une tâche d\'automatisation nommée « Bilan hebdomadaire » : tous les vendredis à 16:00, passe en revue les changements de la semaine dans l\'espace de travail actuel, résume ce qui a été fait et liste ce qui reste à terminer et ce que je dois faire en premier la semaine prochaine ; si l\'espace de travail est un dépôt de code, couvre aussi les commits de la semaine, les pull requests fusionnées et celles encore ouvertes. Fais le résumé ici uniquement ; ne modifie pas les fichiers de l\'espace de travail.', 'recommend.issueScan.title': 'Analyse des issues', 'recommend.issueScan.description': 'Trie les nouvelles issues en bugs, demandes et questions, et signale les doublons et celles qui nécessitent une réponse.', 'recommend.issueScan.schedule': 'Du lundi au vendredi à 10:00', @@ -172,6 +192,10 @@ export const recommendationDe: Record = { 'recommend.dailyBrief.description': 'Aktuelle Änderungen im Arbeitsbereich und offene Punkte, dazu, was heute zuerst ansteht.', 'recommend.dailyBrief.schedule': 'Mo–Fr um 9:00', 'recommend.dailyBrief.prompt': 'Erstelle eine Automatisierungsaufgabe namens „Tagesüberblick“: Prüfe montags bis freitags um 9:00 Uhr die Änderungen der letzten 24 Stunden im aktuellen Arbeitsbereich und liste auf, was ich nachverfolgen muss und was heute zuerst ansteht; ist der Arbeitsbereich ein Code-Repository, berücksichtige auch neue Commits, auf mein Review wartende Pull Requests und fehlgeschlagene CI-Läufe.', + 'recommend.weeklyReview.title': 'Wochenrückblick', + 'recommend.weeklyReview.description': 'Änderungen der Woche im Arbeitsbereich, dazu offene Punkte und was nächste Woche zuerst ansteht.', + 'recommend.weeklyReview.schedule': 'Freitags um 16:00', + 'recommend.weeklyReview.prompt': 'Erstelle eine Automatisierungsaufgabe namens „Wochenrückblick“: Blicke freitags um 16:00 Uhr auf die Änderungen dieser Woche im aktuellen Arbeitsbereich zurück, fasse zusammen, was erledigt wurde, und liste auf, was noch offen ist und was nächste Woche zuerst ansteht; ist der Arbeitsbereich ein Code-Repository, berücksichtige auch die Commits dieser Woche sowie gemergte und noch offene Pull Requests. Fasse alles nur hier zusammen; ändere keine Dateien im Arbeitsbereich.', 'recommend.issueScan.title': 'Issue-Sichtung', 'recommend.issueScan.description': 'Sortiert neue Issues in Bugs, Feature-Wünsche und Fragen und hebt Duplikate sowie Issues hervor, die eine Antwort brauchen.', 'recommend.issueScan.schedule': 'Mo–Fr um 10:00', @@ -205,6 +229,10 @@ export const recommendationRu: Record = { 'recommend.dailyBrief.description': 'Недавние изменения в рабочей области и то, что требует внимания, а также первоочередные дела на сегодня.', 'recommend.dailyBrief.schedule': 'По будням в 9:00', 'recommend.dailyBrief.prompt': 'Создай задачу автоматизации под названием «Ежедневная сводка»: по будням в 9:00 просматривай изменения в текущей рабочей области за последние 24 часа и перечисляй, что требует моего внимания и с чего начать сегодня; если рабочая область — репозиторий кода, учитывай также новые коммиты, пул-реквесты, ожидающие моего ревью, и сбои CI.', + 'recommend.weeklyReview.title': 'Еженедельный обзор', + 'recommend.weeklyReview.description': 'Изменения за неделю в рабочем пространстве, незавершённые дела и первоочередные задачи на следующую неделю.', + 'recommend.weeklyReview.schedule': 'По пятницам в 16:00', + 'recommend.weeklyReview.prompt': 'Создай задачу автоматизации под названием «Еженедельный обзор»: по пятницам в 16:00 просматривай изменения за эту неделю в текущем рабочем пространстве, подводи итог сделанного и перечисляй, что ещё не завершено и с чего начать на следующей неделе; если рабочее пространство — репозиторий кода, учитывай также коммиты за неделю, слитые и ещё открытые пул-реквесты. Сводку пиши только здесь; файлы в рабочем пространстве не меняй.', 'recommend.issueScan.title': 'Обзор issues', 'recommend.issueScan.description': 'Делит новые issues на баги, пожелания и вопросы и выделяет дубликаты и те, на которые нужно ответить.', 'recommend.issueScan.schedule': 'По будням в 10:00', @@ -238,6 +266,10 @@ export const recommendationPt: Record = { 'recommend.dailyBrief.description': 'Mudanças recentes no espaço de trabalho e o que precisa de acompanhamento, com o que fazer primeiro hoje.', 'recommend.dailyBrief.schedule': 'Segunda a sexta às 9:00', 'recommend.dailyBrief.prompt': 'Crie uma tarefa de automação chamada “Resumo diário”: de segunda a sexta às 9:00, revise as mudanças das últimas 24 horas no espaço de trabalho atual e liste o que precisa do meu acompanhamento e o que fazer primeiro hoje; se o espaço de trabalho for um repositório de código, inclua também os novos commits, os pull requests aguardando minha revisão e as falhas de CI.', + 'recommend.weeklyReview.title': 'Revisão semanal', + 'recommend.weeklyReview.description': 'Mudanças da semana no espaço de trabalho, com o que ficou pendente e o que fazer primeiro na próxima semana.', + 'recommend.weeklyReview.schedule': 'Sextas às 16:00', + 'recommend.weeklyReview.prompt': 'Crie uma tarefa de automação chamada “Revisão semanal”: toda sexta-feira às 16:00, revise as mudanças desta semana no espaço de trabalho atual, resuma o que foi feito e liste o que ainda está pendente e o que fazer primeiro na próxima semana; se o espaço de trabalho for um repositório de código, inclua também os commits da semana, os pull requests mesclados e os que continuam abertos. Faça o resumo só aqui; não altere arquivos do espaço de trabalho.', 'recommend.issueScan.title': 'Varredura de issues', 'recommend.issueScan.description': 'Classifica as novas issues em bugs, solicitações e perguntas e destaca as duplicadas e as que precisam de resposta.', 'recommend.issueScan.schedule': 'Segunda a sexta às 10:00', diff --git a/packages/client/ui-schedule/tests/browser-plugin.client.spec.ts b/packages/client/ui-schedule/tests/browser-plugin.client.spec.ts index b3a9ef6d76..acc5f78520 100644 --- a/packages/client/ui-schedule/tests/browser-plugin.client.spec.ts +++ b/packages/client/ui-schedule/tests/browser-plugin.client.spec.ts @@ -461,14 +461,14 @@ describe('ui-schedule browser half', () => { const panel = injectedFace(ctx.slots.entries('main')[0]!, undefined as never) as TaskManagerInjected for (const dictionary of Object.values(managerLocales)) { const prompts = Object.entries(dictionary).filter(([key]) => key.startsWith('recommend.') && key.endsWith('.prompt')) - expect(prompts).toHaveLength(7) + expect(prompts).toHaveLength(8) for (const [, prompt] of prompts) { expect(prompt).not.toContain('\n') panel.onUseRecommendation(prompt) expect(startSession).toHaveBeenLastCalledWith(undefined, { prompt, whenDraftExists: 'append' }) } } - expect(startSession).toHaveBeenCalledTimes(56) + expect(startSession).toHaveBeenCalledTimes(64) } finally { await fiber.dispose() owner() @@ -479,7 +479,7 @@ describe('ui-schedule browser half', () => { it('states each recommendation\'s shown run time in its request in every language', () => { for (const dictionary of Object.values(managerLocales)) { const schedules = Object.entries(dictionary).filter(([key]) => key.startsWith('recommend.') && key.endsWith('.schedule')) - expect(schedules).toHaveLength(7) + expect(schedules).toHaveLength(8) for (const [key, schedule] of schedules) { const times = schedule.match(/\d{1,2}:\d{2}/g) expect(times).toHaveLength(1) diff --git a/packages/client/ui-schedule/tests/task-manager-page.client.spec.tsx b/packages/client/ui-schedule/tests/task-manager-page.client.spec.tsx index 33eb9e2628..cc26dccb0d 100644 --- a/packages/client/ui-schedule/tests/task-manager-page.client.spec.tsx +++ b/packages/client/ui-schedule/tests/task-manager-page.client.spec.tsx @@ -840,8 +840,8 @@ describe('Task manager catalog', () => { expect(emptyNewTaskButton().textContent).toBe(en['empty.action']) }) - const RECOMMENDATION_IDS = ['dailyBrief', 'issueScan', 'pluginCompat', 'topicTracking', 'branchCleanup', - 'weather', 'workout'] as const + const RECOMMENDATION_IDS = ['dailyBrief', 'weeklyReview', 'issueScan', 'pluginCompat', 'topicTracking', + 'branchCleanup', 'weather', 'workout'] as const function recommendations(dictionary: Dictionary = en): HTMLElement | null { return screen.queryByRole('region', { name: dictionary['recommend.heading'] })