- Added a dynamic width calculation to the `AIMarkdownStreamingMessage` component, ensuring it adapts to the AI chat layout width. This change enhances the responsiveness and visual consistency of the message display.
These modifications aim to improve the user experience by providing a more flexible and visually appealing chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced manual checks for editable elements in global shortcuts with a utility function `detectIsEditableElement` for cleaner code and better maintainability.
- Updated `AIChatRoot` to use `LexicalRichEditorRef` for the input reference, enhancing type safety and consistency in the chat input handling.
- Integrated `AIPanelRefsContext` in `ChatInput` and `ChatInterfaceContent` to streamline access to the input reference across components.
- Removed the deprecated `animatedPlugin` file to clean up unused code.
These changes aim to enhance the overall structure and functionality of the AI chat interface, improving user experience and code maintainability.
Signed-off-by: Innei <tukon479@gmail.com>
- Enhanced `AIMarkdownStreamingMessage` to use a stable reference for the `isStreaming` state, ensuring consistent rendering during updates.
- Updated `MarkdownAnimateText` to handle number inputs and preserve element structure for valid React elements, improving flexibility in rendering.
- Added logic in `TokenizedText` to skip rendering completely empty tokens and preserve whitespace-only tokens without additional DOM elements.
These changes aim to enhance the rendering logic and user experience in the AI chat interface by providing more robust handling of various input types and improving performance during streaming.
Signed-off-by: Innei <tukon479@gmail.com>
- Integrated `ShinyText` into `AIChainOfThought` for improved visual feedback during reasoning.
- Updated `AIMessageParts` to conditionally render reasoning parts only if text is present, enhancing logic clarity.
- Introduced `useDeferredValue` for low-priority rendering of display parts, optimizing performance.
These changes aim to improve the user experience by providing clearer visual cues and more efficient rendering in the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new `AIInnerReasoningPart` component to encapsulate the rendering logic for individual reasoning parts, enhancing modularity.
- Updated `AIChainOfThought` to utilize the new component and manage collapse state more effectively using a ref.
- Simplified the extraction of headings from reasoning text, improving readability and maintainability of the code.
These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes and improving the overall structure of the components.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated AIChainOfThought to accept an additional `isStreaming` prop for better control over rendering during streaming.
- Adjusted AIMessageParts to pass the `shouldMessageAnimation` state to AIChainOfThought, ensuring consistent behavior in the chat interface.
- Refactored the component structure for improved readability and maintainability.
These changes aim to enhance the user experience by providing clearer feedback during AI reasoning processes.
Signed-off-by: Innei <tukon479@gmail.com>
- Refactored AIChainOfThought to accept groups of ReasoningUIPart instead of children, improving the structure for displaying reasoning parts.
- Added logic to extract headings from reasoning text for better context presentation during streaming.
- Simplified AIReasoningPart by removing unnecessary collapse functionality, focusing on rendering text directly.
- Updated AIMessageParts to utilize the new structure for displaying reasoning parts, ensuring a cohesive integration.
These changes aim to improve the clarity and functionality of the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AGENTS.md to provide detailed, agent-focused guidance for working within the monorepo.
- Consolidated existing CLAUDE.md content and added new sections on project overview, setup commands, quality gates, code style, architecture, UI design tokens, and testing strategies.
- Established clear guidelines for component placement, reusable UI components, and agent workflows to enhance development consistency across applications.
This addition aims to streamline onboarding and improve collaboration among team members by providing a centralized resource for best practices and project structure.
Signed-off-by: Innei <tukon479@gmail.com>
- Enhanced error handling in createErrorFallback to differentiate between error types and provide more specific responses.
- Removed unused kose-font dependency from package.json.
- Added @fontsource-variable/noto-sans-sc and @fontsource/noto-sans dependencies for improved font support in SSR.
Signed-off-by: Innei <tukon479@gmail.com>
- Upgraded various dependencies in package.json files, including @electron-forge, @sentry/react, and @better-auth.
- Updated devDependencies and fixed version mismatches in internal components and utilities.
- Enhanced settings sync queue to spread object properties for better payload handling.
Signed-off-by: Innei <tukon479@gmail.com>
- Added support for handling composition events during keyword input.
- Refactored keyword change logic to improve user experience.
- Updated FEED_DISCOVERY_INFO structure for better clarity and usage.
- Updated various components to improve layout consistency and responsiveness, including AIDisplayAnalyticsPart, AIReasoningPart, and ToolInvocationComponent.
- Introduced max-width constraints to ensure proper rendering across different screen sizes.
- Enhanced the TokenUsagePill component by integrating TooltipPortal for better tooltip management and improved styling for token usage display.
- Implemented useLayoutEffect in ChatInterface to manage bottom panel height dynamically, improving user experience during chat interactions.
These changes aim to streamline the user interface and enhance the overall functionality of the AI chat components.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed the previous state management for timeline summary and integrated ZustandChat for improved message handling.
- Updated TimelineSummarySection to utilize hooks for fetching chat messages and managing loading/error states.
- Enhanced translation support for timeline summary labels, improving internationalization.
These changes aim to simplify the component structure and enhance the user experience in the AI chat interface.
Signed-off-by: Innei <tukon479@gmail.com>
- Added `currentFeedTitle` prop to various entry components, including `EntryItemImpl`, `EntryVirtualListItem`, and `AllItem`, to improve context awareness in rendering.
- Integrated `useFeedHeaderTitle` hook in `EntryList` to fetch the current feed title dynamically.
- Updated related types and interfaces to accommodate the new prop, enhancing type safety and clarity.
These changes aim to provide a more contextual user experience when interacting with entry items in the application.
Signed-off-by: Innei <tukon479@gmail.com>