Skip to content

fix(home): hide the sync header once synced instead of showing "Synced from <date>" - #1701

Merged
HashEngineering merged 1 commit into
feat/kotlin-sdk-phase-1from
fix/home-hide-synced-from
Nov 17, 2026
Merged

HashEngineering merged 1 commit into
feat/kotlin-sdk-phase-1from
fix/home-hide-synced-from

Conversation

@HashEngineering

@HashEngineering HashEngineering commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On a scan bounded by a wallet creation date, the home screen kept the sync header up permanently, reading "Synced from ". The header now hides once the wallet is fully synced, whatever the scan start, as it already did for an unbounded scan. This is for 12.0.2.

  • WalletTransactionsFragment.updateSyncState: the bounded-scan branch is removed, and so are its two now-unused imports.
  • L1SyncUiStatus KDoc: now says the Network Monitor shows "Synced from " and the home header doesn't.
  • Unchanged: the Network Monitor screen still shows "Synced from " and its note for a bounded scan, so sync_synced_from stays.

Deliberate product decision (SR-22)

This intentionally removes the home screen's only sign that a bounded scan's balance and history may be incomplete (the SR-22 case). That is the requested behaviour, not an oversight. The information stays on the Network Monitor screen, and a full rescan from Settings still clears the bounded scan.

Test plan

  • :wallet:compile_testNet3DebugKotlin
  • Restore with a creation date: after sync, the home header hides; Network Monitor still reads "Synced from "
  • Normal restore or ongoing sync: "Syncing N%" shows while syncing and hides when done

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • The home screen no longer shows a “Synced from” date or syncing label after a scan is fully synced.
    • The Network Monitor continues to show the scan’s start date for bounded scans.

…d from <date>"

On a scan bounded by a wallet creation date, the home screen kept the sync
header visible permanently, reading "Synced from <date>". The header now
hides once the wallet is fully synced, whatever the scan start. The Network
Monitor screen still shows "Synced from <date>" for a bounded scan, and the
string stays for it.

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

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The home header now hides its syncing label after a fully synced scan, including scans bounded by a wallet creation date. The status documentation specifies that the Network Monitor shows the dated “Synced from” message.

Changes: Synced wallet header

Layer / File(s) Summary
Document and update synced header behavior
wallet/src/de/schildbach/wallet/service/L1SyncStatusService.kt, wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt
The documentation assigns the dated “Synced from” message to the Network Monitor. The home header hides its syncing label whenever status.isFullySynced, and the date-formatting imports are removed.

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

Change: Bug fix

Suggested reviewers: bfoss765

Merge Risk: Minimal · up to a9424

The home sync header now disappears once the wallet is synced, even after a scan bounded by the wallet creation date. The Network Monitor still shows the dated message. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the home sync header now hides once the wallet is fully synced, instead of showing "Synced from ". The raw summary confirms WalletTransactionsFragment.updateSync…
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.
Full details: Title check

Explanation

The title names the main change: the home sync header now hides once the wallet is fully synced, instead of showing "Synced from <date>". The raw summary confirms WalletTransactionsFragment.updateSyncState now hides the syncing label whenever status.isFullySynced, and L1SyncUiStatus KDoc was updated to match. The title is specific and matches the changeset. The title says "fix(home)", which matches the home header scope.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 78f0ae2 and a942439.

Files selected for processing: 2

  • wallet/src/de/schildbach/wallet/service/L1SyncStatusService.kt
  • wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt

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

@thepastaclaw

thepastaclaw commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit a942439) · 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

The change is narrowly scoped and correctly hides the home sync header once the existing fully-synced predicate is reached, including for bounded scans. The Network Monitor disclosure remains intact, and CI check/build succeeded for the reviewed head. One documentation suggestion remains: the stated full-rescan recovery path is contradicted by the tracked bounded-scan limitation, so the KDoc should avoid implying that clearing the date necessarily restores the missing history.

🟡 1 suggestion(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

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) — This is a small, well-contained UI sync-state change that removes a bounded-scan display branch without altering synchronization, wallet data, or funds-related behavior.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 55% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • 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
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.

In `wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt`:
- [SUGGESTION] wallet/src/de/schildbach/wallet/ui/main/WalletTransactionsFragment.kt:707-709: Document that clearing the bounded-scan date may not restore the skipped history
  The updated KDoc says the home header disappears for bounded scans and points users to Network Monitor for the remaining disclosure. However, the bounded-scan flag is derived from the stored wallet creation date, and the rescan path can clear that date even when the SDK has not actually replayed the earlier range. In that state, both the home header and Network Monitor lose the date-based warning while the wallet may still contain only a partial history. The tracked limitation in issue #1572 should be recorded here or in the decision documentation so this change is not later interpreted as relying on a verified recovery path.

Comment on lines +707 to +709
* Once synced the header disappears, including on a scan bounded by a
* wallet creation date: the home screen does not show "Synced from <date>".
* The Network Monitor screen still shows that date (SR-22).

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.

🟡 Suggestion: Document that clearing the bounded-scan date may not restore the skipped history

The updated KDoc says the home header disappears for bounded scans and points users to Network Monitor for the remaining disclosure. However, the bounded-scan flag is derived from the stored wallet creation date, and the rescan path can clear that date even when the SDK has not actually replayed the earlier range. In that state, both the home header and Network Monitor lose the date-based warning while the wallet may still contain only a partial history. The tracked limitation in issue #1572 should be recorded here or in the decision documentation so this change is not later interpreted as relying on a verified recovery path.

source: glm-5.3-flash (phase1-reviewer: general)

@HashEngineering
HashEngineering merged commit 2394eb8 into feat/kotlin-sdk-phase-1 Nov 17, 2026
4 checks passed
@HashEngineering
HashEngineering deleted the fix/home-hide-synced-from branch November 17, 2026 04:31
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