fix(ui): label GitLab merge requests as MR in the composer
This commit is contained in:
@@ -686,6 +686,7 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
||||
instructionsText: string;
|
||||
contextText: string;
|
||||
author?: { login: string; avatarUrl?: string };
|
||||
provider?: 'github' | 'gitlab';
|
||||
} | null>(null);
|
||||
|
||||
// Message queue
|
||||
@@ -2565,7 +2566,11 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
||||
) : null}
|
||||
{linkedPr && !isVSCode ? (
|
||||
<LinkedReferenceRow
|
||||
numberLabel={t('chat.chatInput.linked.pr.number', { number: linkedPr.number })}
|
||||
numberLabel={
|
||||
linkedPr.provider === 'gitlab'
|
||||
? t('chat.chatInput.linked.mr.number', { number: linkedPr.number })
|
||||
: t('chat.chatInput.linked.pr.number', { number: linkedPr.number })
|
||||
}
|
||||
title={linkedPr.title}
|
||||
url={linkedPr.url}
|
||||
author={linkedPr.author}
|
||||
@@ -2905,7 +2910,7 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
||||
open={gitlabMrPickerOpen}
|
||||
onOpenChange={setGitlabMrPickerOpen}
|
||||
onSelect={(pr) => {
|
||||
setLinkedPr(pr);
|
||||
setLinkedPr({ ...pr, provider: 'gitlab' as const });
|
||||
setLinkedIssue(null);
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -2082,6 +2082,7 @@ export const dict = {
|
||||
'chat.chatInput.linked.byAuthor': 'von {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': 'Issue im Browser öffnen',
|
||||
'chat.chatInput.linked.issue.removeAria': 'Verknüpftes Issue entfernen',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': 'Pull Request im Browser öffnen',
|
||||
'chat.chatInput.linked.pr.removeAria': 'Verknüpften Pull Request entfernen',
|
||||
|
||||
@@ -2296,6 +2296,7 @@ export const dict = {
|
||||
'chat.chatInput.linked.byAuthor': 'by {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': 'Open issue in browser',
|
||||
'chat.chatInput.linked.issue.removeAria': 'Remove linked issue',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': 'Open pull request in browser',
|
||||
'chat.chatInput.linked.pr.removeAria': 'Remove linked pull request',
|
||||
|
||||
@@ -2274,6 +2274,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.linked.byAuthor": "por {author}",
|
||||
"chat.chatInput.linked.issue.openInBrowserAria": "Abrir issue en el navegador",
|
||||
"chat.chatInput.linked.issue.removeAria": "Eliminar issue vinculado",
|
||||
"chat.chatInput.linked.mr.number": "MR !{number}",
|
||||
"chat.chatInput.linked.pr.number": "PR #{number}",
|
||||
"chat.chatInput.linked.pr.openInBrowserAria": "Abrir PR en el navegador",
|
||||
"chat.chatInput.linked.pr.removeAria": "Eliminar PR vinculada",
|
||||
|
||||
@@ -2017,6 +2017,7 @@ export const dict = {
|
||||
'chat.chatInput.linked.byAuthor': 'par {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': 'Problème ouvert dans le navigateur',
|
||||
'chat.chatInput.linked.issue.removeAria': 'Supprimer le problème lié',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': 'Ouvrir la demande d\'extraction dans le navigateur',
|
||||
'chat.chatInput.linked.pr.removeAria': 'Supprimer la demande d\'extraction liée',
|
||||
|
||||
@@ -2292,6 +2292,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.linked.byAuthor': '{author}による',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': 'ブラウザでIssueを開く',
|
||||
'chat.chatInput.linked.issue.removeAria': 'リンクされたIssueを削除',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': 'ブラウザでプルリクエストを開く',
|
||||
'chat.chatInput.linked.pr.removeAria': 'リンクされたプルリクエストを削除',
|
||||
|
||||
@@ -2296,6 +2296,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.linked.byAuthor': '작성자: {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': '브라우저에서 이슈 열기',
|
||||
'chat.chatInput.linked.issue.removeAria': '연결된 이슈 제거',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': '브라우저에서 PR 열기',
|
||||
'chat.chatInput.linked.pr.removeAria': '연결된 PR 제거',
|
||||
|
||||
@@ -1222,6 +1222,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.linked.byAuthor': 'by {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': 'Otwórz zgłoszenie w przeglądarce',
|
||||
'chat.chatInput.linked.issue.removeAria': 'Usuń powiązane zgłoszenie',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': 'Otwórz pull request w przeglądarce',
|
||||
'chat.chatInput.linked.pr.removeAria': 'Usuń powiązany pull request',
|
||||
|
||||
@@ -2274,6 +2274,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.linked.byAuthor": "por {author}",
|
||||
"chat.chatInput.linked.issue.openInBrowserAria": "Abrir issue no navegador",
|
||||
"chat.chatInput.linked.issue.removeAria": "Excluir issue vinculado",
|
||||
"chat.chatInput.linked.mr.number": "MR !{number}",
|
||||
"chat.chatInput.linked.pr.number": "PR #{number}",
|
||||
"chat.chatInput.linked.pr.openInBrowserAria": "Abrir PR no navegador",
|
||||
"chat.chatInput.linked.pr.removeAria": "Excluir PR vinculada",
|
||||
|
||||
@@ -2274,6 +2274,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.chatInput.linked.byAuthor": "за {author}",
|
||||
"chat.chatInput.linked.issue.openInBrowserAria": "Відкрити issue в браузері",
|
||||
"chat.chatInput.linked.issue.removeAria": "Видалити пов’язану issue",
|
||||
"chat.chatInput.linked.mr.number": "MR !{number}",
|
||||
"chat.chatInput.linked.pr.number": "PR #{number}",
|
||||
"chat.chatInput.linked.pr.openInBrowserAria": "Відкрити PR в браузері",
|
||||
"chat.chatInput.linked.pr.removeAria": "Видалити пов’язаний PR",
|
||||
|
||||
@@ -2262,6 +2262,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.linked.byAuthor': '由 {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': '在浏览器中打开 Issue',
|
||||
'chat.chatInput.linked.issue.removeAria': '移除已关联的 Issue',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': '在浏览器中打开 Pull Request',
|
||||
'chat.chatInput.linked.pr.removeAria': '移除已关联的 Pull Request',
|
||||
|
||||
@@ -2266,6 +2266,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.chatInput.linked.byAuthor': '由 {author}',
|
||||
'chat.chatInput.linked.issue.openInBrowserAria': '在瀏覽器中開啟 Issue',
|
||||
'chat.chatInput.linked.issue.removeAria': '移除已關聯的 Issue',
|
||||
'chat.chatInput.linked.mr.number': 'MR !{number}',
|
||||
'chat.chatInput.linked.pr.number': 'PR #{number}',
|
||||
'chat.chatInput.linked.pr.openInBrowserAria': '在瀏覽器中開啟 Pull Request',
|
||||
'chat.chatInput.linked.pr.removeAria': '移除已關聯的 Pull Request',
|
||||
|
||||
Reference in New Issue
Block a user