Skip to content

docs(swift-example-app): add test plan rows for DashPay private contact requests - #6117

Merged
QuantumExplorer merged 1 commit into
v5.1-devfrom
docs/swift-example-private-contact-request-test-plan
Nov 23, 2026
Merged

QuantumExplorer merged 1 commit into
v5.1-devfrom
docs/swift-example-private-contact-request-test-plan

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Basic explanation

SwiftExampleApp can already send, accept and sync DashPay contact requests privately. These are paid from the shielded pool as a private document entry (state transition type 29), so nothing on chain names either identity. The QA test plan had no rows for any of it, so nobody had a script to check it. This PR adds those rows and the few accessibility identifiers they need. App behavior does not change.

Before: TEST_PLAN.md section 4.10 (DashPay) covered only public contact requests. A search for "privately", "private request" or "in kind" found nothing.

After: rows DP-20 to DP-30 cover:

Row Flow
DP-20 Send a contact request privately (type 29 paid from the shielded pool)
DP-21 Read private contact requests (the private store sync and its readiness reads)
DP-22 Accept a contact request replying in kind
DP-23 Accept privately from Add Contact (private reply to any request)
DP-24 A private send or reply that may have gone through
DP-25 Pair held for a private request (code 71)
DP-26 A public request awaiting its outcome blocks private ones (code 76)
DP-27 The wallet's private payments are not restored yet (code 72)
DP-28 Private request refused with nothing sent (store not read, configuration: 73, 74, 75, needs a private reply)
DP-29 A paid private request survives a restart (journaled payment hold)
DP-30 Private request then private accept, both endpoints on the device

DP-02 now points at the replying-in-kind accept that the Requests list calls. The PR also adds a fixture for a protocol version 15 network with shielded balance and DashPay identities, and updates the summary matrix and the category and tag index.

Issue being fixed or feature implemented

These are the test plan rows for the private contact request flows that already ship, needed so the app can exercise type 29 on a live network after the protocol version 14 to 15 upgrade rehearsal. The general "create an entry in any private type" screen is coming in a separate PR.

What was done?

  • packages/swift-sdk/SwiftExampleApp/TEST_PLAN.md: rows DP-20 to DP-30, a DP-02 update, the new fixture, and the matrix and index updates. Each row gives the navigation path, the identifiers it uses, the expected results and prerequisites, and names the Rust and Swift unit tests that cover the path.
  • These accessibility identifiers were added, with no other change to the views:
    • AddContactView.swift: dashpay.addContact.error, dashpay.addContact.collision.accept, dashpay.addContact.collision.continue, dashpay.addContact.submitted.done
    • ContactRequestsView.swift: dashpay.requests.list, dashpay.request.busy, dashpay.request.message, dashpay.request.outgoingPending

How Has This Been Tested?

  • ./build_ios.sh --target sim (release xcframework, then the SwiftExampleApp simulator build) exited 0 with ** BUILD SUCCEEDED **, compiling both edited views.
  • Every Rust and Swift test a row cites (70 names) was checked to exist in rs-platform-wallet, rs-platform-wallet-ffi and SwiftExampleAppTests. They were not re-run for this PR, which changes no logic.
  • The rows' call paths, messages and gating were checked against the views, PrivateContactRequests.swift, the FFI functions and the Rust doc comments. DP-02 was stale: the Requests list's Accept now calls platform_wallet_manager_accept_contact_request_replying_in_kind, and the row says so now.

Not yet verified

  • No simulator run of any DP-20 to DP-30 row against a protocol version 15 network. Each row says so.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • My Rust, FFI, WASM, Swift or Kotlin changes follow the coding conventions
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request
  • If I added or changed a system contract's document schemas, I checked the contract viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

PR Hygiene · e775ffe

  • Bots — thepastaclaw ✓
  • Self-review — post /self-reviewed
  • Reviewer requests paused — your 5 review slots are occupied; this PR is excluded from reviewers' queues. Required approvals still count without a slot.
  • Build green
  • Approvals
    • swift-sdk (packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/DashPay/AddContactView.swift, packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/DashPay/ContactRequestsView.swift, packages/swift-sdk/SwiftExampleApp/TEST_PLAN.md) — llbartekll or romchornyi

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

…ct requests

TEST_PLAN.md section 4.10 had no rows for the private contact request
flows SwiftExampleApp already ships. Add DP-20..DP-30: send privately
(type 29 paid from the shielded pool), the private store sync and its
readiness reads, accept replying in kind, accept privately from the Add
Contact collision alert, and the held states the views show (may have
gone through, pair held for a private request (71), public request
awaiting its outcome (76), private payments not restored (72), refusals
with nothing sent (73, 74, 75, needs a private reply)), the journaled
payment hold across a restart, and a two-wallet loop. Each row says it
was not driven on a simulator and names the Rust and Swift unit tests
covering its path.

