Skip to content

Commit d3edb96

Browse files
devin-ai-integration[bot]katmarkhamChristoGrabdizel852
committed
design(chat): update ConnectorSetupAgent UI styling to match Connector Builder AI Assistant (#18393)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: ChristoGrab <[email protected]> Co-authored-by: Vladimir <[email protected]>
1 parent 840c8aa commit d3edb96

File tree

4 files changed

+35
-15
lines changed

4 files changed

+35
-15
lines changed

airbyte-webapp/src/components/chat/ChatInterface.module.scss

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
@use "scss/colors";
22
@use "scss/variables";
3+
@use "scss/mixins";
34

45
.container {
56
flex: 1 1 auto;
67
min-height: 0;
78
display: flex;
89
flex-direction: column;
9-
box-shadow: -4px 0 12px rgba(0, 0, 0, 10%);
10+
background: colors.$grey-50;
1011
}
1112

1213
.header {
1314
padding: variables.$spacing-xl;
1415
background-color: colors.$foreground;
15-
border-bottom: variables.$border-thin solid colors.$grey-200;
16-
text-align: center;
16+
border-bottom: variables.$border-thin solid colors.$grey-100;
1717
}
1818

19-
.title {
20-
margin: 0 0 variables.$spacing-sm;
21-
color: colors.$dark-blue-900;
22-
font-size: 28px;
23-
font-weight: 600;
24-
line-height: 1.2;
19+
.headerTitle {
20+
margin: 0;
2521
}
2622

27-
.subtitle {
28-
margin: 0;
29-
color: colors.$grey-600;
30-
font-size: 16px;
31-
line-height: 1.4;
23+
.headerDescription {
24+
margin-top: variables.$spacing-sm;
3225
}
3326

3427
.chatContainer {

airbyte-webapp/src/components/chat/ChatInterface.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
import React from "react";
2+
import { FormattedMessage } from "react-intl";
3+
4+
import { Badge } from "components/ui/Badge";
5+
import { FlexContainer } from "components/ui/Flex";
6+
import { Heading } from "components/ui/Heading";
7+
import { Icon } from "components/ui/Icon";
8+
import { Text } from "components/ui/Text";
29

310
import { ChatInput } from "./ChatInput";
411
import styles from "./ChatInterface.module.scss";
@@ -37,6 +44,20 @@ export const ChatInterface: React.FC<ChatInterfaceProps> = ({
3744
}) => {
3845
return (
3946
<div className={styles.container}>
47+
<div className={styles.header}>
48+
<FlexContainer direction="row" alignItems="center" gap="sm">
49+
<Icon type="aiStars" color="magic" size="md" />
50+
<Heading as="h3" size="sm" className={styles.headerTitle}>
51+
<FormattedMessage id="connectorSetup.agent.title" />
52+
</Heading>
53+
<Badge variant="blue">
54+
<FormattedMessage id="ui.badge.beta" />
55+
</Badge>
56+
</FlexContainer>
57+
<Text size="sm" color="grey" className={styles.headerDescription}>
58+
<FormattedMessage id="connectorSetup.agent.description" />
59+
</Text>
60+
</div>
4061
<div className={styles.chatContainer}>
4162
<MessageList
4263
messages={messages}

airbyte-webapp/src/components/chat/Message.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@use "scss/colors";
22
@use "scss/variables";
3+
@use "scss/mixins";
34

45
.messageContent {
56
max-width: 90%;
@@ -17,6 +18,7 @@
1718
.messageContent {
1819
background-color: colors.$foreground;
1920
color: colors.$dark-blue-900;
21+
border: variables.$border-thin solid colors.$dark-blue-900;
2022
border-radius: variables.$border-radius-lg variables.$border-radius-sm variables.$border-radius-lg
2123
variables.$border-radius-lg;
2224
}
@@ -26,10 +28,12 @@
2628
justify-content: flex-start;
2729

2830
.messageContent {
29-
background-color: colors.$blue-40;
31+
background-color: colors.$white;
3032
color: colors.$dark-blue-900;
3133
border-radius: variables.$border-radius-sm variables.$border-radius-lg variables.$border-radius-lg
3234
variables.$border-radius-lg;
35+
36+
@include mixins.gradient-border(variables.$border-thin, colors.$gradient-primary);
3337
}
3438
}
3539

airbyte-webapp/src/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118
"chat.toolCall.checkConfig.configurationSummary": "Configuration summary",
119119
"chat.toolCall.checkConfig.testResult": "Test Result",
120120
"chat.input.stop": "stop",
121+
"connectorSetup.agent.title": "Connector Setup Assistant",
122+
"connectorSetup.agent.description": "Our AI assistant will help configure your connector. Select 'Form' in the top-right to switch back to manual configuration.",
121123
"form.error": "Error: {message}",
122124
"form.error.pkAndCursor.required": "Primary key and cursor are missing",
123125
"form.error.pk.missing": "Primary key missing",

0 commit comments

Comments
 (0)