feat(composer): context chip previews with inline comment editing

Hovering (or tapping) a context chip opens a stacked preview of its
pending items above the composer: numbered entries with a muted header
band, the captured selection, and the user's comment, which can be
edited in place (save/cancel) or removed before sending. The chips
component now subscribes to the draft store itself; the per-kind count
plumbing in ChatInput is gone.
This commit is contained in:
Bohdan Triapitsyn
2026-08-24 00:16:26 +03:00
parent c3f89e0106
commit 538b532fb1
13 changed files with 388 additions and 190 deletions
+4
View File
@@ -11,6 +11,10 @@ export const dict: Record<I18nKey, string> = {
'chat.message.context.chatQuote': 'Цитата з попереднього повідомлення',
'chat.chatInput.chatQuoteContext': 'Цитати з чату',
'chat.chatInput.chatQuoteContextRemove': 'Прибрати цитати з чату',
'chat.chatInput.contextPreview.selectedLabel': 'Виділений текст',
'chat.chatInput.contextPreview.commentLabel': 'Коментар користувача',
'chat.chatInput.contextPreview.edit': 'Редагувати коментар',
'chat.chatInput.contextPreview.remove': 'Прибрати',
'chat.message.context.browserAnnotation': 'Анотація браузера ({page})',
'chat.message.context.prComment': 'Коментар PR GitHub ({label})',
'chat.message.context.prCheck': 'Невдала перевірка PR GitHub ({label})',