Also add a protocol version 15 / shielded balance / DashPay identities
fixture, point DP-02 at the in-kind accept the Requests list now calls,
and update the summary matrix and the category and tag index.

Add the accessibility identifiers the rows rely on, identifiers only:
dashpay.addContact.error, dashpay.addContact.collision.accept,
dashpay.addContact.collision.continue, dashpay.addContact.submitted.done,
dashpay.requests.list, dashpay.request.busy, dashpay.request.message and
dashpay.request.outgoingPending.

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

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b17d927 and e775ffe.

Files selected for processing: 3

  • packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/DashPay/AddContactView.swift
  • packages/swift-sdk/SwiftExampleApp/SwiftExampleApp/Views/DashPay/ContactRequestsView.swift
  • packages/swift-sdk/SwiftExampleApp/TEST_PLAN.md
  • 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

@github-actions github-actions Bot added this to the v5.1.0 milestone Nov 23, 2026
@thepastaclaw

thepastaclaw commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

⚠️ DEGRADED — Final review complete — Phase 1 only — no blockers (commit e775ffe) · triage: trivial · stand-in models (primary models out of quota)

@github-actions

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Nov 23, 2026

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

⚠️ DEGRADED — Final review — Phase 1 only (trivial change)

⚠️ DEGRADED review. The primary review models were unavailable (gpt-6.2-sol unavailable: Request rejected (429) · All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The us), so this review ran on stand-in models: gpt-5.6-luna → muse-spark-1.3-contributor, gpt-5.6-sol → muse-spark-1.3-contributor, gpt-5.6-terra → muse-spark-1.3-contributor, gpt-6-astra → muse-spark-1.3-contributor, gpt-6.1-sol → muse-spark-1.3-contributor, gpt-6.2-astra → muse-spark-1.3-contributor, gpt-6.2-sol → muse-spark-1.3-contributor. Both review phases and the independent verifiers still ran, but on weaker models, with Phase 1 capped at high effort. Treat the verdict as provisional; a full-strength re-review will run on the next push once the primary models are back.

Nothing blocks: no blocking finding stands on this head.

Docs-plus-test-hook PR: adds TEST_PLAN.md rows DP-20..DP-30 for private DashPay contact requests plus fixture/matrix updates, and adds accessibility identifiers in AddContactView and ContactRequestsView with no view-logic changes. CI shows no failures; Swift SDK build is still queued with the remaining jobs skipped or successful.

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: architecture-layering); final verifier: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (agent: sol-gate-verifier, role: final-verifier)

  • Degraded mode: gpt-6.2-sol unavailable: Request rejected (429) · All credentials for model gpt-6.2-sol are cooling down (last error: usage_limit_reached: The us (detected by probe, since 2026-11-23T09:07:27Z); stand-ins gpt-5.6-luna → muse-spark-1.3-contributor, gpt-5.6-sol → muse-spark-1.3-contributor, gpt-5.6-terra → muse-spark-1.3-contributor, gpt-6-astra → muse-spark-1.3-contributor, gpt-6.1-sol → muse-spark-1.3-contributor, gpt-6.2-astra → muse-spark-1.3-contributor, gpt-6.2-sol → muse-spark-1.3-contributor; Phase 1 effort capped at high
  • Triage: trivial by muse-spark-1.3-contributor (standing in for gpt-6.2-sol) (effort low) — Diff only adds TEST_PLAN.md rows and test-only accessibility identifiers with no app logic change.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort high); agent phase1-reviewer, muse-spark-1.3-contributor — architecture-layering (completed, effort high); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity quota lookup failed), glm-5.3-flash (zai below 15% reserve: 5h 100% left, weekly 0% left)
  • Fresh verifier: muse-spark-1.3-contributor (standing in for gpt-6.2-sol) — final-verifier; agent sol-gate-verifier
  • Phase 2 reviewers: not run (triage rated this change trivial); this review comments and never approves

@github-actions

Copy link
Copy Markdown
Contributor

Bots are done — your move: post /self-reviewed.
Full checklist in the description.

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed and removed waiting-bots Waiting for the review bots to report on this head labels Nov 23, 2026
@QuantumExplorer
QuantumExplorer merged commit 799edb9 into v5.1-dev Nov 23, 2026
45 of 46 checks passed
@QuantumExplorer
QuantumExplorer deleted the docs/swift-example-private-contact-request-test-plan branch November 23, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-self-review Waiting for the author to post /self-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants