Skip to content

Conversation

@kidinov
Copy link
Contributor

@kidinov kidinov commented Dec 5, 2025

No description provided.

Introduces the core business logic for WooPos card reader connection:
- WooPosCardReaderConnectionState sealed interface with all connection states
- WooPosCardReaderConnectionController handling discovery and connection flow
- WooPosCardReaderConnectionControllerFactory for dependency injection
Introduces the UI layer for WooPos card reader connection:
- WooPosCardReaderConnectionViewModel for state management
- WooPosCardReaderConnectionDialog Compose UI with all connection states
- Updated WooPosUpdateProgressIndicator to match iOS design (solid fill)
- String resources for connection UI
Replaces Activity-based card reader connection with Compose dialog:
- Remove WooPosCardReaderActivity and its layout
- Update WooPosCardReaderFacade to use ChildToParentEvent
- Add ShowCardReaderConnectionDialog event to home and settings
- Update ViewModels to trigger connection dialog
- Update tests for new flow
Cleans up WooPos references from the payments cardreader module:
- Remove CardReaderFlowParam.WooPosConnection
- Remove ReturnToWooPos event
- Remove pointOfSalePaymentsFlowTracker injection
- Simplify CardReaderConnectViewModel and related classes
@dangermattic
Copy link
Collaborator

3 Errors
🚫 Please add tests for class WooPosCardReaderConnectionController (or add unit-tests-exemption label to ignore this).
🚫 Please add tests for class WooPosCardReaderConnectionControllerFactory (or add unit-tests-exemption label to ignore this).
🚫 Please add tests for class WooPosCardReaderConnectionViewModel (or add unit-tests-exemption label to ignore this).
1 Warning
⚠️ This PR is larger than 300 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@kidinov kidinov changed the title WOOMOB-1854: WooPos Card Reader Connection UI [WOOMOB-1854] WooPos Card Reader Connection UI Dec 5, 2025
@kidinov kidinov changed the base branch from trunk to hack-week/adaptive-layout-coupons-test-deps December 5, 2025 09:25
@kidinov kidinov changed the base branch from hack-week/adaptive-layout-coupons-test-deps to hackweek-margins-adaptation December 5, 2025 09:25
@wpmobilebot
Copy link
Collaborator

Project manifest changes for WooCommerce

The following changes in the WooCommerce's merged AndroidManifest.xml file were detected (build variant: vanillaRelease):

--- ./build/reports/diff_manifest/WooCommerce/vanillaRelease/base_manifest.txt	2025-12-05 09:26:16.502516639 +0000
+++ ./build/reports/diff_manifest/WooCommerce/vanillaRelease/head_manifest.txt	2025-12-05 09:26:19.692501375 +0000
@@ -218,10 +218,6 @@
             android:theme="@style/Theme.WooPos"
             android:windowSoftInputMode="adjustResize" />
         <activity
-            android:name="com.woocommerce.android.ui.woopos.cardreader.WooPosCardReaderActivity"
-            android:theme="@style/Theme.WooPos.Transparent"
-            android:windowSoftInputMode="adjustResize" />
-        <activity
             android:name="com.woocommerce.android.ui.woopos.home.items.coupons.creation.WooPosCouponCreationActivity"
             android:theme="@style/Theme.WooPos.DayNight.Transparent"
             android:windowSoftInputMode="adjustResize" /> <!-- Stats today app widget -->

Go to https://buildkite.com/automattic/woocommerce-android/builds/34247/canvas?sid=019aedd1-5801-4ab8-b7a2-52363a043b4f, click on the Artifacts tab and audit the files.

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App NameWooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit9343d0c
Direct Downloadwoocommerce-wear-prototype-build-pr15063-9343d0c.apk

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit9343d0c
Direct Downloadwoocommerce-prototype-build-pr15063-9343d0c.apk

@wpmobilebot
Copy link
Collaborator

🤖 Test Failure Analysis

Your tests failed. Claude has analyzed the failures - check the annotation for details.

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.

4 participants