regression(apps): notifier accessor undefined in the Reader implementation - #41738
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Walkthrough
ChangesAccessor notifier lifecycle
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #41738 +/- ##
===========================================
+ Coverage 68.67% 68.71% +0.04%
===========================================
Files 4166 4166
Lines 159384 159384
Branches 28315 28280 -35
===========================================
+ Hits 109458 109523 +65
+ Misses 44763 44701 -62
+ Partials 5163 5160 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/apps/base-runtime/src/lib/accessors/mod.ts (1)
105-106: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRemove the new implementation comments.
The coding guidelines prohibit code comments in implementation files. The
getReader()andgetNotifier()calls show the initialization order.Proposed change
- // `getReader()` bakes the notifier into the Reader, so the notifier has to be - // resolvable before this line runs -- `getNotifier()` creates it on demand. this.http = new Http(this.getReader(), this.getPersistence(), this.httpExtend, this.getSenderFn());As per coding guidelines, “Avoid code comments in the implementation.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/apps/base-runtime/src/lib/accessors/mod.ts` around lines 105 - 106, Remove the implementation comment immediately above the getReader() and getNotifier() initialization calls, leaving the existing calls and initialization order unchanged.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@packages/apps/base-runtime/src/lib/accessors/mod.ts`:
- Around line 105-106: Remove the implementation comment immediately above the
getReader() and getNotifier() initialization calls, leaving the existing calls
and initialization order unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9ac8dce4-5c99-4ec4-97e7-91d98b39467a
📒 Files selected for processing (2)
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
- GitHub Check: cubic · AI code reviewer
- GitHub Check: Hacktron Security Check
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation
Files:
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
packages/**
📄 CodeRabbit inference engine (CLAUDE.md)
Shared libraries belong in
packages/, while other services belong inapps/andee/.
Files:
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
🧠 Learnings (3)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.
Applied to files:
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.
Applied to files:
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.
Applied to files:
packages/apps/base-runtime/src/lib/accessors/mod.tspackages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts
🔇 Additional comments (2)
packages/apps/base-runtime/src/lib/accessors/mod.ts (1)
365-370: LGTM!packages/apps/base-runtime/src/lib/accessors/tests/accessorSurfaceIntegrity.test.ts (1)
1-197: LGTM!
Proposed changes (including videos or screenshots)
Introduced in #41377
The way to instantiate the reader changed, causing an ordering issue.
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit