Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughPlatformAdapter.recordActivity parameter order changed: blockNum moved to an optional third parameter. Web broadcast adapter and several post/proposal mutation hooks updated to call the new signature and to record activity when Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/web/src/providers/sdk/web-broadcast-adapter.ts (1)
281-292:⚠️ Potential issue | 🟡 MinorPass
_blockNumtousrActivityinstead of hardcodedundefined.The
_blockNumparameter is received from the interface but always passed asundefinedtousrActivity. Other calls in the codebase (e.g.,apps/web/src/api/operations.ts) pass actual block numbers. Either use the parameter or remove it from the signature to avoid confusion.Suggested change
- await usrActivity(token, activityType, undefined, txId); + await usrActivity(token, activityType, _blockNum, txId);🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/web/src/providers/sdk/web-broadcast-adapter.ts` around lines 281 - 292, In recordActivity (web-broadcast-adapter.ts) you're ignoring the _blockNum parameter and calling usrActivity(token, activityType, undefined, txId); change the call to pass the received _blockNum (usrActivity(token, activityType, _blockNum, txId)) so the actual block number is propagated, or if block numbers are truly unused remove the _blockNum parameter from recordActivity's signature and all callers; update references to the recordActivity function accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@apps/web/src/providers/sdk/web-broadcast-adapter.ts`:
- Around line 281-292: In recordActivity (web-broadcast-adapter.ts) you're
ignoring the _blockNum parameter and calling usrActivity(token, activityType,
undefined, txId); change the call to pass the received _blockNum
(usrActivity(token, activityType, _blockNum, txId)) so the actual block number
is propagated, or if block numbers are truly unused remove the _blockNum
parameter from recordActivity's signature and all callers; update references to
the recordActivity function accordingly.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
apps/web/src/providers/sdk/web-broadcast-adapter.tspackages/sdk/src/modules/core/types/platform-adapter.tspackages/sdk/src/modules/posts/mutations/use-comment.tspackages/sdk/src/modules/posts/mutations/use-reblog.tspackages/sdk/src/modules/posts/mutations/use-update-reply.tspackages/sdk/src/modules/posts/mutations/use-vote.tspackages/sdk/src/modules/proposals/mutations/use-proposal-vote.ts
🚧 Files skipped from review as they are similar to previous changes (4)
- packages/sdk/src/modules/posts/mutations/use-reblog.ts
- packages/sdk/src/modules/posts/mutations/use-update-reply.ts
- packages/sdk/src/modules/proposals/mutations/use-proposal-vote.ts
- packages/sdk/src/modules/posts/mutations/use-comment.ts
Summary by CodeRabbit