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.
This pull request includes a variety of changes to improve the structure and styling of the chat UI, including modifying components to use different elements, importing components from different modules, and refactoring code. The most important changes include modifying the
ChatFileSlider
component to use adiv
instead ofSheetDescription
, modifying theCitationSlider
component to improve code structure and styling, and refactoring theMarkdown
component to import theParagraph
component from a different module.Main interface changes:
src/features/chat/chat-ui/chat-file/chat-file-slider.tsx
: ModifiedChatFileSlider
component to use adiv
instead ofSheetDescription
, and importedButton
component from a different module. [1] [2]src/features/chat/chat-ui/markdown/citation-slider.tsx
: ModifiedCitationSlider
component to improve code structure and styling, including usingasChild
prop instead of wrappingButton
component, removingSheetDescription
component, and importingButton
component fromui/button
module. [1] [2] [3]src/components/markdown/config.tsx
: ModifiedcitationConfig
object to includeparagraph
node and importedcitation
tag fromchat-ui/markdown/citation
module.Refactoring changes:
src/components/markdown/paragraph.tsx
: Defined a newParagraph
component with adiv
element that renderschildren
andclassName
props. Defined a newparagraph
object with arender
property that references theParagraph
component.src/components/markdown/markdown.tsx
: Refactored theMarkdown
component to import theParagraph
component from a different module and modify thecomponents
property of theMarkdoc.renderers.react
function. [1] [2]Other changes:
src/next.config.js
: Removed theexperimental
object fromnext.config.js
.src/app/layout.tsx
: Removed thelight
class from theclassName
prop of thehtml
element inRootLayout
.src/features/chat/chat-ui/markdown/citation-action.tsx
: Imported thesimpleSearch
function from a different module using a relative path.src/app/change-log/page.tsx
: Moved import ofMarkdown
component fromchat/markdown
tocomponents/markdown
.src/features/chat/chat-ui/markdown/citation.tsx
: Modified thecitation
object to include therender
property and remove thetags
property. Removed theConfig
import andcitationConfig
object, and modified theProps
interface to remove theitems
property. [1] [2]src/features/chat/chat-ui/chat-input/chat-input.tsx
: ModifiedChatInput
container element'sclassName
prop to remove theitems-end
class.src/components/chat/chat-row.tsx
: Updated import statement to useMarkdown
component from correct module.