Skip to content

Conversation

@adalpari
Copy link
Contributor

Description

This PR is adding new logs for the Application Password discovery process and the card build.
These changes will help us to track possible errors.

Testing instructions

Just check the code, and check the CI is green

@dangermattic
Copy link
Collaborator

dangermattic commented Nov 20, 2025

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

Copilot finished reviewing on behalf of adalpari November 20, 2025 11:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive logging for the Application Password discovery process and card UI lifecycle to aid in debugging and error tracking. The changes introduce consistent "AP:" log prefixes and replace Android's Log with the app's AppLogWrapper.

Key Changes

  • Added structured logging throughout the Application Password flow with "AP:" prefix for easier filtering
  • Replaced android.util.Log with AppLogWrapper for consistent logging infrastructure
  • Added debug logs for card visibility decisions (show/hide scenarios)
  • Enhanced error logging with more descriptive messages for failure scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ApplicationPasswordViewModelSlice.kt Added AppLogWrapper dependency and debug logs for card build/hide decisions during authentication checks
ApplicationPasswordLoginHelper.kt Replaced Android Log with AppLogWrapper, updated all log messages to use "AP:" prefix, and added error logging for invalid credential data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 20, 2025

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
FlavorJalapeno
Build TypeDebug
Versionpr22362-7859ea0
Commit7859ea0
Direct Downloadjetpack-prototype-build-pr22362-7859ea0.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Nov 20, 2025

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
FlavorJalapeno
Build TypeDebug
Versionpr22362-7859ea0
Commit7859ea0
Direct Downloadwordpress-prototype-build-pr22362-7859ea0.apk
Note: Google Login is not supported on these builds.

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.03%. Comparing base (50139f4) to head (7859ea0).
⚠️ Report is 1 commits behind head on trunk.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #22362   +/-   ##
=======================================
  Coverage   39.02%   39.03%           
=======================================
  Files        2203     2203           
  Lines      106304   106314   +10     
  Branches    15057    15057           
=======================================
+ Hits        41489    41499   +10     
  Misses      61326    61326           
  Partials     3489     3489           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adalpari adalpari marked this pull request as ready for review November 20, 2025 12:23
@adalpari adalpari merged commit 79c4a3c into trunk Nov 21, 2025
24 checks passed
@adalpari adalpari deleted the logs/adding-extra-logs-for-Application-Password-card-build branch November 21, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants