Commit Graph
5889 Commits
Author SHA1 Message Date
Stephen Zhou 9ab7400a33 feat: introduce media layout to unify video and picture layout 2025-09-22 15:18:30 +08:00
Stephen Zhou 7eec68a830 fix: image position by remove useless aspect ratio component 2025-09-22 11:08:13 +08:00
Stephen Zhou 69ef7505e8 fix: add ai chat root to preview media content 2025-09-22 10:38:03 +08:00
Stephen Zhou efc00e0d03 fix: pass as to combobox 2025-09-22 10:27:24 +08:00
DIYgod 0cb65c7d16 feat(ai-chat): add inline folo reference icons 2025-09-21 16:43:24 +08:00
Innei d064433879 chore: update posthog-react-native dependency to version 4.6.1 in package.json and pnpm-lock.yaml
- Updated the version of posthog-react-native from 4.1.3 to 4.6.1 to ensure compatibility with the latest features and fixes.
- Adjusted related dependencies in pnpm-lock.yaml for consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-20 16:58:33 +08:00
Innei d5f1440fe2 fix: refine issue similarity prompt to exclude current issue ID
- Updated the prompt to ensure that issues with the same ID/number as the current issue are excluded from the similarity search results.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-20 15:57:08 +08:00
Innei 49ef017af5 fix(ssr): jsx transformer error
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-20 15:15:58 +08:00
Innei c7db884615 chore: rollback deps deletion
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-20 01:32:55 +08:00
Innei 0f10ef5591 refactor: update error handling in OG route and clean up dependencies
- 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>
2025-09-20 01:32:15 +08:00
Innei a421e79d46 fix(ssr): tsdown build error
- Updated metro-config dependency in pnpm-lock.yaml to include utf-8-validate.
- Reformatted tsconfig.json for better readability and consistency in array and object structures.
- Ensured proper newline handling in package.json and tsconfig.json files.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-20 00:46:00 +08:00
Stephen Zhou a4baa19abe chore: downgrade linkedom 2025-09-19 23:09:44 +08:00
Stephen Zhou d04d5dfd62 chore: update @sentry/electron and patch 2025-09-19 22:43:28 +08:00
Stephen Zhou b8eb83fe63 chore: lint 2025-09-19 22:24:30 +08:00
Innei 792134d9ae chore: update dependencies across multiple packages for improved stability and performance
- 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>
2025-09-19 22:02:30 +08:00
Innei 5194e6e6b6 fix: update payload handling in settings sync queue to spread object properties
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-19 21:24:11 +08:00
Stephen Zhou 49fc1ad874 fix: no main feed for view 2025-09-19 16:57:17 +08:00
lawvs 11e66ec5a7 fix: enhance DiscoverForm with improved keyword handling
- 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.
2025-09-19 16:16:22 +08:00
lawvs 42d0f10a46 chore: sync AI chat session title on task name update 2025-09-19 15:26:52 +08:00
Justin Ling 3f2a479084 fix: preserve unchanged fields when editing feed (#4496) 2025-09-19 12:50:56 +08:00
Konv Suu 594b419e97 feat: enhance modal layout with improved styling and structure (#4500) 2025-09-19 12:50:02 +08:00
DIYgod 9b1061b810 feat: simplify all view 2025-09-18 21:21:47 +08:00
DIYgod ed211aaef6 feat: remove unused default shortcuts from welcome content 2025-09-18 19:52:08 +08:00
Innei 30ea1271f5 feat: update AI chat interface and entry item styles for improved user experience
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-18 14:55:28 +08:00
Stephen Zhou 42eaf2f815 feat: support folder as current feed 2025-09-18 14:24:32 +08:00
Stephen Zhou 5cb2a2647e feat: add current feed block 2025-09-18 13:13:34 +08:00
DIYgod 48e84ca209 feat: aggregated ai chain of thought 2025-09-18 11:55:45 +08:00
Innei 4d4dce682c feat: add warning message for AI-generated content accuracy
Signed-off-by: Innei <tukon479@gmail.com>
2025-09-18 00:49:15 +08:00
Innei a04008fddd fix: ai layout elements style
- 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>
2025-09-18 00:11:42 +08:00
lawvs 7538e766b8 chore: add minimum release age configuration 2025-09-18 00:06:04 +08:00
Innei ffd381ada3 refactor: streamline timeline summary handling in WelcomeScreen
- 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>
2025-09-17 23:44:44 +08:00
DIYgod 27a8507337 feat: use ZustandChat in timeline summary ai 2025-09-17 21:38:28 +08:00
DIYgod 51fa498b8b fix: types 2025-09-17 20:20:44 +08:00
DIYgod 2c9fc3f0a0 feat: update timeline summary handling and message structure 2025-09-17 20:16:50 +08:00
DIYgod 0011034254 feat: add timeline summary feature 2025-09-17 17:39:49 +08:00
Stephen Zhou 84b5932dfb fix: update client sdk to fix stream api 2025-09-17 11:49:30 +08:00
DIYgod 2b75844187 fix: adjust half screen width calculation for AI chat panel 2025-09-17 09:40:20 +08:00
Innei f067404151 feat(timeline): add feed icon to timeline header
- 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>
2025-09-17 00:54:58 +08:00
d4b1333617 refactor: migrate to client sdk (#4480)
* init

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

* refactor: migrate API calls to followClient for improved consistency

- Replaced instances of apiClient with followClient in various modules, including push notifications, analytics, achievements, and wallet management.
- Updated related functions to ensure compatibility with the new API structure.
- This refactor enhances code maintainability and aligns with the new client architecture.

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

* refactor: update API calls to followClient for consistency

- Replaced instances of apiClient with followClient across various modules, including metadata, entries, feeds, lists, and inbox management.
- Adjusted related functions to align with the new API structure, enhancing maintainability and consistency throughout the codebase.

These changes improve the overall architecture by standardizing API interactions.

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

* update

* chore: update dependencies and improve profile settings

- Bumped versions of `@better-auth/expo`, `better-auth`, and `@better-auth/stripe` to 1.3.9 for enhanced functionality.
- Updated `@follow-app/client-sdk` reference in internal shared package.
- Added new fields (`bio`, `website`, `socialLinks`) to the profile settings form and adjusted related types for better user data handling.
- Minor adjustments in user store to accommodate new social links data structure.

These changes improve the profile management experience and ensure compatibility with updated dependencies.

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

* ssr done

* fix type error for action

* chore: update @follow-app/client-sdk to version 0.3.58 and refactor related code

- Updated the version of `@follow-app/client-sdk` to 0.3.58 in `pnpm-lock.yaml` and `pnpm-workspace.yaml`.
- Refactored various components and modules to utilize the updated SDK, including changes in type imports and API calls.
- Removed deprecated `api-fetch` module and replaced it with `followClient` for API interactions.
- Enhanced type safety and consistency across the application by adjusting type definitions and ensuring proper data handling.

These updates improve the overall code quality and maintainability while ensuring compatibility with the latest SDK features.

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

* chore: remove hono

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

* fix action type for mobile

* fix(mobile): exclude all view type

* fix(mobile): exclude all for views

* fix(mobile): html render not work

* feat(mobile): auto show source content support

* fix(mobile): show source content action

* feat: more stable switching timeline back to top

* refactor: simplify entry actions handling and improve context menu integration

- Removed the 'compact' parameter from several components to streamline the entry actions logic.
- Updated the CommandActionButton usage in ActionBar for better context menu interaction.
- Enhanced the ActionBar component to handle mouse position for context menu display.
- Cleaned up imports and adjusted related components to reflect the changes in props and structure.

These modifications aim to improve code clarity and maintainability while ensuring consistent functionality across entry actions.

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

* refactor: streamline ChatInput key handling logic

- Simplified the Enter key handling in the ChatInput component by removing unnecessary conditions.
- Ensured that the handleSend function is called directly when the Enter key is pressed, improving code clarity.

These changes enhance the readability and maintainability of the ChatInput component.

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

* fix: breadcrumb return back prev page logic

- Updated the logic in useNavigateEntry to ensure the final view is determined correctly based on the type of the view parameter.
- Refactored the EntryTitle component to simplify the rendering of recent readers, improving readability and maintainability.
- Adjusted the EntryHeaderBreadcrumb to pass the view parameter during navigation, enhancing functionality.

These changes aim to improve code clarity and ensure consistent behavior across navigation and entry display components.

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

* refactor: enhance navigation by integrating view parameter retrieval

- Updated EntryColumnShortcutHandler to utilize getRouteParams for retrieving the view parameter during navigation.
- Ensured that the view parameter is passed correctly when navigating to the next entry, improving the consistency of navigation behavior.

These changes aim to enhance the clarity and functionality of the entry column navigation logic.

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

* refactor: enhance modal styling and structure

- Updated modal component styles for improved visual consistency, including changes to border radius, padding, and text styles.
- Adjusted shadow properties in the Tailwind CSS configuration for better appearance in both light and dark themes.
- Refined layout and spacing within the modal to enhance user experience.

These changes aim to improve the overall aesthetics and usability of the modal component.

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

* refactor: enhance entry actions handling and toolbar integration

- Updated the HIDE_ACTIONS_IN_ENTRY_CONTEXT_MENU to explicitly define its type for better type safety.
- Introduced HIDE_ACTIONS_IN_ENTRY_TOOLBAR_ACTIONS to consolidate hidden actions for the toolbar.
- Refactored ActionBar to utilize useSortedEntryActions for improved action filtering and rendering.

These changes aim to streamline the entry actions logic and improve the maintainability of the ActionBar component.

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

* chore: remove zen and wider mode

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

* feat: enhance subscription column functionality

- Introduced new components for managing subscription entries, including EntrySubscriptionItem and EntrySubscriptionList, to improve the display and interaction within the subscription column.
- Added hooks for handling entry visibility and data fetching, optimizing performance and user experience.
- Implemented a toolbar for toggling the visibility of the entry list, enhancing user control over the interface.
- Refactored sidebar atoms to support new subscription-related states and actions.

These changes aim to provide a more robust and user-friendly experience in managing subscriptions within the application.

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

* feat: integrate EntriesContext for improved subscription management

- Added EntriesProvider and context to manage subscription entries more effectively across components.
- Refactored EntrySubscriptionList and related components to utilize the new context for data fetching and state management.
- Introduced EntrySubscriptionSkeleton for better loading states in the subscription column.
- Removed the outdated useEntrySubscriptionData hook to streamline data handling.

These changes enhance the overall architecture and performance of the subscription column, providing a more cohesive user experience.

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

* chore: fix lock

* fix: remove duplicated feed id, improve performance

* feat: back to feed first

* feat: replace MediaGallery with inline media rendering in SocialMediaLayout

* release(mobile): release v0.2.8

* chore(mobile): update build ID increment script and configuration

- Added a force flag to the build ID increment script to allow manual increments regardless of branch or staged changes.
- Updated iOS build version in Info.plist from 134 to 135.
- Removed unused changelog CLI configuration file.
- Modified bump.config.ts to disable tagging for mobile releases.

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

* chore: adjust AI chat sidebar and error handling styles

- Added keyboard shortcut support for toggling AI chat in AISmartSidebar.
- Improved styling and transition effects in CollapsibleError for better user experience.
- Updated EntryReadHistory to conditionally render based on user visibility.
- Refactored SourceContentView to simplify rendering logic and improve performance.
- Enhanced Kbd component to support abbreviations for better accessibility.

These changes aim to improve the functionality and usability of the AI chat features and related components.

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

* refactor: implement comprehensive app layout architecture

- Introduced a new layout architecture for the Follow application, leveraging React Router v7's nested routing capabilities.
- Added multiple layout components including MainDestopLayout, TimelineEntryTwoColumnLayout, AIEnhancedTimelineLayout, and SubviewLayout to support various application modes.
- Enhanced the AI chat functionality with a dedicated AIChatLayout, allowing for dynamic panel styles based on user preferences.
- Implemented responsive design features and error handling mechanisms across layouts to improve user experience.
- Refactored existing components to utilize the new layout structure, ensuring a cohesive and maintainable codebase.

These changes establish a robust foundation for the application's UI, enhancing flexibility and user interaction.

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

* chore: update bump configuration for PR creation

- Changed the base branch for the GitHub PR creation command from 'main' to 'mobile-main' to align with the new branching strategy.
- Removed the changelog generation script from package.json to streamline the build process.

These updates ensure proper versioning and integration with the new mobile branch structure.

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

* feat: implement entry context menu functionality

- Added a new hook, useEntryContextMenu, to manage context menu actions for entry items, including copy functionality.
- Integrated the context menu into EntrySubscriptionItem and EntryItemWrapper components, enhancing user interaction with entry items.
- Streamlined context menu handling by consolidating related logic into the new hook, improving code maintainability.

These changes provide a more intuitive context menu experience for users interacting with entries.

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

* feat: enhance media preview functionality with drag context

- Introduced a new context for managing drag state in the media preview component, allowing for improved user interaction during image dragging.
- Updated the image viewer to handle click events more effectively, considering drag state and timing to prevent unintended dismissals.
- Refactored the modal component to ensure the title is correctly rendered, enhancing accessibility.

These changes improve the overall user experience when interacting with media previews, making the interface more intuitive and responsive.

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

* chore: update client SDK version and dependencies

- Bumped the version of '@follow-app/client-sdk' from 0.3.59 to 0.3.60 in both pnpm-lock.yaml and pnpm-workspace.yaml.
- Updated dependencies for '@folo-services/drizzle' from 0.1.26 to 0.1.27, and '@folo-services/shared' from 0.0.24 to 0.0.25, ensuring compatibility with the latest changes.
- Adjusted Vite configuration to use 'join' instead of 'resolve' for path handling, enhancing code clarity and consistency.
- Removed an unused import in VideoPlayer component to streamline the code.

These updates improve dependency management and maintain code quality across the project.

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

* fix: interceptor

* chore: update client SDK version to 0.3.64

- Bumped the version of '@follow-app/client-sdk' from 0.3.63 to 0.3.64 in pnpm-lock.yaml and pnpm-workspace.yaml.
- Adjusted component styles in the header for improved layout consistency.
- Refactored user ID handling in metadata fetching to enhance error handling and clarity.
- Updated API client fetch method to use the native fetch function for better compatibility.
- Added User-Agent header in SSR API headers for improved request handling.

These changes ensure the application is up-to-date with the latest SDK version and improve overall code quality and user experience.

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

* chore: update client SDK path in pnpm configuration

- Changed the '@follow-app/client-sdk' entry in pnpm-lock.yaml and pnpm-workspace.yaml from version 0.3.64 to a local path for development purposes.
- Refactored the fetchEntryContentByStream method in store.ts to simplify its parameters and improve API call handling.

These updates facilitate local development and enhance code clarity in the entry synchronization service.

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

* chore: remove hono

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

* chore: update better-auth and expo dependencies to version 1.3.11

- Updated '@better-auth/expo' and 'better-auth' to version 1.3.11 in mobile and shared packages.
- Updated '@better-auth/stripe' to version 1.3.11 in shared package.
- Adjusted peer dependencies for better-auth to reflect the new version.

This update ensures compatibility with the latest features and fixes in the better-auth library.

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

* refactor: update auth module imports and clean up code

- Changed import path for AuthPlugins from '@follow-app/client-sdk' to '@follow-app/client-sdk/auth'.
- Removed commented-out socialLinks field from the baseAuthPlugins definition for clarity.
- Added a new line for better code readability.

These changes improve the organization and maintainability of the auth module.

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

* fix: restore socialLinks field in baseAuthPlugins definition

- Reintroduced the socialLinks field in the baseAuthPlugins configuration, allowing for JSON type input.
- This change enhances the flexibility of the authentication module by enabling social link integration.

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

* feat: enhance API client and entry list hooks

- Added a request interceptor to the FollowClient to append a timestamp to the URL for cache-busting.
- Simplified the fetch call in the entry list hooks by removing unnecessary parameters, improving code clarity.
- Added a new line in the entry sync services to enhance readability.

These changes improve the functionality and maintainability of the API client and entry list hooks.

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

* fix: add missing type error suppression for authClientContext

- Added a TypeScript error suppression comment for the authClientContext.provide call to prevent type-checking issues.
- This change ensures smoother integration of the authentication client in the application.

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

* fix lint

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

* lint

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
2025-09-17 00:12:54 +08:00
Whitewater 1e2835faed chore: update dependencies to latest versions (#4490)
* chore: update deps

* chore: update camelcase-keys to version 10.0.0

* chore: update electron-context-menu to version 4.1.1 and remove associated patch

* fix: ts lock

* fix: downgrade linkedom to version 0.18.11

Related to  https://github.com/WebReflection/linkedom/issues/249
2025-09-16 12:49:29 +00:00
Whitewater cde799da4e chore: update dependencies (#4488)
* chore: update deps

* chore: remove immer patch

* chore: revert @sentry/electron upgrade

* chore: update deps

* chore: dedupe
2025-09-16 19:19:52 +08:00
Whitewater c30fd0dbf5 chore: should not ignore patch failures (#4489) 2025-09-16 18:01:30 +08:00
Stephen Zhou 1d0986532d fix: keep fetchNextPage up to date 2025-09-16 16:01:58 +08:00
Stephen Zhou aed6ac9a71 fix: fallback to audio attachment duration 2025-09-16 14:50:09 +08:00
Innei d54708a9e6 feat: enhance general settings with compact timeline option
- Added a new setting to show timeline items in the subscription column while reading, improving user experience for content navigation.
- Updated localization files to include descriptions and labels for the new setting in English, Japanese, Chinese (Simplified and Traditional).
- Refactored the settings structure to utilize a new hook for enhanced settings management, streamlining the codebase.

These changes provide users with more control over their reading layout, enhancing the overall functionality of the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-09-16 14:47:16 +08:00
Whitewater 1dadedfe88 feat: add test run functionality (#4481)
* feat: add test run functionality for tasks

Implement a new mutation for running tests on tasks and integrate it into the TaskItem component. Users can now initiate a test run, with appropriate loading and success/error handling.

* chore: clean code

* feat: add tooltip support for action buttons

* chore: correct createdAt date calculation in message processing

* chore: add new test tube SVG icon

* chore: update @follow-app/client-sdk to version 0.3.65
2025-09-16 12:50:17 +08:00
Stephen Zhou a064b7d26e feat: improve grid skeleton position 2025-09-16 11:00:47 +08:00
DIYgod 2902fce5f9 feat: add support for dedicated AI panel width in all feed view 2025-09-16 10:37:14 +08:00
DIYgod 1762ffca82 fix: all view footer mark button styles 2025-09-16 09:17:17 +08:00
DIYgod c2867ac8b8 chore: update AI model to gpt-4.1-mini and use GITHUB_TOKEN for authentication 2025-09-16 09:16:35 +08:00