Skip to content

Commit bacd7b9

Browse files
authored
Merge pull request #1400 from peanutprotocol/peanut-wallet-dev
[TASK-16610] Prod Release 116
2 parents b74de7b + 4c680eb commit bacd7b9

205 files changed

Lines changed: 7500 additions & 3344 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- **Keep it concise** - docs should be kept quite concise. AI tends to make verbose logs. No one reads that, keep it short and informational.
3434
- **Check existing docs** before creating new ones - merge instead of duplicate
3535
- **Log significant changes** in `docs/CHANGELOG.md` following semantic versioning
36-
- **Maintain PR.md for PRs** - When working on a PR, maintain `docs/PR.md` with:
36+
- **Maintain PR.md for PRs** - When working on a PR, maintain a very concise `docs/PR.md` with:
3737
1. Summary of changes
3838
2. Risks (what might break)
3939
3. QA guidelines (what to test)

docs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
- Perk claiming uses optimistic UI updates for instant feedback (claim happens in background)
2424
- Dev pages excluded from production builds for faster compile times
2525
- Removed Points V1 legacy fields from `Account` and `IUserProfile` interfaces
26+
- **⚡ Performance: Eliminated 61+ unnecessary API polling requests** - Isolated DaimoPayProvider to only 2 pages that actually use Daimo payments (was wrapping entire app, causing continuous polling to `pay-api.daimo.xyz/untronHasAvailableReceivers` on every page). Removed unused "Connect External Wallet" option from sign-in modal and dead `addBYOW()` function from auth context. Disabled AppKit analytics tracking. Savings: ~16 KB bandwidth and 61+ requests eliminated per session for 98% of page views, measurably faster initial page loads.
2627

2728
### Fixed
2829

@@ -34,3 +35,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3435
- **Auto-refreshing balance**: Balance now automatically refreshes every 30 seconds and when app regains focus
3536
- **Real-time transaction history**: New transactions appear instantly via WebSocket integration with TanStack Query cache
3637
- **Optimistic updates**: Sending money now shows instant UI feedback with automatic rollback on error
38+
- **🐛 Critical: Unrecoverable loading state and stale passkey errors** - Fixed infinite loading when passkey registration succeeded but backend user creation failed. Fixed AA24 signature errors and "wapk unauthorized" errors caused by stale webAuthnKey from failed login/registration attempts. Added `clearAuthState()` utility that cleans up auth cookies on errors, with defensive detection of stale key errors (AA24/wapk) in transaction signing. Stale key errors during transactions now show user-friendly error messages. Added retry logic for transient Android `NotReadableError` and platform-specific error messages.
39+
- **🐛 PWA crash on cold launch (iOS)** - Fixed app crash when opening PWA immediately after installation. Web3Modal/AppKit now lazy-loads with 10-second timeout only when user needs to connect external wallet, preventing network errors during offline PWA startup. Promise-based initialization prevents race conditions and allows retry on failure.

0 commit comments

Comments
 (0)