@lobehub/chat 1.60.2 → 1.60.3
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/CreateGroupModal.tsx +0 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/RenameGroupModal.tsx +3 -4
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.60.3](https://github.com/lobehub/lobe-chat/compare/v1.60.2...v1.60.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-17**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: User feedback for empty/long group names in create/edit group modals.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: User feedback for empty/long group names in create/edit group modals, closes [#6247](https://github.com/lobehub/lobe-chat/issues/6247) ([25c80d1](https://github.com/lobehub/lobe-chat/commit/25c80d1))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.60.2](https://github.com/lobehub/lobe-chat/compare/v1.60.1...v1.60.2)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-17**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.60.
|
3
|
+
"version": "1.60.3",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
5
5
|
"keywords": [
|
6
6
|
"framework",
|
@@ -35,8 +35,6 @@ const CreateGroupModal = memo<CreateGroupModalProps>(
|
|
35
35
|
onCancel?.(e);
|
36
36
|
}}
|
37
37
|
onOk={async (e: MouseEvent<HTMLButtonElement>) => {
|
38
|
-
if (!input) return;
|
39
|
-
|
40
38
|
if (input.length === 0 || input.length > 20)
|
41
39
|
return message.warning(t('sessionGroup.tooLong'));
|
42
40
|
|
@@ -17,13 +17,13 @@ const RenameGroupModal = memo<RenameGroupModalProps>(({ id, open, onCancel }) =>
|
|
17
17
|
const updateSessionGroupName = useSessionStore((s) => s.updateSessionGroupName);
|
18
18
|
const group = useSessionStore((s) => sessionGroupSelectors.getGroupById(id)(s), isEqual);
|
19
19
|
|
20
|
-
const [input, setInput] = useState<string>();
|
20
|
+
const [input, setInput] = useState<string>('');
|
21
21
|
const [loading, setLoading] = useState(false);
|
22
22
|
|
23
23
|
const { message } = App.useApp();
|
24
24
|
|
25
25
|
useEffect(() => {
|
26
|
-
setInput(group?.name);
|
26
|
+
setInput(group?.name ?? '');
|
27
27
|
}, [group]);
|
28
28
|
|
29
29
|
return (
|
@@ -32,11 +32,10 @@ const RenameGroupModal = memo<RenameGroupModalProps>(({ id, open, onCancel }) =>
|
|
32
32
|
destroyOnClose
|
33
33
|
okButtonProps={{ loading }}
|
34
34
|
onCancel={(e) => {
|
35
|
-
setInput(group?.name);
|
35
|
+
setInput(group?.name ?? '');
|
36
36
|
onCancel?.(e);
|
37
37
|
}}
|
38
38
|
onOk={async (e) => {
|
39
|
-
if (!input) return;
|
40
39
|
if (input.length === 0 || input.length > 20)
|
41
40
|
return message.warning(t('sessionGroup.tooLong'));
|
42
41
|
setLoading(true);
|