* feat: ai panel * feat: ai settings * feat: ai entrances * feat: shortcuts setting * refactor: rename ai dialogue * feat: merge dialogue input and shortcuts * feat: textarea autoheight * feat: ai dialogue input auto shrink * feat: ai dialogue * feat: ai icon * feat: split text * feat: mockDialogues * feat: scrollable shortcuts * fix * feat: use vercel ai * feat: rename * feat: ai tool * refactor: update font settings and layout adjustments - Changed default font from "SN Pro" to "system-ui" in multiple components for consistency. - Updated layout styles by removing unnecessary class names to streamline the design. - Added a new translation key for "Follow System" to enhance localization support. Signed-off-by: Innei <tukon479@gmail.com> * refactor: reorganize dependencies and remove unused components - Moved several dependencies from the main package.json to the layer renderer's package.json for better modularity. - Removed the SplitText component and its associated files to streamline the codebase. - Added new utility animations in the Tailwind CSS configuration for enhanced UI effects. Signed-off-by: Innei <tukon479@gmail.com> * feat: implement AI chat components and context management - Added AIChatInput, AIChatPanel, AIChatRoot, AIMessageList, and AIChatShortcuts components to facilitate user interaction with AI chat functionality. - Introduced AIChatContext for managing chat state and interactions. - Updated entry content to integrate the new AI chat components, enhancing user experience with chat features. - Removed the legacy panel.tsx file to streamline the codebase. Signed-off-by: Innei <tukon479@gmail.com> * feat: add AIChat hotkey scope and integrate Focusable component - Introduced a new hotkey scope for AIChat in the constants file to support keyboard interactions. - Wrapped the AIChatContext in a Focusable component within AIChatRoot to enhance accessibility and focus management. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update AIChatInput and AIChatPanel components - Replaced the Button component with a span in AIChatInput for improved styling consistency. - Removed commented-out code in AIChatPanel to clean up the component structure. - Adjusted layout in AIChatPanel for better organization of chat input and help sections. Signed-off-by: Innei <tukon479@gmail.com> * refactor: remove deprecated useGlobalFocusableScope hook and update TextArea styles - Removed the deprecated `useGlobalFocusableScope` hook in favor of `useGlobalFocusableScopeSelector` for improved performance. - Updated TextArea component styles to enhance visual consistency with new class names. Signed-off-by: Innei <tukon479@gmail.com> * feat: add SettingTextArea component and integrate into AI settings - Introduced a new SettingTextArea component for improved text input handling. - Updated the AI settings tab to utilize SettingTextArea for personalized prompts, enhancing user experience. - Refactored existing SettingInput usage for better layout and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: import path * feat: optimzie ai displayFeeds * feat: enhance AIChatPanel with tooltips and improved suggestion display - Added tooltips for the "New Chat", "History", and "Personalize" buttons for better user guidance. - Updated suggestion display logic to show a limited number of suggestions initially, with an option to expand for more. - Changed icons in suggestions to use a consistent format and improved styling for better visual appeal. Signed-off-by: Innei <tukon479@gmail.com> * feat: integrate AIPanelRefsContext for improved reference management - Introduced AIPanelRefsContext to manage references for the chat input and panel components. - Updated AIChatInput to utilize the new context for textarea reference. - Modified AIChatPanel to use the panel reference from the context. - Enhanced AIChatRoot to provide the context with memoized references for better performance. Signed-off-by: Innei <tukon479@gmail.com> * feat: add EntryContentAccessories component for enhanced entry features - Introduced EntryContentAccessories to encapsulate the ContainerToc and EntryAIChatInput components. - Updated EntryContent to utilize EntryContentAccessories for improved layout and functionality. - Added new ContainerToc and AIChatInput components to support table of contents and AI chat features. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update imports for useSettingModal and clean up unused components - Changed import path for useSettingModal to use a new hack version. - Removed the unused ContainerToc component. - Updated EntryContent to include AISmartSidebar. - Commented out the EntryAIChatInput in EntryContentAccessories. - Minor adjustments in use-register-hotkey for better readability. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): implement AI chat components including message input, display, and demo functionality - Added AIChatContainer for managing chat messages and displaying a welcome screen. - Introduced AIChatInput for user message input with auto-resizing functionality. - Created AIChatMessage for rendering individual chat messages with formatting support. - Integrated AIChatDemo to showcase the chat functionality within the AIChatSidePanel. - Added a new SVG icon for the send button. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): enhance chat functionality with auto-scroll and message formatting - Integrated auto-scroll feature in AIChatContainer to improve user experience during message updates. - Added AIChatTypingIndicator to display typing status in chat. - Updated AIChatMessage to support markdown parsing for better message formatting. - Enhanced AIChatInput to manage empty state and disable send button accordingly. - Refactored AIChat component structure for clarity and improved functionality. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): add sending message animation and enhance chat input - Introduced SendingMessageOverlay component for animated feedback when sending messages. - Updated AIChatInput to trigger sending animation and manage input state. - Enhanced AIChatMessage with animation effects for message display. - Improved auto-scroll logic to handle programmatic scrolling more effectively. - Added new SVG icons for chat functionalities. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): improve chat input and message handling with enhanced animations - Updated AIChatContainer to refine sending message animations and manage input states. - Enhanced AIChatInput to include a stop button for ongoing processing and improved message sending logic. - Refactored AIChatMessage to maintain animation consistency during message display. - Improved comments for clarity and code maintainability. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): enhance AI chat context management and input handling - Introduced AIChatContextInfo for managing context information in AI chat. - Updated AIChatInput to utilize context for default selection and improved user experience. - Refactored AIChatRoot to manage context state and provide context information to child components. - Enhanced AIChatContainer with a welcome message and improved message handling logic. - Added EntryAIContext for managing entry-specific AI context, improving integration with chat functionalities. Signed-off-by: Innei <tukon479@gmail.com> * chore: hono update - Introduced optional context properties in the AI chat message structure to support entryId and selectedText. - Enhanced flexibility for managing chat context and improving user interactions. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): enhance AI chat components with optional wrapping and improved styling - Added `wrapFocusable` prop to `AIChatRoot` for conditional wrapping of focusable elements. - Updated `AIChatMessage` to display a placeholder when the assistant is "thinking" and improved styling for message bubbles. - Refined `AIChatContainer` layout with adjusted border styles for better visual separation. - Enhanced `AIChatSidePanel` structure for improved component organization and functionality. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): implement AI chat context store and enhance input handling - Introduced a new context store for managing AI chat state, allowing for better organization of context information. - Refactored AIChatInput and AIChatRoot components to utilize the new context store, improving state management and performance. - Added AIChatContextBar for displaying context blocks and managing references within the chat. - Enhanced input handling with improved styling and functionality, including dynamic resizing and context-aware features. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): refactor message parts handling in AIChatMessage component - Replaced the existing MessageParts component with a new AIMessageParts component to improve code organization and readability. - Enhanced the rendering logic for message parts, including better handling of tool invocations and markdown parsing. - Introduced a more structured approach to displaying message content, including support for code highlighting. Signed-off-by: Innei <tukon479@gmail.com> * feat(diagrams): integrate Mermaid for diagram rendering in AI chat - Added Mermaid as a dependency to support diagram rendering within the AI chat interface. - Implemented the MermaidDiagram component for rendering Mermaid diagrams based on provided code. - Enhanced AIMarkdownMessage to parse and render Mermaid diagrams alongside other markdown content. - Refactored AIChatContainer and AIChatInput components to improve structure and maintainability. - Introduced AIPanelHeader for better management of the AI chat panel. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): enhance AI message rendering and introduce ToolInvocationComponent - Updated AIMarkdownMessage to accept an optional className prop for better styling flexibility. - Refactored AIMessageParts to utilize the new ToolInvocationComponent for rendering tool invocation details, improving code organization and readability. - Adjusted AIChatMessage styles for user messages to enhance visual distinction. - Removed unused state management for tool expansion, simplifying the component logic. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): integrate AIChatRoot and enhance auto-scroll functionality - Wrapped the main content in AIChatRoot for improved focus management. - Added auto-scroll behavior to the AIChatContainer for better user experience when new messages are loaded. - Refactored AIChatPanelContainer and AIChatSidePanel to streamline layout and improve code organization. - Updated styles and structure for better visual consistency and maintainability. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): update AI SDK dependencies and enhance AI chat functionality - Upgraded dependencies for '@ai-sdk/openai', '@ai-sdk/react', and 'ai' to their latest beta versions for improved features and performance. - Introduced new utility functions for managing AI chat state, including getAIChatPinned. - Refactored AIChat components to utilize the updated SDK, enhancing message handling and tool invocation rendering. - Added global commands for toggling AI chat visibility and pinning, improving user interaction. Signed-off-by: Innei <tukon479@gmail.com> * feat(layout): implement resizable panel functionality and improve layout components - Added PanelSplitter component for dynamic resizing of the AI chat panel. - Integrated useResizable hook to manage panel dimensions in RightContent and SubscriptionColumn. - Refactored AIChatPanelContainer to accept an optional className prop for better styling. - Cleaned up unused refs and improved code organization in SubscriptionColumn. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): update AI chat components and integrate new AI SDK features - Refactored AIChatInput and AIChatMessage components to utilize the new AISpline icon for improved visual consistency. - Enhanced AIChatRoot to accept a roomId prop for better context management. - Updated message handling in AIChatMessage to include metadata for improved message tracking. - Introduced AIChatBottom component for better organization of chat input and context display. - Integrated new AI SDK features for enhanced chat functionality and user experience. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai-chat): integrate node polyfills and enhance chat functionality - Added vite-plugin-node-polyfills to support Node.js core modules in the chat application. - Updated AIChatRoot to utilize the new roomId prop for better context management. - Refactored message handling in AIChat components to improve user experience and maintainability. - Introduced new hooks for loading and saving messages, enhancing chat state management. - Updated database schema for ai_chat_messages to ensure message integrity and support new features. Signed-off-by: Innei <tukon479@gmail.com> * chore: update pnpm-lock and package.json to include @splinetool/react-spline and related dependencies - Added @splinetool/react-spline version 4.0.0 to package.json. - Updated pnpm-lock.yaml to reflect the addition of @splinetool/react-spline and its peer dependencies, including @splinetool/runtime and react-related packages. - Included new dependency on on-change version 4.0.2 and updated other related packages. This update enhances compatibility with the latest spline tool features. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai): implement AI chat components and layout - Added AIChatContextBar for managing chat context and entries. - Introduced AIChatMessage and AIMessageParts for rendering chat messages. - Created ToolInvocationComponent to display tool invocation details. - Implemented auto-scrolling functionality with useAutoScroll hook. - Developed AIChatLayout to structure the chat interface, including a welcome screen and message input. - Integrated chat components into the entry content layout. This update enhances the AI chat experience with a structured layout and improved message handling. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai): enhance AI chat functionality and localization - Added new AI namespace to constants for improved organization. - Integrated AI localization by importing AI English resources and updating default resources. - Enhanced AIChatLayout with translation support for chat-related prompts and messages. - Updated AIPanelHeader to utilize translations for chat clearing confirmation. - Introduced welcome message localization in the AI chat interface. This update improves the AI chat experience with better localization and user interaction features. Signed-off-by: Innei <tukon479@gmail.com> * feat(ai): enhance AI settings with personalized prompts and shortcuts management - Introduced PersonalizePromptSetting for customizing AI prompts with save functionality. - Added AIShortcutsSection for managing AI shortcuts, including add, update, delete, and toggle features. - Improved localization by updating translation keys for AI settings. - Refactored components for better organization and clarity. This update enhances user interaction with AI settings, allowing for personalized experiences and efficient shortcut management. Signed-off-by: Innei <tukon479@gmail.com> * feat(shortcuts): implement keyboard shortcut management and localization - Added KeyRecorder component for recording keyboard shortcuts. - Introduced ShortcutSetting for managing custom AI shortcuts, including add, update, and delete functionalities. - Enhanced AI settings with new localization keys for shortcuts. - Refactored existing components for improved organization and clarity. This update streamlines the process of creating and managing keyboard shortcuts, enhancing user experience in AI settings. Signed-off-by: Innei <tukon479@gmail.com> * feat: update ai robot model * feat(ai): introduce new analytics and display components - Added components for displaying analytics, entries, feeds, and subscriptions. - Implemented loading and error states for better user feedback. - Refactored existing components to integrate new display functionalities. - Introduced common state components for loading and error handling. This update enhances the AI chat experience by providing detailed analytics and improved data presentation. Signed-off-by: Innei <tukon479@gmail.com> * refactor(ai): consolidate shared components for analytics displays - Moved StatCard, ChartPlaceholder, and other common components to a shared module for reuse across analytics displays. - Updated AIDisplayAnalyticsPart, AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart to utilize the new shared components. - Enhanced the layout and error handling for empty states in various display components. This refactor improves code maintainability and consistency in the analytics display components. Signed-off-by: Innei <tukon479@gmail.com> * feat(ui): introduce GlassButton component and refactor modal actions - Added a new GlassButton component with customizable styles and animations for enhanced UI consistency. - Replaced existing button implementations in modal components with the new GlassButton for improved visual coherence. - Updated PreviewMediaContent and other components to utilize GlassButton, enhancing user interaction and aesthetics. This update streamlines button usage across the application and enhances the overall user experience. Signed-off-by: Innei <tukon479@gmail.com> * refactor(ai): enhance auto-scroll functionality in chat component - Updated the useAutoScroll hook to improve user interaction handling and scrolling behavior. - Introduced a debounce mechanism for resize observer to optimize performance. - Modified the AIChatLayout to ensure proper scrolling to the bottom when new messages are loaded. - Improved state management for user interactions and auto-scrolling logic. These changes enhance the chat experience by ensuring smoother scrolling and better responsiveness to user actions. Signed-off-by: Innei <tukon479@gmail.com> * feat: add class-variance-authority for GlassButton variants - Updated pnpm-lock.yaml to include class-variance-authority version 0.7.1. - Modified GlassButton component to utilize class-variance-authority for managing size and color scheme variants. - Updated PreviewMediaContent and other components to use the new variant prop for GlassButton. - Removed the deprecated AIChatInput component and related references. - Fixed import path for PanelSplitter in entry content layout. Signed-off-by: Innei <tukon479@gmail.com> * feat: enhance AI chat functionality and UI components - Introduced AIChatSendButton component for improved send button functionality in AI chat. - Updated AIChatMessage and AIPanelHeader to use new icon styles. - Integrated AIChatSendButton into AIChatInput and AIChatLayout for consistent UI. - Added toggleAIChatPinned command and updated related commands for better AI chat management. - Refactored entry context menu to hide specific actions related to AI chat. - Fixed import paths and updated localization for AI chat commands. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update layout components and improve conditional rendering - Refactored RightContent component to enhance conditional rendering logic for Grid and AIChatLayout based on realEntryId and isWideView. - Updated EntryHeader component styles to use new text color classes for better consistency. - Adjusted imports in hono.ts to reflect updated package versions for zod and drizzle-orm. Signed-off-by: Innei <tukon479@gmail.com> * feat: enhance AI chat features and session management - Updated AI chat components to support new session management features, including room switching and title generation. - Introduced session state management using Jotai for better handling of current room ID and title. - Added hooks for managing chat history and session persistence. - Implemented export functionality for chat sessions to Markdown format. - Enhanced UI with new components for chat input and welcome screen. - Updated localization for new chat features and actions. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update AI chat components and improve styling - Enhanced AIChatMessage with additional styling for better layout. - Introduced MarkdownLink in AIMarkdownMessage for improved link rendering. - Removed unused "step-start" case in AIMessageParts for cleaner code. - Simplified ToolInvocationComponent by removing unnecessary div. - Refactored useSettingModal to avoid circular dependency and improve clarity. Signed-off-by: Innei <tukon479@gmail.com> * feat: implement chat title generation and error handling in AI chat components - Added title generation functionality in AIChatRoot, triggered by the first AI response. - Updated ChatInput to display error messages with a new UI component. - Refactored title generation logic to utilize the first user and AI messages. - Removed unused props and streamlined session management in ChatInterface. - Enhanced error handling in chat components for improved user experience. Signed-off-by: Innei <tukon479@gmail.com> * refactor: improve ChatHeader and ChatInterface components - Adjusted ChatHeader height and updated mask image styling for better visual consistency. - Enhanced ChatInterface with scroll detection and a "Scroll to Bottom" button for improved user experience. - Introduced state management for scroll position to optimize chat interaction. - Cleaned up event listeners and added necessary imports for new functionality. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update layout styling in AI chat components - Modified div elements in ToolInvocationComponent, AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart to include max-width for improved responsiveness. - Added a blank line in ChatInterface for better code readability. Signed-off-by: Innei <tukon479@gmail.com> * refactor: enhance AI settings and chat components - Updated AI settings management by introducing aiServerSyncWhiteListKeys and integrating AISettings into the sync queue. - Improved the PersonalizePromptSetting component with character limit validation and dynamic feedback for user input. - Removed error toast in AIChatRoot for cleaner error handling. - Added new suggestion to the WelcomeScreen for enhanced user experience. Signed-off-by: Innei <tukon479@gmail.com> * refactor: enhance ChatInput component functionality - Integrated useInputComposition hook for improved key handling in ChatInput. - Updated key event handling logic to ensure proper focus management based on user input. - Streamlined textarea props by spreading inputProps for cleaner code. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update layout styling in AI display components - Removed max-width from div elements in AIDisplayEntriesPart, AIDisplayFeedsPart, and AIDisplaySubscriptionsPart for improved responsiveness. - Ensured consistent styling across AI display components. Signed-off-by: Innei <tukon479@gmail.com> * refactor: remove AIChatShortcuts component and enhance shortcut handling - Deleted the AIChatShortcuts component to streamline the codebase. - Integrated shortcut handling directly into the ChatInput and WelcomeScreen components for improved user experience. - Added functionality to process custom shortcuts and display them dynamically in the WelcomeScreen. Signed-off-by: Innei <tukon479@gmail.com> * refactor: implement CollapsibleError component for improved error display - Introduced a new CollapsibleError component to enhance error handling in the ChatInput. - Simplified error display logic by replacing inline error handling with the new component. - Updated common-states to maintain consistent error presentation across the application. Signed-off-by: Innei <tukon479@gmail.com> * refactor: re-organize AI components - Added AIChatContextBar, AIChatRoot, AIChatSendButton, and ToolInvocationComponent to improve chat interface. - Implemented displays for analytics, entries, feeds, and subscriptions, enhancing data presentation in chat. - Refactored ChatInput to integrate new components and streamline user interactions. - Enhanced message handling with AIChatMessage and AIMarkdownMessage for better content rendering. Signed-off-by: Innei <tukon479@gmail.com> * refactor: enhance dropdown menu layout and shortcut display - Updated DropdownMenuItem to improve spacing for shortcut display. - Adjusted AIChatContextBar to align dropdown menu content and ensure consistent presentation of shortcuts. - Removed redundant shortcut display logic for cleaner code. Signed-off-by: Innei <tukon479@gmail.com> * refactor: remove unused AI components and update imports - Deleted AISpline and mockShortcuts components to streamline the codebase. - Updated import paths for AISpline in WelcomeScreen and AIChatContainer to reflect the new structure. Signed-off-by: Innei <tukon479@gmail.com> * refactor: remove AI spline asset and update loader URL - Deleted the ai.splinecode asset file to streamline the project. - Updated AISplineLoader to use a direct URL for the AI spline asset, improving loading efficiency. Signed-off-by: Innei <tukon479@gmail.com> * refactor: enhance WelcomeScreen with settings modal integration - Added a button to edit the personal prompt in the WelcomeScreen, linking to the settings modal. - Improved layout for the personal prompt display by organizing elements within a flex container. Signed-off-by: Innei <tukon479@gmail.com> * refactor: streamline session state management and enhance UI components - Refactored session state management by creating reusable atom hooks for current room ID, title, and session persistence. - Updated AIChatRoot and related components to utilize the new hooks for improved state handling. - Enhanced ChatHeader to animate the display of the current title. - Adjusted ChatInterface to ensure proper state usage and maintain clean code structure. - Modified RightContent to remove unnecessary props for better clarity. Signed-off-by: Innei <tukon479@gmail.com> * refactor: implement message editing functionality in chat interface - Added EditableMessage component to allow users to edit their messages. - Integrated editing state management into AIChatMessage for seamless user experience. - Updated ChatInterface to handle error states and improve message display logic. - Enhanced user interaction with action buttons for editing, retrying, and copying messages. Signed-off-by: Innei <tukon479@gmail.com> * refactor: optimize AI chat components with memoization - Wrapped AIChatContextBar, ChatInput, and AIMessageParts components with memo for performance improvements. - Updated imports to include memo and adjusted component definitions accordingly. - Enhanced dropdown menu layout in ChatMoreDropdown for better usability and responsiveness. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update MermaidDiagram and ChatInput components - Removed loading icon from MermaidDiagram to simplify the rendering process. - Added context menu propagation prevention in ChatInput to enhance user interaction and prevent unwanted actions. Signed-off-by: Innei <tukon479@gmail.com> * refactor: update GlassButton component and related usages - Renamed 'variant' prop to 'theme' for clarity and introduced a new 'variant' prop for visual styles (glass and flat). - Updated styles and default values in the GlassButton component to reflect the new structure. - Adjusted usages of GlassButton across various components to align with the new prop names and styles. - Modified ChatInput component to enhance shadow styles for the minimal variant. Signed-off-by: Innei <tukon479@gmail.com> * refactor: enhance ToolInvocationComponent and WelcomeScreen - Updated ToolInvocationComponent to include a max-width style for better layout control. - Introduced a DEFAULT_SHORTCUTS array in WelcomeScreen to streamline the management of default suggestions. - Refactored the rendering logic in WelcomeScreen to utilize the new DEFAULT_SHORTCUTS array for displaying suggestions. Signed-off-by: Innei <tukon479@gmail.com> * feat: implement thinking indicator in AIMessageParts component - Replaced the static "AI is thinking..." message with a dynamic ThinkingIndicator component that animates the text display. - Integrated motion effects using the 'motion/react' library for a smoother user experience. - Updated the ChatInterface to utilize the new ThinkingIndicator for better visual feedback during AI processing. Signed-off-by: Innei <tukon479@gmail.com> * feat: add RelatedEntryLink component for enhanced link handling in AIMarkdownMessage - Introduced RelatedEntryLink to handle business ID links with a modal preview. - Updated link rendering logic in AIMarkdownMessage to utilize RelatedEntryLink for improved user interaction. - Enhanced markdown link handling by integrating peek modal functionality for business IDs. Signed-off-by: Innei <tukon479@gmail.com> * feat: update GlassButton styles and introduce EntryLayoutContent component - Enhanced GlassButton component styles for light, dark, and auto themes, improving visual consistency. - Added new EntryLayoutContent component to manage entry content display, integrating AI chat and entry content seamlessly. - Updated EntryContentPlaceholder to utilize the new flat variant of GlassButton for better UI consistency. - Refactored index export to use EntryLayoutContent as RightContentLayout. Signed-off-by: Innei <tukon479@gmail.com> * feat: integrate AI chat functionality and enhance toolbar interactions - Added AI chat feature toggle in useEntryActions, controlling visibility based on server configurations. - Updated the customize toolbar to include a warning for the AI chat pinned action. - Wrapped AISmartSidebar in a React.Suspense component for improved loading behavior. - Implemented error handling in AISmartSidebar to manage AI feature availability. - Added localization for the AI chat pinned warning message. Signed-off-by: Innei <tukon479@gmail.com> * fix: update useEntryActions to streamline entry properties - Added entry?.imagesLength and entry?.hasContent to the dependencies of useEntryActions for improved data handling. - Removed entry?.hasContent from the previous dependencies to avoid redundancy. - Adjusted the order of entry properties for better clarity and organization. Signed-off-by: Innei <tukon479@gmail.com> * ci: update Claude workflow to enhance PR assistance functionality - Renamed workflow from "Claude Code Review" to "Claude PR Assistant" - Updated event triggers to include issue comments, pull request review comments, and issues - Simplified job conditions for running the Claude action - Changed step name to "Run Claude PR Action" and adjusted parameters for improved integration Signed-off-by: Innei <tukon479@gmail.com> * refactor(shortcuts): remove unused shortcut settings component - Deleted the `ShortcutSetting` component and its associated logic, including custom shortcut handling and reset functionality. - Cleaned up related components and interfaces to streamline the shortcuts management code. This change simplifies the shortcuts management by removing unnecessary complexity and unused code. Signed-off-by: Innei <tukon479@gmail.com> * Implement code changes to enhance functionality and improve performance Signed-off-by: Innei <tukon479@gmail.com> * fix: types --------- Signed-off-by: Innei <tukon479@gmail.com> Co-authored-by: DIYgod <i@diygod.me>
411 lines
9.2 KiB
CSS
411 lines
9.2 KiB
CSS
/* This CSS File do not import anywhere, just write atom class for tailwindcss. The tailwindcss intellisense will be work. */
|
|
|
|
@tailwind components;
|
|
|
|
@layer components {
|
|
.drag-region {
|
|
-webkit-app-region: drag;
|
|
}
|
|
|
|
.no-drag-region {
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
.mask-squircle {
|
|
mask-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAwJyBoZWlnaHQ9JzIwMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cGF0aCBkPSdNMTAwIDBDMjAgMCAwIDIwIDAgMTAwczIwIDEwMCAxMDAgMTAwIDEwMC0yMCAxMDAtMTAwUzE4MCAwIDEwMCAwWicvPjwvc3ZnPg==);
|
|
}
|
|
.mask {
|
|
mask-size: contain;
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
}
|
|
|
|
.center {
|
|
@apply flex items-center justify-center;
|
|
}
|
|
|
|
.shadow-perfect {
|
|
/* https://codepen.io/jh3y/pen/yLWgjpd */
|
|
--tint: 214;
|
|
--alpha: 3;
|
|
--base: hsl(var(--tint, 214) 80% 27% / calc(var(--alpha, 4) * 1%));
|
|
/**
|
|
* Use relative syntax to get to: hsl(221 25% 22% / 40%)
|
|
*/
|
|
--shade: hsl(from var(--base) calc(h + 8) 25 calc(l - 5));
|
|
--perfect-shadow:
|
|
0 0 0 1px var(--base), 0 1px 1px -0.5px var(--shade), 0 3px 3px -1.5px var(--shade),
|
|
0 6px 6px -3px var(--shade), 0 12px 12px -6px var(--base), 0 24px 24px -12px var(--base);
|
|
box-shadow: var(--perfect-shadow);
|
|
}
|
|
|
|
.perfect-sm {
|
|
--alpha: 1;
|
|
}
|
|
|
|
.perfect-md {
|
|
--alpha: 2;
|
|
}
|
|
|
|
[theme="dark"] .shadow-perfect {
|
|
--tint: 221;
|
|
}
|
|
|
|
.shadow-modal {
|
|
@apply shadow-2xl shadow-stone-300 dark:shadow-stone-900;
|
|
}
|
|
/* Utils */
|
|
.no-animation {
|
|
--btn-focus-scale: 1;
|
|
--animation-btn: 0;
|
|
--animation-input: 0;
|
|
}
|
|
|
|
@keyframes radiomark {
|
|
0% {
|
|
box-shadow:
|
|
0 0 0 12px var(--fallback-b1, oklch(var(--b1) / 1)) inset,
|
|
0 0 0 12px var(--fallback-b1, oklch(var(--b1) / 1)) inset;
|
|
}
|
|
|
|
50% {
|
|
box-shadow:
|
|
0 0 0 3px var(--fallback-b1, oklch(var(--b1) / 1)) inset,
|
|
0 0 0 3px var(--fallback-b1, oklch(var(--b1) / 1)) inset;
|
|
}
|
|
|
|
to {
|
|
box-shadow:
|
|
0 0 0 4px var(--fallback-b1, oklch(var(--b1) / 1)) inset,
|
|
0 0 0 4px var(--fallback-b1, oklch(var(--b1) / 1)) inset;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* KBD */
|
|
@layer components {
|
|
.kbd {
|
|
background-color: oklch(0.984625 0.001706 247.839);
|
|
/* @apply shadow-[0px_2px_0px_0px_rgba(255,255,255,0.5)] dark:shadow-[0px_2px_0px_0px_rgba(0,0,0,0.6)]; */
|
|
@apply rounded-[4px] px-1 text-[0.5em];
|
|
@apply border border-zinc-300 font-mono dark:border-neutral-700;
|
|
@apply inline-flex items-center justify-center;
|
|
}
|
|
|
|
[data-theme="dark"] .kbd {
|
|
background-color: oklch(0.232607 0.013807 253.101);
|
|
}
|
|
}
|
|
|
|
/* Checkbox */
|
|
@layer components {
|
|
.checkbox {
|
|
--chkbg: theme(colors.accent);
|
|
--chkfg: theme(colors.zinc.100);
|
|
|
|
flex-shrink: 0;
|
|
height: 0.9em;
|
|
width: 0.9em;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
border-radius: 5px;
|
|
border-width: 1px;
|
|
border-color: theme(colors.border);
|
|
--tw-border-opacity: 0.2;
|
|
}
|
|
|
|
.checkbox:focus {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.checkbox:focus-visible {
|
|
outline-style: solid;
|
|
outline-width: 2px;
|
|
outline-offset: 2px;
|
|
outline-color: theme(colors.accent);
|
|
border-color: theme(colors.accent);
|
|
}
|
|
|
|
.checkbox:disabled {
|
|
border-width: 0;
|
|
cursor: not-allowed;
|
|
border-color: transparent;
|
|
--tw-bg-opacity: 1;
|
|
background-color: var(--chkbg);
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.checkbox:checked,
|
|
.checkbox[aria-checked="true"] {
|
|
background-repeat: no-repeat;
|
|
animation: checkmark var(--animation-input, 0.2s) ease-out;
|
|
border-color: theme(colors.accent);
|
|
background-color: var(--chkbg);
|
|
background-image:
|
|
linear-gradient(-45deg, transparent 65%, var(--chkbg) 65.99%),
|
|
linear-gradient(45deg, transparent 75%, var(--chkbg) 75.99%),
|
|
linear-gradient(-45deg, var(--chkbg) 40%, transparent 40.99%),
|
|
linear-gradient(
|
|
45deg,
|
|
var(--chkbg) 30%,
|
|
var(--chkfg) 30.99%,
|
|
var(--chkfg) 40%,
|
|
transparent 40.99%
|
|
),
|
|
linear-gradient(-45deg, var(--chkfg) 50%, var(--chkbg) 50.99%);
|
|
}
|
|
|
|
@keyframes checkmark {
|
|
0% {
|
|
background-position-y: 5px;
|
|
}
|
|
|
|
50% {
|
|
background-position-y: -2px;
|
|
}
|
|
|
|
to {
|
|
background-position-y: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Context menu */
|
|
@layer components {
|
|
.shadow-context-menu {
|
|
box-shadow:
|
|
rgba(0, 0, 0, 0.067) 0px 3px 8px,
|
|
rgba(0, 0, 0, 0.067) 0px 2px 5px,
|
|
rgba(0, 0, 0, 0.067) 0px 1px 1px;
|
|
}
|
|
}
|
|
|
|
/* Link */
|
|
@layer components {
|
|
.follow-link--underline {
|
|
color: currentColor;
|
|
background-image: linear-gradient(theme(colors.accent), theme(colors.accent));
|
|
background-size: 0% 1.5px;
|
|
background-repeat: no-repeat;
|
|
/* NOTE: this won't work with background images */
|
|
|
|
transition: all 500ms ease;
|
|
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
|
|
@apply decoration-accent/30 hover:no-underline;
|
|
@apply border-0;
|
|
|
|
background-position: left 1.1em;
|
|
|
|
&::selection {
|
|
text-shadow: none !important;
|
|
}
|
|
|
|
&:hover {
|
|
background-size: 100% 1.5px;
|
|
text-shadow:
|
|
0.05em 0 theme(colors.background),
|
|
-0.05em 0 theme(colors.background);
|
|
|
|
transition: all 250ms ease;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.scrollbar-none {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.scrollbar-none::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.shadow-drawer-to-left {
|
|
box-shadow:
|
|
-12px 0 20px -6px rgba(41, 41, 41, 0.1),
|
|
24px 0 20px -6px rgba(41, 41, 41, 0.1);
|
|
}
|
|
[data-theme="dark"] .shadow-drawer-to-left {
|
|
box-shadow:
|
|
-12px 0px 20px -6px rgba(0, 0, 0, 0.653),
|
|
24px 0 20px -6px rgba(0, 0, 0, 0.653);
|
|
}
|
|
|
|
.shadow-drawer-to-right {
|
|
box-shadow: 12px 0px 20px -6px rgba(41, 41, 41, 0.1);
|
|
}
|
|
[data-theme="dark"] .shadow-drawer-to-right {
|
|
box-shadow: 12px 0px 20px -6px rgba(0, 0, 0, 0.653);
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.animate-mask-in {
|
|
animation: mask-in 0.5s ease-in-out forwards;
|
|
}
|
|
@keyframes mask-in {
|
|
0% {
|
|
mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 150% 0 / 400% no-repeat;
|
|
opacity: 0.2;
|
|
}
|
|
100% {
|
|
mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 0 / 400% no-repeat;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.shadow-tooltip-bottom {
|
|
--bg: theme(colors.accent/0.3);
|
|
box-shadow: 0px 5px 20px -11px var(--bg);
|
|
}
|
|
|
|
.shadow-tooltip-top {
|
|
--bg: theme(colors.accent/0.3);
|
|
box-shadow: 0px -5px 20px -11px var(--bg);
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.easing-spring {
|
|
animation-timing-function: var(--spring-easing);
|
|
animation-duration: var(--spring-duration);
|
|
}
|
|
.spring-soft {
|
|
--spring-easing: linear(
|
|
0,
|
|
0.0019,
|
|
0.0073 1.2%,
|
|
0.0274 2.39%,
|
|
0.0624,
|
|
0.1075 5.08%,
|
|
0.2108 7.62%,
|
|
0.4632 13.15%,
|
|
0.5727 15.69%,
|
|
0.6768 18.38%,
|
|
0.7617 20.92%,
|
|
0.8365,
|
|
0.8963 26.29%,
|
|
0.921 27.64%,
|
|
0.9447,
|
|
0.9647,
|
|
0.9813 32.12%,
|
|
1.0028 34.66%,
|
|
1.0185 37.5%,
|
|
1.0279 40.64%,
|
|
1.0315 44.07%,
|
|
1.0291 49%,
|
|
1.0105 62.9%,
|
|
1.0028 71.86%,
|
|
0.9994 82.62%,
|
|
0.9993 99.95%
|
|
);
|
|
--spring-duration: 1.157s;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.animate-flip {
|
|
animation: flip 0.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes flip {
|
|
0% {
|
|
transform: rotateY(0deg);
|
|
}
|
|
100% {
|
|
transform: rotateY(180deg);
|
|
}
|
|
}
|
|
|
|
@keyframes rocketAnimation {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translate(2px, -1px);
|
|
}
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.animate-rocket {
|
|
animation: rocketAnimation 1s infinite ease-out;
|
|
}
|
|
|
|
@keyframes radialPulse {
|
|
0% {
|
|
background: radial-gradient(
|
|
circle,
|
|
var(--highlight-color, hsl(var(--fo-a) / 0.3)) 0%,
|
|
transparent 0%
|
|
);
|
|
}
|
|
40% {
|
|
background: radial-gradient(
|
|
circle,
|
|
var(--highlight-color, hsl(var(--fo-a) / 0.3)) 0%,
|
|
transparent 50%
|
|
);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
background: radial-gradient(
|
|
circle,
|
|
var(--highlight-color, oklch(var(--fo-a) / 0.3)) 0%,
|
|
transparent 80%
|
|
);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.animate-mask-left-to-right {
|
|
animation: mask-left-to-right var(--animation-duration, 0.5s) ease-in-out forwards;
|
|
}
|
|
@keyframes mask-left-to-right {
|
|
0% {
|
|
mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 150% 0 / 400% no-repeat;
|
|
opacity: 0.2;
|
|
}
|
|
100% {
|
|
mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 0 / 400% no-repeat;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
@layer components {
|
|
.mask-b {
|
|
mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 20px), rgba(255, 255, 255, 0) 100%);
|
|
}
|
|
|
|
.mask-b-lg {
|
|
mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 50px), rgba(255, 255, 255, 0) 100%);
|
|
}
|
|
|
|
.mask-b-xl {
|
|
mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 70px), rgba(255, 255, 255, 0) 100%);
|
|
}
|
|
|
|
.mask-b-2xl {
|
|
mask-image: linear-gradient(rgb(255, 255, 255) calc(100% - 90px), rgba(255, 255, 255, 0) 100%);
|
|
}
|
|
|
|
.mask-horizontal {
|
|
mask-image: linear-gradient(
|
|
90deg,
|
|
rgba(255, 255, 255, 0) 0%,
|
|
rgba(255, 255, 255, 1) 14%,
|
|
rgba(255, 255, 255, 1) 86%,
|
|
rgba(255, 255, 255, 0) 100%
|
|
);
|
|
}
|
|
}
|