-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/f 146 integrate chatbot reports chatting #117
Merged
marinovl7
merged 16 commits into
main
from
feature/f-146-integrate-chatbot-reports-chatting
Dec 15, 2024
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7bbf897
feat: implement report chat functionality & add chatbot to toolbar
ahmtslmngcl 893b563
feat: chat persistency across sites & storage for 24h
ahmtslmngcl d09e51e
fix: pdfjs-dist version
ahmtslmngcl 7a37511
fix: pdfjs-dist version
ahmtslmngcl f9d95a7
fix: replace pdftotext package with react-pdf
ahmtslmngcl 7c399ca
fix: package import
ahmtslmngcl 73ae9b0
fix: localStorage clean-up
ahmtslmngcl b8f225c
fix: remove sharp
ahmtslmngcl 3ac7ebe
fix: try with dependencies of 7a37511
ahmtslmngcl 4f6121f
fix: worker collisions
ahmtslmngcl ede42a4
Merge branch 'main' of https://github.com/jst-seminar-rostlab-tum/wfp…
ahmtslmngcl f36b352
fix: refactoring & code quality
ahmtslmngcl b26ead2
feat: store chats for 1 week (rather than 24 hours)
ahmtslmngcl ed38e43
fix: move chatbot outside topbar component and place into layout instead
ahmtslmngcl e844b45
Merge branch 'main' of https://github.com/jst-seminar-rostlab-tum/wfp…
ahmtslmngcl 5823e9b
fix: implement change requests
ahmtslmngcl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ import { useMemo, useState } from 'react'; | |
import PdfPreview from '@/components/Pdf/PdfPreview'; | ||
import SearchBar from '@/components/Search/SearchBar'; | ||
import CustomTable from '@/components/Table/CustomTable'; | ||
import { useChatbot } from '@/domain/contexts/ChatbotContext'; | ||
import { CountryCodesData } from '@/domain/entities/country/CountryCodesData'; | ||
import CountryReportsProps from '@/domain/props/CountryReportsProps'; | ||
import { PdfFile } from '@/domain/props/PdfViewerProps'; | ||
|
@@ -33,6 +34,7 @@ export default function CountryReports({ countryCodesData }: CountryReportsProps | |
data={DownloadPortalOperations.formatTableData( | ||
filteredData, | ||
setSelectedCountry, | ||
useChatbot().chatWithReport, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extract this into const const chatBot = useChatbot()
const { chatWithReport } = chatbot |
||
setPdfFile, | ||
setError, | ||
toggleModal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use className from tailwind, we do not use the style prop