Skip to content

Commit a6768a9

Browse files
ask changes
2 parents 748a3d0 + 20a64b9 commit a6768a9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN BACKEND_API_URL=$BACKEND_API_URL \
2727
CHUNK_SIZE=$CHUNK_SIZE \
2828
ENV=$ENV \
2929
LARGE_FILE_SIZE=${LARGE_FILE_SIZE} \
30+
CHAT_MODES=$CHAT_MODES \
3031
yarn run build
3132

3233
# Step 2: Serve the application using Nginx

frontend/src/components/ChatBot/Chatbot.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,14 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
301301
<Widget
302302
header=''
303303
isElevated={true}
304-
className={`p-4 self-start ${isFullScreen ? 'max-w-[55%]' : ''} ${
305-
chat.user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
306-
} `}
304+
className={`p-4 self-start ${isFullScreen ? 'max-w-[55%]' : ''} ${chat.user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
305+
} `}
307306
>
308307
<div
309-
className={`${
310-
listMessages[index].isLoading && index === listMessages.length - 1 && chat.user == 'chatbot'
311-
? 'loader'
312-
: ''
313-
}`}
308+
className={`${listMessages[index].isLoading && index === listMessages.length - 1 && chat.user == 'chatbot'
309+
? 'loader'
310+
: ''
311+
}`}
314312
>
315313
<ReactMarkdown>{chat.message}</ReactMarkdown>
316314
</div>
@@ -397,15 +395,15 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
397395
<div className='n-bg-palette-neutral-bg-weak flex gap-2.5 bottom-0 p-2.5 w-full'>
398396
<form onSubmit={handleSubmit} className='flex gap-2.5 w-full'>
399397
<TextInput
400-
className='n-bg-palette-neutral-bg-default flex-grow-7 w-full'
398+
className='n-bg-palette-neutral-bg-default flex-grow-7 w-[70%]'
401399
aria-label='chatbot-input'
402400
type='text'
403401
value={inputMessage}
404402
fluid
405403
onChange={handleInputChange}
406404
/>
407-
<Button type='submit' disabled={loading}>
408-
Ask
405+
<Button type='submit' disabled={loading} size='medium'>
406+
{buttonCaptions.ask} {selectedRows != undefined && selectedRows.length > 0 && `(${selectedRows.length})`}
409407
</Button>
410408
</form>
411409
</div>

frontend/src/components/DataSources/Local/DropZone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,4 @@ const DropZone: FunctionComponent = () => {
278278
);
279279
};
280280

281-
export default DropZone;
281+
export default DropZone;

frontend/src/utils/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const buttonCaptions = {
154154
details: 'Details',
155155
continueSettings: 'Continue',
156156
clearSettings: 'Clear Settings',
157+
ask:'Ask'
157158
};
158159

159160
export const taskParam: string[] = ['update_similarity_graph', 'create_fulltext_index', 'create_entity_embedding'];

0 commit comments

Comments
 (0)