Skip to content

Conversation

@roncodes
Copy link
Member

@roncodes roncodes commented Dec 7, 2025

No description provided.

roncodes and others added 10 commits December 7, 2025 15:24
- Added POST_NOTIFICATIONS permission to AndroidManifest.xml
- Implemented runtime permission request in NotificationContext.tsx
- Fixes issue where notifications are blocked by default on Android 13+
- Added comprehensive documentation for the fix

This resolves the issue where the app shows 'All notifications from the app are blocked' after installation from Google Play Store on Android 13+ devices.
- Updated CartItemScreen.tsx with spacing fixes for Android
- Updated CartScreen.tsx with latest fixes
- Updated CreateAccountVerifyScreen.tsx
- Updated PhoneLoginVerifyScreen.tsx
- Updated ProductScreen.tsx with Android spacing improvements

Changes pulled from app/oli-max commits:
- 7c83c47: latest w/ fixes
- 87d7000: fix: corrected spacing on android platforms

Excluded: OrderHistoryScreen.tsx (as requested)
- Added Accept-Language header to use-storefront hook
- Added Accept-Language header to use-fleetbase hook
- Headers now include user's locale preference from LanguageContext
- Headers update dynamically when user changes language
- Uses standard HTTP Accept-Language header (RFC 7231/9110)

This enables the backend API to return localized content based on user's language preference.
- Added minimum checkout validation to use-qpay-checkout hook
- Added minimum checkout validation to use-stripe-checkout (native & web) hooks
- Created MinimumCheckoutNotice component for user feedback
- Integrated notice display in QPayCheckoutScreen and StripeCheckoutScreen
- Checkout button automatically disabled when cart below minimum
- Added English and Mongolian translations for minimum order messages
- Feature controlled by storefront options: required_checkout_min and required_checkout_min_amount

When enabled, users must reach the configured minimum cart subtotal before checkout is allowed.
A clear warning notice displays the current cart amount and required minimum.
The enabled() method automatically appends '_enabled' to keys, but the
required_checkout_min option doesn't follow this naming convention.

Changed from:
  enabled('required_checkout_min') // looks for required_checkout_min_enabled

To:
  get(info, 'options.required_checkout_min') === true // looks for required_checkout_min

This matches the existing pattern used for other options like pickup_enabled
and ensures the minimum checkout validation works correctly.
Fixes the 'addViewAt: failed to insert view into parent' error that occurs
after phone login on Android devices.

Issue: react-native-maps/react-native-maps#5781
Fixed in: react-native-maps v1.26.19

The error was caused by an index out of bounds exception when adding feature
views in react-native-maps. This has been resolved in version 1.26.19.
Merged from app/oli-max (commit f88549c).

Added optional chaining (?.) to prevent potential null/undefined errors
when accessing currentLocation.getAttribute('name').

This prevents crashes when currentLocation is not yet loaded or is null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants