From 4783df3c376cba5e40da45948860a75cad4bb282 Mon Sep 17 00:00:00 2001 From: vadim Date: Mon, 14 Apr 2025 15:28:29 +0200 Subject: [PATCH] chore: Agent chat annotated label in query pane (#40237) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description | Before | After | |--------|--------| | Screenshot 2025-04-14 at 11 54 32 | Screenshot 2025-04-14 at 11 48 26 | ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: df9a8417410347c0211e0ecbf9fdceb887810177 > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Mon, 14 Apr 2025 10:51:05 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Style** - Enhanced dark mode appearance with a more consistent color scheme. - Updated code block typography and styling for improved readability. - Refined the visual presentation of code elements, including fonts, colors, and spacing. - Modified the copy button appearance to a neutral style. - Introduced an annotated label with a dotted underline for clearer visual cues. --- .../components/FunctionCallingConfigForm.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/client/src/components/formControls/FunctionCallingConfigControl/components/FunctionCallingConfigForm.tsx b/app/client/src/components/formControls/FunctionCallingConfigControl/components/FunctionCallingConfigForm.tsx index d3679eeac4..05d678ad10 100644 --- a/app/client/src/components/formControls/FunctionCallingConfigControl/components/FunctionCallingConfigForm.tsx +++ b/app/client/src/components/formControls/FunctionCallingConfigControl/components/FunctionCallingConfigForm.tsx @@ -42,6 +42,13 @@ const Header = styled.div` justify-content: space-between; `; +const AnnotatedLabel = styled(Text)` + text-decoration-line: underline; + text-decoration-style: dotted; + text-decoration-color: var(--ads-v2-color-border-emphasis); + text-underline-offset: var(--ads-v2-spaces-1); +`; + const ConfigItems = styled.div` display: flex; flex-direction: column; @@ -115,9 +122,9 @@ export const FunctionCallingConfigForm = ({ content="Function calling allows the agent to intelligently fetch data, perform actions, and generate accurate, real-time responses." > - + Functions - +