Skip to content

fix(send): make the "Accept contact request" checkbox label readable in dark mode - #1613

Merged
HashEngineering merged 1 commit into
feat/kotlin-sdk-phase-1from
fix/confirm-accept-contact-dark-mode
Oct 11, 2026
Merged

HashEngineering merged 1 commit into
feat/kotlin-sdk-phase-1from
fix/confirm-accept-contact-dark-mode

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

MO-1023 (second finding). QA paid a user who had sent them a contact request they hadn't accepted, and the request was accepted along with the payment.

The automatic accept is existing behaviour from NMA-373 (0e687eabc, 2020). The payment confirm dialog shows an "Accept contact request" checkbox, checked by default and remembered per username. What was wrong is that its label had no text color, so in dark mode it fell back to the theme default and was unreadable on the dark dialog. The user couldn't tell what the checked box meant.

What was done?

  • dialog_confirm_transaction.xml: confirm_auto_accept now uses android:textColor="@color/content_primary", like the dialog's other text (black in light mode, white at 90% in night mode).
  • The checkbox stays checked by default, which is intended behaviour.

How Has This Been Tested?

  • ./gradlew :wallet:process_testNet3DebugResources passes.
  • QA: in dark mode, pay a user who has a pending incoming contact request. The "Accept contact request" label should be readable. Check light mode as well.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests (layout-only change)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Updated the auto-accept checkbox text color to match the primary content color.

…in dark mode

The confirm-payment dialog's StyledCheckBox had no text color, so it fell
back to the theme default and was unreadable on the dark dialog
background. QA (MO-1023) paid a user with a pending incoming contact
request and did not notice the checkbox — checked by default since
NMA-373 — so the request was accepted with the payment. Use
content_primary like the dialog's other text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: dashpay/dash-wallet/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 731e491f-96ce-460e-adc0-89a45fc3163e

📥 Commits

Reviewing files that changed from the base of the PR and between e6b7ca5 and a762453.


📒 Files selected for processing (1)
  • wallet/res/layout/dialog_confirm_transaction.xml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

The transaction confirmation dialog sets the confirm_auto_accept checkbox text color to @color/content_primary.

Changes

Transaction Confirmation Dialog

Layer / File(s) Summary
Set checkbox text color
wallet/res/layout/dialog_confirm_transaction.xml
The confirm_auto_accept checkbox uses @color/content_primary for its text color.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix


Merge Risk: ⚪ Minimal · up to a7624

The checkbox label uses the night-aware primary content color, with no material merge risk identified.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: making the contact request checkbox label readable in dark mode.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thepastaclaw

thepastaclaw commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit a762453) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Final validation — Phase 1 + Phase 2

Verified the one-line change at the exact PR head: the checkbox label now uses content_primary, resolving to #0A0B0D in light mode and #E6FFFFFF in night mode, consistent with the dialog’s primary text styling. The custom checkbox preserves this explicit color, and visibility, default-checked state, and per-username persistence remain unchanged; no in-scope defects were found. The supplied CI snapshot reports successful check and build jobs; this verification was static, and visual QA in both themes remains outstanding.

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — The diff adds one explicit text color to a checkbox label, a contained UI readability fix whose correctness is easy to confirm and which changes no payment or contact-acceptance logic.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 100% left, weekly 86% left; passed over gemini-3.8-flash-high (antigravity below 15% reserve: weekly 14% left, 5h 100% left)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer

@HashEngineering
HashEngineering merged commit 2d8657f into feat/kotlin-sdk-phase-1 Oct 11, 2026
3 checks passed
@HashEngineering
HashEngineering deleted the fix/confirm-accept-contact-dark-mode branch October 11, 2026 14:30
HashEngineering added a commit that referenced this pull request Oct 15, 2026
…sdk-phase-1-v11.9.1

Brings in #1613, #1597 (Kotlin SDK v42int30), #1603, #1612, #1617, #1618 and #1615.

- WalletTransactionMetadataProviderGiftCardTest: kept both imports
  (TransactionRecordsDao from this branch, SdkTxMetadataSource from #1603).
- WalletTransactionMetadataProviderSdkStoreTest (new in #1603): passes the
  transactionRecordsDao this branch added to the provider's constructor.
- forgetTransaction() also refuses a transaction the SDK store holds. Since
  #1603 an SDK-only transaction has real metadata, and the dashj wallet not
  holding it no longer proves the payment was never sent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants