🐛 app: misc fixes#1014
Conversation
🦋 Changeset detectedLatest commit: b14a5be The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
WalkthroughSpotlight target measurement now requires consecutive-stable geometry before finalizing and defers scroll adjustment; a changeset records the patch. Separately, AppLayout and server SIWE logic are adjusted for connection-aware owner derivation, error classification adds walletBusy/walletDisconnected, and useAuth short-circuits on wallet-busy errors. ChangesSpotlight Target Measurement Fix
Auth & Error Classification
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request improves the spotlight target measurement in InstallmentsSpotlight.tsx by increasing the polling frequency and introducing a stability check to ensure measurements are consistent before updating the state. The feedback suggests making the stability check more robust by explicitly verifying the existence of the previous measurement object, which enhances code clarity and prevents potential TypeScript issues.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1014 +/- ##
==========================================
+ Coverage 72.23% 72.32% +0.09%
==========================================
Files 240 240
Lines 9519 9595 +76
Branches 3082 3125 +43
==========================================
+ Hits 6876 6940 +64
- Misses 2369 2381 +12
Partials 274 274
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b14a5be0f2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| targetRef.current?.measureInWindow((x, y, width, height) => { | ||
| if (width > 0 && height > 0 && y >= 0 && y + height <= screenHeight) { | ||
| const valid = width > 0 && height > 0 && y >= 0 && y + height <= screenHeight; | ||
| if (valid && previous?.x === x && previous.y === y && previous.width === width && previous.height === height) { |
There was a problem hiding this comment.
Relax spotlight stability check tolerance
The new stabilization gate requires two measureInWindow samples to be exactly equal on x, y, width, and height before calling setTarget, but these values can fluctuate by small fractional amounts during/after scroll on real devices. In that case the equality condition never passes, the interval times out after 40 attempts, and the spotlight silently never appears. Using a small tolerance (or a bounded delta) avoids this regression while still filtering unstable measurements.
Useful? React with 👍 / 👎.
Summary by CodeRabbit
Bug Fixes
Improvements