diff --git a/ee/app/assets/javascripts/ai/components/duo_chat_logging_alert.vue b/ee/app/assets/javascripts/ai/components/duo_chat_logging_alert.vue new file mode 100644 index 0000000000000000000000000000000000000000..883252433d05b997437bc9b4991f5ce59d94e579 --- /dev/null +++ b/ee/app/assets/javascripts/ai/components/duo_chat_logging_alert.vue @@ -0,0 +1,129 @@ + + + diff --git a/ee/app/assets/javascripts/ai/constants.js b/ee/app/assets/javascripts/ai/constants.js index a4302c1386245e35fecd92c402cb4c2f599d1fc7..069d2d10eac00b01dfd7d110c7145d6302a3df35 100644 --- a/ee/app/assets/javascripts/ai/constants.js +++ b/ee/app/assets/javascripts/ai/constants.js @@ -49,3 +49,4 @@ export const DUO_WORKFLOW_CLIENT_VERSION = '1.0'; export const DUO_WORKFLOW_STATUS_TOOL_CALL_APPROVAL_REQUIRED = 'TOOL_CALL_APPROVAL_REQUIRED'; export const DUO_WORKFLOW_STATUS_INPUT_REQUIRED = 'INPUT_REQUIRED'; export const DUO_WORKFLOW_ADDITIONAL_CONTEXT_REPOSITORY = 'repository'; +export const DUO_AGENTIC_CHAT_LOGGING_ALERT = 'duo_agentic_chat_logging_alert'; diff --git a/ee/app/assets/javascripts/ai/duo_agentic_chat/components/app.vue b/ee/app/assets/javascripts/ai/duo_agentic_chat/components/app.vue index 9c47de226cd3b7e5a27bb720d9a3712a5d70d477..fc27f02a311953f5ca39d680e1134a050ca041e9 100644 --- a/ee/app/assets/javascripts/ai/duo_agentic_chat/components/app.vue +++ b/ee/app/assets/javascripts/ai/duo_agentic_chat/components/app.vue @@ -9,6 +9,7 @@ import { getCookie } from '~/lib/utils/common_utils'; import { duoChatGlobalState } from '~/super_sidebar/constants'; import { clearDuoChatCommands, setAgenticMode } from 'ee/ai/utils'; import { parseGid } from '~/graphql_shared/utils'; +import DuoChatLoggingAlert from 'ee/ai/components/duo_chat_logging_alert.vue'; import { GENIE_CHAT_RESET_MESSAGE, GENIE_CHAT_CLEAR_MESSAGE, @@ -32,6 +33,7 @@ export default { components: { AgenticDuoChat, GlToggle, + DuoChatLoggingAlert, }, provide() { return { @@ -55,7 +57,7 @@ export default { default: null, }, metadata: { - type: String, + type: Object, required: false, default: null, }, @@ -450,7 +452,11 @@ export default { @thread-selected="onThreadSelected" @back-to-list="onBackToList" @delete-thread="onDeleteThread" - >