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.
What does this do?
This work makes major changes to the Chat response UI allowing for threaded conversations that are held in context through a
conversationRef
. A few updates have occurred to accommodate this change and iterate towards more complex multi question/answer responses.dc-nextjs/components/Chat/Response/Response.tsx
Line 27 in 29f2c38
The feedback form is now tied to each response. Note that the form UI is in place, however, the submission of this form and it's question/responses is not yet functional. Functionality for this will be handled in a new issue.
The more results table for hybrid search is hidden currently. This will be handled in a new issue and may require refinement before resolving.
We are not currently sending questions/answers to a higher level search context as we did previously. I have not yet determined if we need this search context any longer and what shape this should be. Solutions for (2) and (3) above should determine how we handle this. Tests related to mocking this context have temporally been removed.
Review steps
This can be reviewed in amplify at https://preview-5354-conversations-ui.dc.rdc-staging.library.northwestern.edu/ or if run in a dev environment. If running in dev, be sure to set
NEXT_PUBLIC_DCAPI_ENDPOINT
tohttps://dcapi-prototype.rdc-staging.library.northwestern.edu/api/v2