Commit Graph

12 Commits

Author SHA1 Message Date
Innei c4ac1b1875
feat(ai): add ai mention plugin (#4305)
* init

* refactor

* implement mention plugin for chat input

- Updated pnpm-lock.yaml and pnpm-workspace.yaml to include new versions of @floating-ui packages.
- Added MentionPlugin to the chat input component, enabling mention functionality.
- Created necessary components, hooks, and utilities for mention handling, including MentionNode, MentionDropdown, and related styles.
- Refactored existing code to integrate mention features seamlessly into the chat interface.

This update enhances the chat experience by allowing users to mention others easily, improving interactivity and engagement.

Signed-off-by: Innei <tukon479@gmail.com>

* Enhance mention functionality in chat editor

- Integrated MentionNode into AIRichTextMessage for improved mention handling.
- Updated MentionPlugin to utilize new hooks for mention search and insertion.
- Added useMentionIntegration and useMentionSearchService hooks for better mention management.
- Created contextBarSearchService and feedEntrySearchService for unified search functionality.
- Refactored LexicalRichEditor to support custom nodes from plugins.

This update improves the chat experience by streamlining mention interactions and enhancing search capabilities.

Signed-off-by: Innei <tukon479@gmail.com>

* Enhance mention integration and synchronization in chat editor

- Updated ChatInput layout for improved button positioning.
- Added select-none class to mention styles for better user experience.
- Refactored MentionDropdown to improve the display of mention types and content.
- Introduced useMentionBlockSync hook for bidirectional synchronization between mention nodes and context blocks.
- Enhanced useMentionIntegration to handle mention insertion with node key tracking.
- Implemented useMentionSearchService for streamlined mention search functionality.

These changes improve the overall mention handling and user interaction within the chat editor, making it more intuitive and efficient.

Signed-off-by: Innei <tukon479@gmail.com>

* Refactor ChatInput layout to include ScrollArea for improved scrolling experience

- Wrapped LexicalRichEditor in a ScrollArea component to enhance the input area’s usability.
- Adjusted styles in LexicalRichEditor for better layout consistency.

These changes aim to improve user interaction within the chat input by providing a more flexible scrolling interface.

Signed-off-by: Innei <tukon479@gmail.com>

* Remove deprecated mention functionality and update MentionNode for markdown export

- Deleted mention-related files and types as functionality has been moved to the desktop app.
- Updated MentionNode to change the text content format for markdown export.
- Refactored useMentionBlockSync to remove unused helper functions and streamline dependencies.
- Adjusted LexicalRichEditor placeholder styles for better alignment.

These changes clean up the codebase by removing obsolete mention features and enhancing the current mention handling in the chat editor.

Signed-off-by: Innei <tukon479@gmail.com>

* Implement AI chat message tracking functionality

- Added tracking for AI chat messages sent by integrating the tracker module into the ChatInterface component.
- Introduced a new tracker point for AIChatMessageSent in the TrackerMapper enum.
- Removed deprecated entry tracking methods to streamline the tracking process.

These changes enhance the analytics capabilities of the chat interface by monitoring AI interactions more effectively.

Signed-off-by: Innei <tukon479@gmail.com>

* Update VSCode settings for Tailwind CSS and i18n-ally configuration

- Streamlined the tailwindCSS.experimental.classRegex by removing unnecessary line breaks for better readability.
- Consolidated the tailwindCSS.experimental.configFile and i18n-ally settings into single-line arrays for consistency.
- Ensured proper formatting and alignment of settings to enhance maintainability.

These changes improve the clarity and organization of the VSCode settings file.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-08-04 23:06:15 +08:00
Innei 4f78a8aa48
refactor: ai module and implement rich text (#4282) 2025-07-31 00:16:40 +08:00
Konv Suu ea1b6c2514
fix: update losing dependency and type error (#4054) 2025-07-01 16:33:32 +08:00
Innei d93cc930a5
fix: type error
Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 00:19:42 +08:00
Innei 4c80e83787
feat(analytics): add posthog-react-native integration and session management
- Integrated posthog-react-native for enhanced analytics tracking.
- Added client and session ID management functionality.
- Updated Info.plist and Expo.plist for configuration changes.
- Updated package dependencies to include posthog-react-native version 4.1.3.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 19:44:25 +08:00
Innei 616e794d4c
feat(tracking): integrate PostHog and Firebase tracking, add client and session ID management
Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 17:11:15 +08:00
Innei 6d76d6b558
chore: update dependencies and improve type safety
- Updated various package dependencies across the project, including @sentry/react, @tanstack/react-query, and others to their latest versions for improved performance and security.
- Enhanced type safety in several components by refining type definitions, particularly in motion-related imports.
- Adjusted transition configurations to utilize new presets for smoother animations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-20 23:32:42 +08:00
Innei 49b876f32f
fix(tracker): refactor user property management and language detection
- Updated analytics initialization to append user properties more effectively.
- Changed PostHog configuration to always identify person profiles.
- Introduced methods in TrackerManager for managing user properties, including appending and clearing.
- Improved sign-out process to clear user properties from the tracker.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 22:18:02 +08:00
Innei 726a312545
feat(tracker): integrate PostHog analytics and enhance tracking capabilities (#3862)
- Added PostHog as a new tracking adapter for improved analytics.
- Updated the analytics initialization to include PostHog configuration.
- Refactored the tracking manager to support batch processing and error handling.
- Enhanced the existing tracking logic to accommodate new event types and properties.
- Updated environment variables to include PostHog keys for configuration.
- Added new rules and documentation for the tracking system.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-05 21:54:58 +08:00
Innei e656cfd3a2
chore: update dependencies
- Changed the ESLint rule for "package-json-extend/ensure-package-version" from "warn" to "error" to enforce stricter package version checks.
- Updated various dependencies across multiple package.json files, including:
  - Upgraded @eslint/compat to version 1.2.9
  - Updated @types/node, @types/react, and @types/react-dom to their latest versions.
  - Bumped eslint to version 9.27.0 and lint-staged to version 16.1.0.
  - Updated several other packages such as turbo, tsx, and various Radix UI components to their latest versions.
- Ensured compatibility with the latest versions of dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-28 22:16:06 +08:00
DIYgod afb7d57b82
feat(desktop): SubscribeModalOpened tracker event 2025-05-14 22:58:20 +08:00
Innei 4d746522f1
refactor: remove unused files and clean up project structure
- Deleted obsolete configuration files and unused components across various packages.
- Updated package.json files to reflect the removal of dependencies.
- Cleaned up code by removing unnecessary exports and unused imports in multiple modules.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-28 20:58:51 +08:00