Commit Graph
115 Commits
Author SHA1 Message Date
Innei 66591e452b feat(mobile): add horizontal padding for pic and video layout
- Added contentContainerStyle to EntryListContentPicture and EntryListContentVideo for consistent padding.
- Updated TimelineSelectorList to merge additional contentContainerStyle and scrollIndicatorInsets from props.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-01 14:24:01 +08:00
lawvs 650a68fccd fix: improve unread count display in ViewItem 2025-07-01 12:25:24 +08:00
Innei 9711a0bc20 feat(timeline): implement animated title transition in TimelineHeader
- Added AnimatedTitle component to handle cross-fade animation for title changes in the TimelineHeader.
- Utilized useSharedValue and useAnimatedStyle from react-native-reanimated for smooth opacity transitions.
- Improved user experience by visually indicating title changes during navigation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 20:31:13 +08:00
Innei 86d75b9252 feat(timeline): enhance unread message indicator with animated visibility
- Wrapped the UnreadCount component in an Animated.View to improve visibility during drag interactions.
- Added opacity animation based on drag progress to create a smoother user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-06-30 20:15:08 +08:00
DIYgod df80682b2c Merge branch 'main' into dev 2025-06-29 10:27:30 +08:00
Stephen Zhou fbd0b3e08f fix: collection is not up to date (#4009) 2025-06-26 09:30:59 +08:00
lawvs d9e8f8da2c refactor: improve layout in TimelineViewSelector 2025-06-24 19:17:23 +08:00
lawvs 0a012dcd8d fix: prevent unnecessary scroll when not dragging in PagerList 2025-06-23 16:23:44 +08:00
Whitewater 524ad05002 feat: enhance scroll interactions in TimelineSelector (#3952)
* feat: enhance PagerView onScroll event to include position parameter for iOS

* feat: add TimelineSelectorDragProgress context and provider for managing drag state

* feat: enhance TimelineViewSelector with drag progress and animated item transitions

* feat: integrate drag progress into PagerList and TimelineViewSelector for enhanced user interaction

* feat: add animated icon transitions in ViewItem based on drag progress

* fix: add scrollViewDidEndDecelerating to trigger onScrollEnd callback

* fix: enhance PagerList to synchronize drag progress with timeline selection
2025-06-19 07:17:27 +00:00
Whitewater 547a4fdc96 feat(mobile): lightbox (#3882)
* feat(mobile): lightbox

* chore: auto-fix linting and formatting issues

* feat: enhance back handler to close lightbox when active

* feat: integrate Lightbox component and move SafeAreaProvider to RootProviders

* refactor: update renderItem function to use destructured props

* feat: add Android manifest plugin to enable large heap size

* fix: add rounded corners to AspectRatioImage

* feat: set priority to high for image loading in ImageItem component

* chore: remove unused zIndex from ImageViewing

* feat: update ImageDefaultHeader and LightboxFooter for improved layout

* chore: simplify renderItem function signature in PagerList and Subscriptions components

* refactor: update galeria

* chore: tweak component

* feat: integrate lightbox functionality for media previews
2025-06-12 13:52:07 +08:00
Stephen Zhou 0c5e7f208c fix(mobile): render entry list for every view in page list 2025-06-11 17:14:38 +08:00
Stephen Zhou 784a95cff1 refactor(desktop): use database and store from shared package (#3897) 2025-06-11 11:36:25 +08:00
Whitewater 82fb9ce1dc fix: pager should not flicker when scrolling fast(#3858)
* fix: correct initialPageIndex assignment

* chore: optimize event handlers with useCallback
2025-06-03 11:32:16 +08:00
lawvs d5e4976a3b fix: update pageMargin for improved layout consistency 2025-05-29 16:31:46 +08:00
lawvs 08d4056f73 fix: adjust pageMargin and offscreenPageLimit for better scrolling experience 2025-05-29 16:11:11 +08:00
Stephen Zhou 5937096869 refactor: remove src export from follow/utils 2025-05-27 15:07:35 +08:00
Stephen Zhou ce7c421e0d refactor(mobile): enable package exports (#3822) 2025-05-27 10:54:49 +08:00
Stephen Zhou 0a2a099d7b refactor(mobile): sperate store package (#3819) 2025-05-26 22:54:15 +08:00
Stephen Zhou e24ef19996 feat(mobile): useHideAllReadSubscriptions option 2025-05-15 20:20:15 +08:00
Stephen Zhou 56d65f473f fix(mobile): separator style, clean useless code (#3723) 2025-05-14 10:18:41 +08:00
Stephen Zhou 9d1c1a6bd3 fix(mobile): improve i18n for subscription form 2025-05-08 11:55:41 +08:00
Innei efc2e9713b refactor: upgrade react 19 and react native 0.79 (#3661)
* update

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

* chore: update Babel and Metro configurations

- Added `unstable_transformImportMeta` option to Babel preset for improved JSX handling.
- Disabled `unstable_enablePackageExports` in Metro configuration for better package resolution.

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

* chore: add react-native-ios-utilities patch and update dependencies

- Introduced a patch for `react-native-ios-utilities` to enhance functionality.
- Updated `expo`, `react-native`, and `react-native-reanimated` versions in the example app for improved compatibility.
- Added `react-native-ios-utilities` to the project dependencies in `package.json`.

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

* update

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

* chore: auto-fix linting and formatting issues

* refactor: improve route parameter handling and entry fetching logic

- Updated `useRouteParams` to utilize `useReadonlyRoute` for better state management.
- Enhanced `useEntriesByView` to separate remote and local entry fetching, improving data handling and error management.
- Introduced debouncing for pagination in local entries and added toast notifications for error handling.
- Cleaned up entry ID retrieval to ensure uniqueness and prevent duplicates.

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

* refactor: simplify Masonry component return statement

- Updated the return statement in the Masonry component to use JSX syntax for better readability and consistency.

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

* refactor: update import from RootPortalProvider to RootPortalContext

- Changed the import statement in Sheet.tsx to reflect the updated context provider name for better clarity and consistency in the codebase.

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

* update

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

* refactor: update ref types in component props

- Changed ref prop types from React.RefObject to React.Ref for better type compatibility across various components, enhancing overall code consistency and maintainability.

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

* feat: add Xcode build server configuration and enhance desktop app routing

- Introduced a new configuration file for the Xcode build server to streamline iOS builds.
- Updated Vite configuration to include a new proxy route for sharing functionality.
- Added a new Jotai atom for managing preview state in the application.
- Removed deprecated error fallback component to clean up the codebase.
- Implemented a new render style hook for consistent styling across components.
- Enhanced entry column components with improved error handling and layout adjustments.
- Updated various components to utilize the new render style and improved accessibility.

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

* update

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

* fix: ensure plugins array is initialized and update TypeScript configuration

- Initialized the plugins array in the mobile app configuration to prevent potential runtime errors.
- Updated TypeScript configuration to enhance module resolution and improve code organization with clearer path definitions.

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

* update lint

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

* refactor: update TypeScript types and improve component props

- Added `skipLibCheck` to TypeScript configuration for faster builds.
- Updated prop types in various components to allow for null values in refs, enhancing type safety.
- Refactored several components to ensure better type compatibility and maintainability.

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

* refactor(mobile): improve layout handling in NavigationHeader component

- Added console logs for debugging right and left widths.
- Adjusted layout structure to ensure proper width handling for header elements.
- Updated loading indicator positioning and visibility logic.

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

* refactor(mobile): update Pager and QRCode components to use forwardRef

- Refactored Pager and QRCode components to directly export as functional components with forwardRef.
- Updated type definitions to improve ref handling and ensure better type safety.
- Simplified component structure for improved readability and maintainability.

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

* refactor(ui): enhance FAB components with functional component structure and improved type definitions

- Converted FABBase and FABPortable to functional components using FC type for better type safety.
- Updated props to include optional ref handling, enhancing flexibility in usage.
- Simplified component structure for improved readability and maintainability.

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

* chore(deps): update react-native-ios-utilities patch and refine TypeScript configuration

- Updated the patch for react-native-ios-utilities in pnpm-lock.yaml to reflect a new hash.
- Enhanced TypeScript configuration in tsconfig.json by adding exclusion for node_modules and formatting paths for better readability.
- Cleaned up the react-native-ios-utilities.patch by removing unused exports from the index file.

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

* update

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

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-07 16:30:30 +08:00
Stephen Zhou 948f76a02c feat: mark above / below as read (#3570) 2025-04-27 09:16:24 +00:00
DIYgod 43c1c54caf feat(mobile): remove AddFeedButton 2025-04-23 10:00:55 +08:00
DIYgod 051db8e219 feat(mobile): move back add feed button 2025-04-18 10:12:24 +08:00
Innei f4999279a1 refactor(mobile): remove horizontal scrolling checks from various components
- Updated multiple components to eliminate unnecessary horizontal scrolling checks before executing actions.
- Enhanced the ErrorBoundary component to apply a text style to error messages.
- Improved code readability and maintainability by streamlining the logic in EntryNormalItem, EntrySocialItem, and other related components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:22:01 +08:00
Innei 8602973016 feat(mobile): enhance EnhancePagerView with initialPageIndex prop
- Refactored EnhancePagerView to include an initialPageIndex property for better control over the starting page.
- Updated related components and specifications to support the new prop.
- Fixed a typo in the initialize method name for consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 00:48:01 +08:00
Innei 6c9448ccd1 chore(mobile):rename screen filename
- Updated import paths for existing screens to use camel case naming conventions.
- Introduced new screens: EditEmailScreen, FollowScreen, ForgetPasswordScreen, InvitationScreen, ListScreen, LoginScreen, ProfileScreen, RsshubFormScreen, SignUpScreen, TwoFactorAuthScreen, and SelectReadingModeScreen.
- Enhanced the onboarding experience with the addition of EditProfileScreen.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 22:02:00 +08:00
DIYgod 3bc658540a feat(mobile): update share and ai icons 2025-04-16 21:02:50 +08:00
Innei cce400cca0 feat(discover): enhance Discover screen with category grid and navigation
- Introduced a new `RecommendationCategoryScreen` for displaying recommendations by category.
- Added a category grid in the Discover screen, allowing users to navigate to specific categories.
- Integrated emoji representation for categories using `CategoryEmojiMap`.
- Updated context management to streamline header height and animated values.
- Refactored `Recommendations` component to support new navigation structure.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 22:30:40 +08:00
Innei 05a22d3f30 refactor(ios): replace native PagerView
- Added `cssInterop` for styling in `PagerView`.
- Updated `onScrollEnd` to pass the current index in `PagerView`.
- Introduced `PagerList` component for better feed view management.
- Refactored imports to ensure consistency across modules.
- Enhanced type definitions for better TypeScript support.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 19:49:22 +08:00
Innei ee5c66305a feat(tabbar): enhance BottomTabProvider with initialTabIndex and context integration
- Added initialTabIndex prop to BottomTabProvider for customizable tab index.
- Integrated BottomTabContext to manage tab state and improve context handling.
- Introduced useResetTabOpacityWhenFocused hook to reset tab opacity based on focus state.
- Updated TabRoot components to utilize context for tab index management.
- Adjusted PagerListVisibleContext default value for better visibility handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:50:07 +08:00
Innei 00e625b052 fix(timeline): remove unused tab bar opacity handling for improved clarity
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:34:32 +08:00
Innei a758e430de perf: optimize performance in dev mode
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 22:04:53 +08:00
Innei 31a8701d2c feat(mobile): add checkScrollToBottom functionality to SafeNavigationScrollView and integrate with TimelineSelectorList
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 19:45:58 +08:00
DIYgod d66d49c067 fix(mobile): view selector blinks when pressed 2025-04-11 22:12:27 +08:00
Innei ac39545c39 perf: optimize re-render when switch view
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 17:27:26 +08:00
Innei 755e895b6e refactor: simplify useSelectedView hook and update selectTimeline function to use target parameter for event dispatching
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 16:39:45 +08:00
DIYgod 46f8ae0e48 refactor(mobile): optimize useSelectedView hook 2025-04-11 15:27:14 +08:00
Innei 3e3698a044 refactor: replace TimelineSelectorProvider with TimelineHeader in entry list and feed screens; enhance useSelectedFeed for better selector support
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 13:37:10 +08:00
Stephen Zhou e7728a3d34 refactor: unify unread count locales and logic (#3453) 2025-04-10 16:22:46 +08:00
DIYgod a65742e2bf feat(mobile): success toast 2025-04-09 17:53:20 +08:00
DIYgod 53b2136889 feat(mobile): add mark as read action button for feed list 2025-04-09 17:28:13 +08:00
DIYgod 22d642a3fb feat(mobile): update mark as read icon 2025-04-09 17:02:19 +08:00
DIYgod 98468d4183 feat(mobile): unified getFetchEntryPayload 2025-04-09 16:23:15 +08:00
Stephen Zhou 77246e1a05 fix(mobile): share feed button (#3434)
* fix(mobile): share feed button

* update

* update
2025-04-09 02:55:30 +00:00
DIYgod 559a8eeed0 fix(mobile): entry list fetchNextPage not triggered 2025-04-08 23:01:48 +08:00
Innei 4fc8ec3f42 feat: scrollview scroll to end detection
- Refactored HelperModule to include new async functions for scrolling and image handling.
- Removed ProfileViewModule and associated UI components to streamline the codebase.
- Updated expo-module.config.json to reflect the removal of ProfileViewModule.
- Improved SafeNavigationScrollView and TimelineSelectorList to utilize new scroll handling features.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 19:31:56 +08:00
DIYgod 24834f5d05 feat(mobile): expand header for horizontal scrolling 2025-04-04 14:01:44 +08:00
DIYgod d5b579f4f4 feat(mobile): entries loading indicator 2025-04-03 23:47:31 +08:00