Skip to content

v5 - Co-badged cards - Card scanning button behaviour#2657

Open
araratthehero wants to merge 2 commits intochore/co-badged-cards-add-to-card-viewfrom
chore/co-badged-cards-card-scanning
Open

v5 - Co-badged cards - Card scanning button behaviour#2657
araratthehero wants to merge 2 commits intochore/co-badged-cards-add-to-card-viewfrom
chore/co-badged-cards-card-scanning

Conversation

@araratthehero
Copy link
Copy Markdown
Contributor

Description

We need to hide and show the card scanning and brand icons based on the following states.

Card Scanning Available Card Number Input Scanning Icon Brand View
Yes Empty Shown Hidden
Yes Not Empty Hidden Shown
No Empty Hidden Shown
No Not Empty Hidden Shown

Checklist

  • Code is unit tested
  • Changes are tested manually

Ticket Number

COSDK-1062

@araratthehero araratthehero requested a review from a team as a code owner March 27, 2026 12:30
@AdyenAutomationBot AdyenAutomationBot added the Chore [PRs only] Indicates any task that does not need to be mentioned in the public release notes label Mar 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request implements logic to manage the visibility of the card scanning interface, ensuring the scan button is only shown when scanning is available and the card number field is empty. Changes include state management in the card delegates, updates to the output data model, and UI adjustments in CardView and CardScanningFragment. A critical feedback item identifies a potential crash in CardScanningFragment due to unsafe binding access after the view lifecycle has ended, suggesting a null-safe approach.

@araratthehero araratthehero force-pushed the chore/co-badged-cards-card-scanning branch from d2c3c17 to 852511e Compare March 27, 2026 12:35
@github-actions
Copy link
Copy Markdown
Contributor

✅ No public API changes

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
58.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Chore [PRs only] Indicates any task that does not need to be mentioned in the public release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants