Skip to content

Commit

Permalink
Merge branch 'aics' into compatibility
Browse files Browse the repository at this point in the history
* aics:
  chore: update create chatbot response
  fix: Fix formatting issue in ChatbotManagement component
  • Loading branch information
aws-cloudfront-extension-bot committed Aug 30, 2024
2 parents 41052bb + 28e30fb commit 337107d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/lambda/etl/chatbot_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __create_chatbot(event, group_name):
"chatbotId": chatbot_id,
"groupName": group_name,
"indexIds": index_id_list,
"message": "Chatbot created",
"Message": "OK", # Need to be OK for the frontend to know the chatbot is created successfully and redirect to the chatbot management page
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const ChatbotManagement: React.FC = () => {
id: 'updateTime',
header: t('updateTime'),
cell: (item: ChatbotItem) =>
formatTime(parseInt(item.LastModifiedTime) * 1000),
formatTime(item.LastModifiedTime),
},
]}
items={tableChatbotList}
Expand Down Expand Up @@ -414,6 +414,7 @@ const ChatbotManagement: React.FC = () => {
>
<Textarea
rows={1}
disabled={loadingGet || showEdit}
value={chatbotOption?.value ?? ''}
placeholder={'admin'}
onChange={({ detail }) => {
Expand Down Expand Up @@ -521,7 +522,7 @@ const ChatbotManagement: React.FC = () => {
<div className="selected-items-list">
<ul className="gap-5 flex-v">
{selectedItems.map((item) => (
<li key={item.SortKey}>{item.ModelName}</li>
<li key={item.SortKey}>{item.ChatbotId}</li>
))}
</ul>
</div>
Expand Down
1 change: 0 additions & 1 deletion source/portal/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export interface CreateChatbotResponse {
export type ChatbotItem = {
ChatbotId: string;
LastModifiedTime: string;
// LastModifiedBy: string;
ModelName: string;
SortKey: string;
};
Expand Down

0 comments on commit 337107d

Please sign in to comment.