* fix: add locale support for balance formatting
* refactor: rewrite toScientificNotation function with locale support and tests
* test: add locale-specific tests for toScientificNotation function
* chore: update usage
- Updated UIImage extension to include URL handling in the activity item source.
- Modified HelperModule to accept an optional URL parameter when sharing images.
- Adjusted ImageContextMenu to pass the image URL during sharing actions.
This improves the image sharing experience by allowing users to share images along with their associated URLs.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed SafeModalScrollView component and replaced it with SafeNavigationScrollView in various files including FollowList, EditCondition, EditRewriteRules, EditWebhooks, and EditEmail screens.
- Updated import statements accordingly to reflect the changes.
This change enhances consistency in the navigation handling across the application.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced a new UIImage extension to create a UIActivityItemSource, allowing images to be shared with titles and URLs.
- Enhanced HelperModule with new functions to save, share, copy images, and retrieve base64 from UIImageView.
- Updated MediaCarousel to use preview_image_url for video context menus.
- Refactored Image and ImageContextMenu components for improved image handling and context menu actions.
Signed-off-by: Innei <tukon479@gmail.com>
- Removed unnecessary FullWindowOverlay from App component.
- Introduced sitemap registration in main.tsx for better navigation management.
- Updated NoLoginInfo component to use Pressable for navigation to LoginScreen.
- Added DropdownMenu for environment profile selection in DebugButton.
- Created new sitemap.tsx file to manage navigation components.
This refactor improves code organization and enhances user experience in navigation.
Signed-off-by: Innei <tukon479@gmail.com>
- Introduced AttachNavigationScrollViewProvider for better context management.
- Added StateHandler component to manage screen name updates based on navigation events.
- Updated imports and optimized component structure for improved readability.
Signed-off-by: Innei <tukon479@gmail.com>
- Added new properties to ScreenOptionsContext for customizable header areas.
- Implemented resolveScreenOptions function to manage header configurations based on context options.
- Updated WrappedScreenItem to utilize new header area components for improved layout.
- Refactored EntryNormalItem to use SquareImage for better image handling.
- Introduced loading state for images to enhance user experience.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated HeaderCloseButton and HeaderSubmitButton to use UINavigationHeaderActionButton for improved consistency and functionality.
- Adjusted layout in HeaderCloseOnly to accommodate the new button component.
Signed-off-by: Innei <tukon479@gmail.com>
* fix(mobile): add active prop to fix scroll to top in subscription tab
* refactor(mobile): convert SafeNavigationScrollView to forwardRef for improved ref handling
* fix: types
- Added event emissions for screen changes when a route appears or disappears, including the screen ID and route details.
- Updated the ScreenChangeEventPayload type to optionally include route information.
These changes enhance navigation tracking within the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Added a touchHighlight prop to ItemPressable to control the highlight effect on press.
- Implemented animated background color change using react-native-reanimated for a smoother user experience.
- Updated EntryNormalItem and EntrySocialItem to disable touchHighlight, ensuring consistent behavior across different item types.
These changes improve the interactivity and visual feedback of pressable items in the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Added new constants for GROUPED_SECTION_TOP_MARGIN and GROUPED_SECTION_BOTTOM_MARGIN to standardize spacing in grouped list components.
- Updated GroupedList and related components to utilize the new margin constants, ensuring consistent layout across various screens.
- Refactored multiple settings routes to remove unnecessary wrapper views, improving layout efficiency and readability.
- Adjusted the About, Account, and other settings screens to enhance visual consistency and user experience.
These changes improve the overall layout and responsiveness of grouped list components in the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Imported ListScreen for navigation within the Lists module.
- Updated AddListButton to present ListScreen on press.
- Modified ListItemCellImpl to navigate to ListScreen with the selected list's ID when the edit action is triggered.
- Adjusted GroupedInsetListCard to hide separators for improved layout.
These changes enhance user navigation and interaction within the lists feature of the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Updated constants for GROUPED_LIST_MARGIN, GROUPED_LIST_ITEM_PADDING, and GROUPED_ICON_TEXT_GAP to utilize PixelRatio for improved responsiveness.
- Refactored GroupedList and related components to apply new margin and padding constants, ensuring consistent spacing across various screen sizes.
- Adjusted styles in multiple subscription items and separators to incorporate the new layout constants, enhancing visual consistency.
These changes improve the overall layout and user experience of grouped list components in the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Added constants for icon text gap and a new enum for card item styles.
- Implemented GroupedInsetListCard with customizable separator support.
- Enhanced GroupedList and related components to utilize new styles and layout adjustments.
- Updated various components to incorporate pixel ratio for responsive design.
- Refactored item rendering in subscription lists to support first and last item styling.
These changes improve the visual consistency and responsiveness of grouped list components in the mobile application.
Signed-off-by: Innei <tukon479@gmail.com>
- Replaced the noPreview prop with a new preview prop in the UserAvatar component, defaulting to true.
- Updated the rendering logic to conditionally display the avatar based on the preview prop.
- Adjusted instances of UserAvatar in EntryReadHistory and action.tsx to utilize the new preview prop.
These changes enhance the flexibility of the UserAvatar component by allowing for more controlled rendering behavior.
Signed-off-by: Innei <tukon479@gmail.com>
- Bumped versions of `react-native-uikit-colors`, `apple-uikit-colors`, and `tailwindcss-uikit-colors` to 0.3.10 in `pnpm-lock.yaml` and `package.json` for consistency and to leverage the latest features and fixes.
- Updated the import from `useCurrentColors` to `useCurrentColorsVariants` in the `index.tsx` provider file to align with the new API.
- Added a blank line in `Actions.tsx` for improved code readability.
These changes ensure the application is using the latest color utilities and maintain clean code practices.
Signed-off-by: Innei <tukon479@gmail.com>