chore(mobile): remove dead-code shared/ModuleErrorBoundary (206 LOC)#2739
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR removes the unused ChangesDead Code Removal and Audit Closure
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@docs/tech-debt/mobile.md`:
- Around line 3-10: The blockquote header in docs/tech-debt/mobile.md contains
an extra blank line breaking the contiguous `>` sequence and triggering
markdownlint MD028; edit the quoted header block so every separator line begins
with `>` with no intervening blank line (i.e., collapse the blank line between
the two `>` paragraphs into a `>` line) while preserving the text about
ModuleErrorBoundary, useRoutineReminders.ts, and the file-size inventory so the
blockquote remains contiguous.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: f2ce524f-0078-4ecd-99fa-82e3c91efa26
📒 Files selected for processing (4)
apps/mobile/src/modules/shared/ModuleErrorBoundary.tsxdocs/audits/2026-05-13-mobile-reliability-ux-roast.mddocs/audits/README.mddocs/tech-debt/mobile.md
💤 Files with no reviewable changes (1)
- apps/mobile/src/modules/shared/ModuleErrorBoundary.tsx
⏱️ CI Pipeline Duration ReportBased on the last 50 successful runs on the default branch. Overall Pipeline
Trend (last 20 runs): Per-Job Breakdown
|
Removes `apps/mobile/src/modules/shared/ModuleErrorBoundary.tsx` — pre-flight grep:
- `grep -rn "modules/shared/ModuleErrorBoundary\|shared/ModuleErrorBoundary" apps/mobile` → 0
- `grep -rn 'require\.context\|import(".*ModuleErrorBoundary' apps/mobile` → 0
All 5 consumers import `@/core/ModuleErrorBoundary` instead — the single live
per-module boundary remains `apps/mobile/src/core/ModuleErrorBoundary.tsx`.
Cross-repo grep surfaced 2 illustrative refs in eslint-plugin-sergeant-design
(comment example + synthetic path-fixture using `path.resolve`, not `fs.exists`) —
not load-bearing, left untouched to keep scope tight.
Closes audit item P2.1 in docs/audits/2026-05-13-mobile-reliability-ux-roast.md;
syncs docs/tech-debt/mobile.md + docs/audits/README.md counters (3/12 → 4/12, 9 → 8).
Co-Authored-By: Андрій Виграв <dmytro.s.stakhov@gmail.com>
3c932c6 to
b1aa97e
Compare
Summary
Видаляю dead-code файл
apps/mobile/src/modules/shared/ModuleErrorBoundary.tsx(206 LOC) — закриваю audit item P2.1 зdocs/audits/2026-05-13-mobile-reliability-ux-roast.md. Pre-flight grep підтвердив 0 імпортерів та 0 dynamic-import /require.contextпатернів уapps/mobile/**; усі consumer-и користуються канонічним@/core/ModuleErrorBoundary. Єдиним живим per-module боундарі залишаєтьсяapps/mobile/src/core/ModuleErrorBoundary.tsx.Documentation sync:
docs/audits/2026-05-13-mobile-reliability-ux-roast.md— P2.1 ✅ Closed, прибрано з Outstanding-таблиці, оновлено TL;DR pain Dashboard: Add time-based greeting, summary cards and quick action buttons to hero #4 + top-level Last validated.docs/tech-debt/mobile.md— додано dead-file note до Last validated.docs/audits/README.md— counter 3/12 → 4/12, Outstanding 9 → 8, Last validated.Parent session: https://app.devin.ai/sessions/cf40d7a65c784939be2fae8b897ce59e
Audit-док + item:
docs/audits/2026-05-13-mobile-reliability-ux-roast.md§P2.1Governing Skill
.agents/skills/sergeant-start-here/SKILL.md→.agents/skills/sergeant-mobile-expo/SKILL.md.Playbook
Verification
Pre-existing CI noise verified by stashing my diff and rerunning on
origin/main— ті самі fails там же, my-diff не їх причина.Additional checks:
Docs and Governance
AGENTS.mdneeded an update.Updated docs:
docs/audits/2026-05-13-mobile-reliability-ux-roast.md— P2.1 ✅ Closed, removed from Outstanding table, Last validated bumped.docs/tech-debt/mobile.md— Last validated bumped + dead-file note.docs/audits/README.md— counter 3/12 → 4/12, Outstanding 9 → 8, Last validated bumped.Risk and Rollout
main, нічого додатково.git revert <merge-commit>.Hard Rule #15
AGENTS.mdbefore coding.--no-verify.Audit-freeze (until 2026-06-02)
Reviewer Notes
Anti-scope strictly enforced: інші audit-айтеми з тієї ж прожарки (P0/P1/P2.2-P2.5) не торкав, інші audit-документи не торкав. Cross-repo grep показав 2 illustrative-only refs у
packages/eslint-plugin-sergeant-design/(comment example + synthetic path-fixture usingpath.resolve, неfs.exists) — навмисно залишив незмінними щоб тримати scope тісним; опційний follow-up.Acceptance checklist
pnpm lint && pnpm typecheck && pnpm testлокально проходять у частині my-diff (pre-existing failures документовані вище).docs/audits/README.mdcounter + Last validated,docs/tech-debt/mobile.md) — синхронізовано.mobile); branchdevin/1778713150-mobile-rm-module-error-boundary.Summary by cubic
Removed dead code
apps/mobile/src/modules/shared/ModuleErrorBoundary.tsx(206 LOC) and consolidated on the core boundary. Closes audit P2.1 and syncs related docs/counters.apps/mobile/src/modules/shared/ModuleErrorBoundary.tsxafter grep confirmed 0 importers and no dynamic imports.@/core/ModuleErrorBoundary; the only live boundary isapps/mobile/src/core/ModuleErrorBoundary.tsx.docs/audits/2026-05-13-mobile-reliability-ux-roast.md; bumpeddocs/audits/README.mdcounters (3/12 → 4/12; Outstanding 9 → 8); added note indocs/tech-debt/mobile.md. Cross-repo illustrative refs ineslint-plugin-sergeant-designleft as-is.Written for commit ad9e845. Summary will update on new commits.
Summary by CodeRabbit