@gitlab/duo-ui 12.0.0 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/components/agentic_chat/agentic_duo_chat.js +1 -1
- package/dist/components/agentic_chat/web_agentic_duo_chat.js +1 -1
- package/dist/components/chat/components/duo_chat_header/duo_chat_header.js +31 -7
- package/dist/components/chat/components/duo_chat_header/web_duo_chat_header.js +32 -8
- package/dist/components/chat/components/duo_chat_message_tool_approval/components/run_command_tool_params.js +1 -1
- package/dist/components/chat/components/duo_chat_message_tool_approval/message_tool_approval.js +5 -3
- package/dist/components/chat/duo_chat.js +1 -1
- package/dist/components/chat/mock_data.js +1 -1
- package/dist/components/chat/web_duo_chat.js +1 -1
- package/dist/components/ui/duo_layout/duo_layout.js +2 -1
- package/dist/components/ui/side_rail/side_rail.js +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/package.json +1 -1
- package/src/components/agentic_chat/agentic_duo_chat.vue +1 -1
- package/src/components/agentic_chat/web_agentic_duo_chat.vue +1 -1
- package/src/components/chat/components/duo_chat_header/duo_chat_header.vue +36 -24
- package/src/components/chat/components/duo_chat_header/web_duo_chat_header.vue +37 -25
- package/src/components/chat/components/duo_chat_message_tool_approval/components/run_command_tool_params.vue +2 -1
- package/src/components/chat/components/duo_chat_message_tool_approval/message_tool_approval.vue +14 -20
- package/src/components/chat/duo_chat.scss +11 -1
- package/src/components/chat/duo_chat.vue +1 -1
- package/src/components/chat/mock_data.js +1 -1
- package/src/components/chat/web_duo_chat.vue +1 -1
- package/src/components/ui/duo_layout/duo_layout.vue +7 -3
- package/src/components/ui/side_rail/side_rail.vue +4 -4
- package/translations.js +3 -3
|
@@ -814,7 +814,7 @@ export default {
|
|
|
814
814
|
<footer
|
|
815
815
|
v-if="isChatAvailable && !shouldShowThreadList"
|
|
816
816
|
data-testid="chat-footer"
|
|
817
|
-
class="duo-chat-drawer-footer gl-relative gl-z-2 gl-shrink-0 gl-border-0 gl-
|
|
817
|
+
class="duo-chat-drawer-footer gl-relative gl-z-2 gl-shrink-0 gl-border-0 gl-pb-3"
|
|
818
818
|
:class="{ 'duo-chat-drawer-body-scrim-on-footer': !scrolledToBottom }"
|
|
819
819
|
>
|
|
820
820
|
<gl-form data-testid="chat-prompt-form" @submit.stop.prevent="sendChatPrompt">
|
|
@@ -210,7 +210,7 @@ export const MOCK_REQUEST_MESSAGE_WITH_TOOL_APPROVAL_RUN_COMMAND_WITH_RESPONSE =
|
|
|
210
210
|
content: 'Tool run_command requires approval. Please confirm if you want to proceed.',
|
|
211
211
|
message_type: MESSAGE_MODEL_ROLES.request,
|
|
212
212
|
tool_info: {
|
|
213
|
-
args: { command: '
|
|
213
|
+
args: { command: 'docker run -d -v /home/project:/app -p 8001:8001 node' },
|
|
214
214
|
name: 'run_command',
|
|
215
215
|
tool_response: {
|
|
216
216
|
id: null,
|
|
@@ -791,7 +791,7 @@ export default {
|
|
|
791
791
|
<footer
|
|
792
792
|
v-if="isChatAvailable && !shouldShowThreadList"
|
|
793
793
|
data-testid="chat-footer"
|
|
794
|
-
class="duo-chat-drawer-footer gl-relative gl-z-2 gl-shrink-0 gl-border-0 gl-
|
|
794
|
+
class="duo-chat-drawer-footer gl-relative gl-z-2 gl-shrink-0 gl-border-0 gl-pb-3"
|
|
795
795
|
:class="{ 'duo-chat-drawer-body-scrim-on-footer': !scrolledToBottom }"
|
|
796
796
|
>
|
|
797
797
|
<gl-form data-testid="chat-prompt-form" @submit.stop.prevent="sendChatPrompt">
|
|
@@ -74,20 +74,24 @@ export default {
|
|
|
74
74
|
:class="{
|
|
75
75
|
'duo-chat-resizable': shouldRenderResizable,
|
|
76
76
|
'non-resizable-wrapper': !shouldRenderResizable,
|
|
77
|
+
'gl-rounded-[1rem] gl-bg-default gl-shadow-sm': true,
|
|
77
78
|
}"
|
|
78
79
|
:active="shouldRenderResizable ? ['l', 't', 'lt'] : null"
|
|
79
80
|
data-testid="duo-layout-component"
|
|
80
81
|
@resize:end="updateSize"
|
|
81
82
|
>
|
|
82
83
|
<aside
|
|
83
|
-
class="markdown-code-block duo-chat gl-align-items gl-bottom-0 gl-flex gl-h-full gl-max-h-full gl-flex-row gl-
|
|
84
|
+
class="markdown-code-block duo-chat gl-align-items gl-bottom-0 gl-flex gl-h-full gl-max-h-full gl-flex-row gl-border-subtle"
|
|
84
85
|
>
|
|
85
86
|
<main
|
|
86
|
-
class="content flex-none gl-flex gl-h-full gl-min-w-0 gl-grow gl-overflow-y-auto gl-
|
|
87
|
+
class="content flex-none gl-border-r gl-flex gl-h-full gl-min-w-0 gl-grow gl-overflow-y-auto gl-border-subtle"
|
|
87
88
|
>
|
|
88
89
|
<slot name="mainview"></slot>
|
|
89
90
|
</main>
|
|
90
|
-
<aside
|
|
91
|
+
<aside
|
|
92
|
+
v-if="$scopedSlots.siderail"
|
|
93
|
+
class="gl-flex gl-h-full gl-min-h-full gl-w-9 gl-min-w-9 gl-items-start gl-justify-center gl-p-4 gl-px-0"
|
|
94
|
+
>
|
|
91
95
|
<slot name="siderail"></slot>
|
|
92
96
|
</aside>
|
|
93
97
|
</aside>
|
|
@@ -29,25 +29,25 @@ export default {
|
|
|
29
29
|
};
|
|
30
30
|
</script>
|
|
31
31
|
<template>
|
|
32
|
-
<gl-button-group :vertical="true">
|
|
32
|
+
<gl-button-group :vertical="true" class="gl-flex-col gl-gap-3">
|
|
33
33
|
<template v-for="(button, buttonName) in buttons">
|
|
34
34
|
<div
|
|
35
35
|
v-if="button.dividerBefore"
|
|
36
36
|
:key="`${buttonName}-divider`"
|
|
37
|
-
class="gl-mx-auto gl-my-
|
|
37
|
+
class="gl-mx-auto gl-my-4 gl-h-1 gl-w-6 gl-border-0 gl-border-t-1 gl-border-solid gl-border-strong"
|
|
38
38
|
name="divider"
|
|
39
39
|
></div>
|
|
40
40
|
<gl-button
|
|
41
41
|
v-if="button.render"
|
|
42
42
|
:key="`${buttonName}-button`"
|
|
43
|
-
v-gl-tooltip
|
|
43
|
+
v-gl-tooltip.left
|
|
44
44
|
:title="button.title"
|
|
45
45
|
category="tertiary"
|
|
46
46
|
variant="default"
|
|
47
47
|
size="medium"
|
|
48
48
|
:icon="button.icon"
|
|
49
49
|
active-class="gl-active"
|
|
50
|
-
class="gl-
|
|
50
|
+
class="btn-icon !gl-rounded-full"
|
|
51
51
|
@click="onClick(buttonName)"
|
|
52
52
|
>
|
|
53
53
|
<gl-avatar v-if="button.avatar" :size="32" :entity-name="button.avatar" shape="circle" />
|
package/translations.js
CHANGED
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
'DuoChat.closeChatHeaderLabel': 'Close chat',
|
|
73
73
|
'DuoChat.copySessionIdFailedToast': 'Could not copy session ID',
|
|
74
74
|
'DuoChat.copySessionIdSuccessToast': 'Session ID copied to clipboard',
|
|
75
|
-
'DuoChat.copySessionIdTooltip': 'Copy session ID',
|
|
75
|
+
'DuoChat.copySessionIdTooltip': 'Copy session ID: %{id}',
|
|
76
76
|
'DuoChat.emptyHistoryAlt':
|
|
77
77
|
'Clock icon with circular arrow, indicating chat history or time-based functionality',
|
|
78
78
|
'DuoChat.emptyHistoryCopy': 'Your previous chats will appear here.',
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
'MessageToolApproval.denyText': 'Deny',
|
|
150
150
|
'MessageToolApproval.denyingText': 'Denying...',
|
|
151
151
|
'MessageToolApproval.noParametersText': 'No parameters will be sent with this request.',
|
|
152
|
-
'MessageToolApproval.parametersText': 'Request',
|
|
152
|
+
'MessageToolApproval.parametersText': 'Request parameters',
|
|
153
153
|
'MessageToolApproval.runCommand': 'Duo wants to run a command.',
|
|
154
154
|
'MessageToolApproval.runGitCommand': 'Duo wants to run a git command.',
|
|
155
155
|
'MessageToolApproval.toolApprovalDescription':
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
'WebDuoChat.closeChatHeaderLabel': 'Close chat',
|
|
203
203
|
'WebDuoChat.copySessionIdFailedToast': 'Could not copy session ID',
|
|
204
204
|
'WebDuoChat.copySessionIdSuccessToast': 'Session ID copied to clipboard',
|
|
205
|
-
'WebDuoChat.copySessionIdTooltip': 'Copy session ID',
|
|
205
|
+
'WebDuoChat.copySessionIdTooltip': 'Copy session ID: %{id}',
|
|
206
206
|
'WebDuoChat.overLimitCharacterCountMessage': null,
|
|
207
207
|
'WebDuoChat.remainingCharacterCountMessage': null,
|
|
208
208
|
};
|