@red-hat-developer-hub/backstage-plugin-lightspeed 2.8.5 → 2.8.7
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 +18 -0
- package/dist/alpha.d.ts +1 -0
- package/dist/components/LightSpeedChat.esm.js +2 -3
- package/dist/components/LightSpeedChat.esm.js.map +1 -1
- package/dist/components/notebooks/AddDocumentModal.esm.js +3 -1
- package/dist/components/notebooks/AddDocumentModal.esm.js.map +1 -1
- package/dist/components/notebooks/DocumentSidebar.esm.js +4 -3
- package/dist/components/notebooks/DocumentSidebar.esm.js.map +1 -1
- package/dist/components/notebooks/NotebookView.esm.js +12 -2
- package/dist/components/notebooks/NotebookView.esm.js.map +1 -1
- package/dist/translations/ref.esm.js +1 -0
- package/dist/translations/ref.esm.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
## @red-hat-developer-hub/backstage-plugin-lightspeed
|
|
2
2
|
|
|
3
|
+
## 2.8.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 798b7d4: Updated dependency `monaco-editor` to `^0.56.0`.
|
|
8
|
+
- @red-hat-developer-hub/backstage-plugin-lightspeed-common@2.8.7
|
|
9
|
+
|
|
10
|
+
## 2.8.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 3b0851a: Backport: Fix document upload gating and conversation deletion in notebooks
|
|
15
|
+
|
|
16
|
+
This backports fixes from commits f7d96f8, e49fc2c, and d5199d6 on main to the 1.10 release line:
|
|
17
|
+
- Prevent additional document uploads while another document is still being processed, avoiding race conditions in the notebook vector store
|
|
18
|
+
- Fix document deletion to use the proper conversations API abstraction instead of direct internal base URL access
|
|
19
|
+
- @red-hat-developer-hub/backstage-plugin-lightspeed-common@2.8.6
|
|
20
|
+
|
|
3
21
|
## 2.8.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ declare const lightspeedTranslationRef: _backstage_frontend_plugin_api.Translati
|
|
|
77
77
|
readonly "notebook.view.sidebar.resize": string;
|
|
78
78
|
readonly "notebook.view.documents.uploading": string;
|
|
79
79
|
readonly "notebook.view.documents.maxReached": string;
|
|
80
|
+
readonly "notebook.view.documents.uploadsInProgress": string;
|
|
80
81
|
readonly "notebook.upload.failed": string;
|
|
81
82
|
readonly "notebook.upload.modal.title": string;
|
|
82
83
|
readonly "notebook.upload.modal.dragDropTitle": string;
|
|
@@ -571,9 +571,7 @@ const LightspeedChat = ({
|
|
|
571
571
|
[]
|
|
572
572
|
);
|
|
573
573
|
const createNotebookMutation = useCreateNotebook();
|
|
574
|
-
const { data: notebookDocuments = [] } = useNotebookDocuments(
|
|
575
|
-
activeNotebook?.session_id
|
|
576
|
-
);
|
|
574
|
+
const { data: notebookDocuments = [], isFetching: isDocumentsFetching } = useNotebookDocuments(activeNotebook?.session_id);
|
|
577
575
|
const [conversationId, setConversationId] = useState("");
|
|
578
576
|
const [requestId, setRequestId] = useState("");
|
|
579
577
|
const [newChatCreated, setNewChatCreated] = useState(false);
|
|
@@ -1775,6 +1773,7 @@ const LightspeedChat = ({
|
|
|
1775
1773
|
sessionId: activeNotebook.session_id,
|
|
1776
1774
|
notebookName: activeNotebook.name,
|
|
1777
1775
|
documents: notebookDocuments,
|
|
1776
|
+
isDocumentsFetching,
|
|
1778
1777
|
metadata: activeNotebook.metadata,
|
|
1779
1778
|
topicSummary: conversations.find(
|
|
1780
1779
|
(c) => c.conversation_id === activeNotebook.metadata?.conversation_id
|