@buerokratt-ria/common-gui-components 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ All changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Template [MajorVersion.MediterraneanVersion.MinorVersion] - DD-MM-YYYY
|
|
6
6
|
|
|
7
|
+
## [0.0.32] - 19-11-2025
|
|
8
|
+
|
|
9
|
+
- Fixed isTest Mark.
|
|
10
|
+
- Fixed Columns Spacing in Firefox
|
|
11
|
+
|
|
12
|
+
## [0.0.31] - 18-11-2025
|
|
13
|
+
|
|
14
|
+
- Added chat id to URL params in chats history page.
|
|
15
|
+
|
|
7
16
|
## [0.0.30] - 10-11-2025
|
|
8
17
|
|
|
9
18
|
- Enhanced Markdownify
|
package/package.json
CHANGED
|
@@ -565,31 +565,51 @@ const ChatHistory: FC<PropsWithChildren<HistoryProps>> = ({
|
|
|
565
565
|
</Tooltip>
|
|
566
566
|
);
|
|
567
567
|
|
|
568
|
+
const updateChatTest = function (chatId: string, isTest: boolean) {
|
|
569
|
+
setFilteredEndedChatsList((prevChats) =>
|
|
570
|
+
prevChats.map((chat) => (chat.id === chatId ? ({ ...chat, istest: isTest } as ChatType) : chat))
|
|
571
|
+
);
|
|
572
|
+
|
|
573
|
+
if (selectedChat && selectedChat.id === chatId) {
|
|
574
|
+
setSelectedChat({
|
|
575
|
+
...selectedChat,
|
|
576
|
+
istest: isTest,
|
|
577
|
+
} as ChatType);
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
|
|
568
581
|
const markConversationAsTest = (props: any) => {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
582
|
+
const chatId = props.row.original.id;
|
|
583
|
+
const newIsTestValue = props.getValue();
|
|
584
|
+
return (
|
|
585
|
+
<FormCheckbox
|
|
586
|
+
checked={newIsTestValue}
|
|
587
|
+
label={""}
|
|
588
|
+
hideLabel
|
|
589
|
+
emptyItem={true}
|
|
590
|
+
name="active"
|
|
591
|
+
item={{
|
|
592
|
+
label: "",
|
|
593
|
+
value: "active",
|
|
594
|
+
}}
|
|
595
|
+
onChange={(e) => {
|
|
596
|
+
const isTest = e.target.checked;
|
|
597
|
+
updateChatTest(chatId, isTest);
|
|
598
|
+
chatTestChangeMutation.mutate({ chatId, isTest });
|
|
599
|
+
}}
|
|
600
|
+
/>
|
|
601
|
+
);
|
|
602
|
+
};
|
|
587
603
|
|
|
588
604
|
const detailsView = (props: any) => (
|
|
589
605
|
<Button
|
|
590
606
|
appearance="text"
|
|
591
607
|
onClick={() => {
|
|
592
608
|
setSelectedChat(props.row.original);
|
|
609
|
+
setSearchParams((params) => {
|
|
610
|
+
params.set("chat", props.row.original.id);
|
|
611
|
+
return params;
|
|
612
|
+
});
|
|
593
613
|
setChatState(props.row.original.lastMessageEvent);
|
|
594
614
|
}}
|
|
595
615
|
>
|
package/types/chat.ts
CHANGED