Repository navigation
fix: type the member module and its merge suggestion owners (CM-1535) - #4985
Conversation
Refs linuxfoundation/lfx-cdp-insights-ops#235 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
…st (CM-1535) Refs linuxfoundation/lfx-cdp-insights-ops#235 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
… (CM-1535) Refs linuxfoundation/lfx-cdp-insights-ops#235 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
PR SummaryLow Risk Overview Behavioral tweak: merge-suggestion Ignore / Merge buttons no longer gate on Collateral typing/formatting only: JSDoc on Reviewed by Cursor Bugbot for commit dad1e1b. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
🟢 Approval recommended
Source review identified no blocking issues in these focused typing changes; automated checks were not run.
0 open findings
What changed in this PR
Improves typing in the frontend member module and its merge-suggestion components, reducing the recorded type-error baseline from 187 to 165.
Changes:
- Converts two merge-suggestion components to TypeScript and removes their legacy lint exemptions.
- Refines callback, project, promise, and nullable-reference types.
- Documents deferred typing shortcuts and updates the typecheck baseline.
| File | Description |
|---|---|
| frontend/typecheck-baseline.json | Lowers the error baseline to 165. |
| frontend/src/shared/modules/merge/types/MemberMessage.ts | Types the error callback’s boolean return. |
| frontend/src/modules/member/pages/member-list-page.vue | Guards a nullable filter reference. |
| frontend/src/modules/member/components/suggestions/member-merge-suggestions-details.vue | Adds TypeScript props, events, and refs. |
| frontend/src/modules/member/components/suggestions/filters/merge-suggestions-projects-filter.vue | Types project selections and guards group access. |
| frontend/src/modules/member/components/member-merge-suggestions.vue | Adds TypeScript and normalizes empty suggestion state. |
| frontend/src/modules/member/components/member-dropdown-content.vue | Declares the legacy HubSpot service shape. |
| frontend/src/modules/member/components/member-bot-suggestions.vue | Specifies the fetch promise return type. |
| frontend/src/modules/lf/segments/store/actions.js | Documents project-list parameter types through JSDoc. |
| frontend/.eslint/legacy-files.json | Removes two legacy lint exemptions. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Gašper Grom <gasper.grom@gmail.com> # Conflicts: # frontend/typecheck-baseline.json
Summary
Types the member module and the owners of its merge suggestions. Type errors on
maindrop from 187 to 165.anyshortcuts in the merge-suggestion code are marked withshortcut:comments and a named revisit trigger, because typingContributorfully adds about 45 errors.isEditLockedForSampleData. Nothing declares it, so it was always undefined and the buttons were never locked by it.Closes linuxfoundation/lfx-cdp-insights-ops#235