feat(intelligent-assistant): Lightspeed Notebook enhancements - #3849
Conversation
Enhance AddDocumentModal, OverwriteConfirmModal, NotebookCard, and NotebookView with improved UX text, document count formatting, file list styling, and fix translation type errors by removing unnecessary `as any` casts. Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Changed Packages
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3849 +/- ##
==========================================
- Coverage 57.12% 57.12% -0.01%
==========================================
Files 2430 2431 +1
Lines 96713 96817 +104
Branches 26920 26962 +42
==========================================
+ Hits 55252 55307 +55
- Misses 41263 41309 +46
- Partials 198 201 +3
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
…nt-notebook-ui-improvements Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> # Conflicts: # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/components/__tests__/AddDocumentModal.test.tsx # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/de.ts # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/es.ts # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/fr.ts # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/it.ts # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/ja.ts # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/translations/ref.ts
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
|
@its-mitesh-kumar: GitHub didn't allow me to request PR reviews from the following users: tobiastal. Note that only redhat-developer members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 6:31 PM UTC · Completed 6:48 PM UTC |
ReviewFindingsMedium
Low
Next steps:
|
| const handleOpenUploadModal = () => setIsUploadModalOpen(true); | ||
| const handleCloseUploadModal = () => setIsUploadModalOpen(false); | ||
|
|
||
| const handleCloseNotebook = async () => { |
There was a problem hiding this comment.
[medium] race-condition
The handleCloseNotebook auto-delete logic checks documents.length === 0 to determine if the notebook is empty. After a document upload completes and polling clears pendingUploads and uploadingFileNames, there is a window before invalidateQueries refetches the documents prop. During this window, documents.length is still 0 even though the notebook has server-side documents. If the user clicks close during this window, the notebook is auto-deleted despite having documents. The .catch(() => {}) silently suppresses any server-side rejection.
Suggested fix: Guard against this by additionally checking completedFileNames.size > 0 in the auto-delete condition, or await the documents query refetch before evaluating.
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
|
Hey Mitesh, this looks great! I just have a couple of small UX comments:
Thanks! Overall, it's looking really good. Happy to take another look once these are updated. |
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
…nt-notebook-ui-improvements Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> # Conflicts: # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/components/notebooks/NotebookCard.tsx # workspaces/intelligent-assistant/plugins/intelligent-assistant/src/components/notebooks/NotebookView.tsx
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
…nt-notebook-ui-improvements Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> # Conflicts: # workspaces/intelligent-assistant/.yarnrc.yml
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
|
LGTM |
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
There was a problem hiding this comment.
1 Resources, instead of1 Resource
- Way too much padding on the left of the action buttons. Also, "Updated today" text should be in italics as per the prototype
- Kebab menu on each notebook resources appear at all times, when it should appear only on hover as per the prototype
cc @tobiastal
@debsmita1 Its being handled as part of #4208 . Also we are not handling all improvements as part of this PR. I am only improving the portion I have mentioned in the PR description , but thanks for finding these out, I will handle the improvements you have mentioned here in this PR itself. |
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
|
There was a problem hiding this comment.
@its-mitesh-kumar when a user creates a notebook and navigates to Chat to do something, the notebook is automatically considered empty and gets closed.
But based on our latest acceptance criteria:
Auto-save on close
- Empty untitled notebooks are automatically deleted on close.
Shouldn’t the notebook be automatically deleted
Screen.Recording.2026-08-10.at.6.59.43.PM.mov
cc: @ShiranHi
@HusneShabbir Good catch. I was just deleting when user click on |




















Description
UI/UX improvements for the Lightspeed Notebook, aligned to the prototype and acceptance criteria in RHIDP-14896.
Fixed
UI after changes
S_.2026-08-05.at.2.21.58.PM.mov
Changes
Notebook card list
Notebook action menu
Add button icon
Upload modal
Upload modal X button
Disabled dropzone at file limit
Prevent stacked modals
Auto-save on close
Notebook message bar
Checklist