Skip to content

Commit 8bac6ff

Browse files
committed
feat: add review defaults recommendations and comment modal
Track current and recommended review defaults separately so users can restore suggested prompt templates when needed. Add UI state and helpers for managing todo comment modal drafts and comment selection.feat: add review defaults recommendations and comment modal Track current and recommended review defaults separately so users can restore suggested prompt templates when needed. Add UI state and helpers for managing todo comment modal drafts and comment selection.
1 parent 1963e04 commit 8bac6ff

21 files changed

Lines changed: 667 additions & 11368 deletions

media/cockpitWebview.js

Lines changed: 454 additions & 32 deletions
Large diffs are not rendered by default.

media/cockpitWebviewDomRefs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,14 @@ export function createSchedulerWebviewDomRefs(document) {
239239
approvalModeNote: document.getElementById("settings-approval-mode-note"),
240240
needsBotReviewCommentTemplateInput: document.getElementById("needs-bot-review-comment-template-input"),
241241
needsBotReviewPromptTemplateInput: document.getElementById("needs-bot-review-prompt-template-input"),
242+
needsBotReviewPromptStatus: document.getElementById("needs-bot-review-prompt-status"),
243+
needsBotReviewPromptRecommendedBtn: document.getElementById("needs-bot-review-prompt-recommended-btn"),
242244
needsBotReviewAgentSelect: document.getElementById("needs-bot-review-agent-select"),
243245
needsBotReviewModelSelect: document.getElementById("needs-bot-review-model-select"),
244246
needsBotReviewChatSessionSelect: document.getElementById("needs-bot-review-chat-session-select"),
245247
readyPromptTemplateInput: document.getElementById("ready-prompt-template-input"),
248+
readyPromptStatus: document.getElementById("ready-prompt-status"),
249+
readyPromptRecommendedBtn: document.getElementById("ready-prompt-recommended-btn"),
246250
reviewDefaultsSaveBtn: document.getElementById("review-defaults-save-btn"),
247251
reviewDefaultsNote: document.getElementById("review-defaults-note"),
248252
settingsStorageModeSelect: document.getElementById("settings-storage-mode-select"),

0 commit comments

Comments
 (0)