@@ -17,6 +17,7 @@ import {
17
17
useDarkMode ,
18
18
LgChatChatDisclaimer ,
19
19
Link ,
20
+ Icon ,
20
21
} from '@mongodb-js/compass-components' ;
21
22
import { ConfirmationMessage } from './confirmation-message' ;
22
23
import { useTelemetry } from '@mongodb-js/compass-telemetry/provider' ;
@@ -79,6 +80,8 @@ const assistantChatFixesStyles = css({
79
80
fontSize : '13px' ,
80
81
lineHeight : '15px' ,
81
82
marginTop : '4px' ,
83
+ // DE has reset css that sets all font weights to 400
84
+ fontWeight : 700 ,
82
85
} ,
83
86
/** h1 -> h3 styling */
84
87
h1 : {
@@ -130,13 +133,16 @@ const disclaimerTextStyles = css({
130
133
paddingBottom : spacing [ 400 ] ,
131
134
paddingLeft : spacing [ 400 ] ,
132
135
paddingRight : spacing [ 400 ] ,
136
+ a : {
137
+ fontSize : 'inherit' ,
138
+ } ,
133
139
} ) ;
134
140
/** TODO(COMPASS-9751): This should be handled by Leafygreen's disclaimers update */
135
141
const inputBarStyleFixes = css ( {
136
142
width : '100%' ,
137
143
paddingLeft : spacing [ 400 ] ,
138
144
paddingRight : spacing [ 400 ] ,
139
- paddingBottom : spacing [ 400 ] ,
145
+ paddingBottom : spacing [ 100 ] ,
140
146
} ) ;
141
147
142
148
function makeErrorMessage ( message : string ) {
@@ -154,6 +160,19 @@ const messagesWrapStyles = css({
154
160
gap : spacing [ 400 ] ,
155
161
} ) ;
156
162
163
+ const welcomeHeadingStyles = css ( {
164
+ display : 'flex' ,
165
+ alignItems : 'center' ,
166
+ gap : '6px' ,
167
+ span : {
168
+ fontWeight : 600 ,
169
+ lineHeight : '20px' ,
170
+ } ,
171
+ } ) ;
172
+ const welcomeTextStyles = css ( {
173
+ margin : `${ spacing [ 100 ] } px 0 0 0` ,
174
+ } ) ;
175
+
157
176
export const AssistantChat : React . FunctionComponent < AssistantChatProps > = ( {
158
177
chat,
159
178
hasNonGenuineConnections,
@@ -375,9 +394,20 @@ export const AssistantChat: React.FunctionComponent<AssistantChatProps> = ({
375
394
) }
376
395
{ messages . length === 0 && (
377
396
< div className = { welcomeMessageStyles } >
378
- < h4 > Welcome to your MongoDB Assistant.</ h4 >
379
- Ask any question about MongoDB to receive expert guidance and
380
- documentation right in your window.
397
+ < h4 className = { welcomeHeadingStyles } >
398
+ < Icon
399
+ glyph = "Sparkle"
400
+ size = "large"
401
+ style = { { color : palette . green . dark1 } }
402
+ />
403
+ < span > MongoDB Assistant.</ span >
404
+ </ h4 >
405
+ < p className = { welcomeTextStyles } >
406
+ Welcome to the MongoDB Assistant!
407
+ < br />
408
+ Ask any question about MongoDB to receive expert guidance and
409
+ documentation.
410
+ </ p >
381
411
</ div >
382
412
) }
383
413
< div className = { inputBarStyleFixes } >
0 commit comments