Repository navigation
fix: type the shared filter, identity and saved-view modules (CM-1532) - #4984
Conversation
Refs linuxfoundation/lfx-cdp-insights-ops#232 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Refs linuxfoundation/lfx-cdp-insights-ops#232 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Refs linuxfoundation/lfx-cdp-insights-ops#232 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Refs linuxfoundation/lfx-cdp-insights-ops#232 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Refs linuxfoundation/lfx-cdp-insights-ops#232 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
PR SummaryLow Risk Overview Filters: Vue Identities & platform: Identity shapes now allow Saved views: The form’s Other: Reviewed by Cursor Bugbot for commit 853a78e. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
🟢 Approval recommended
Static review identified no blocking regressions in these focused typing changes; typechecking was not executed.
0 open findings
What changed in this PR
Improves typing across shared frontend modules and lowers the typecheck error baseline from 187 to 154.
Changes:
- Refines filter models, event signatures, and renderer types.
- Aligns identity and saved-view types with existing usage.
- Documents legacy nullability assumptions without changing those behaviors.
| File | Description |
|---|---|
| frontend/typecheck-baseline.json | Lowers error baseline to 154. |
| frontend/src/shared/modules/saved-views/components/forms/SavedViewForm.vue | Adjusts view typing and removes redundant fallbacks. |
| frontend/src/shared/modules/report-issue/config/type/project-affiliation/project-affiliation.ts | Types affiliation collections. |
| frontend/src/shared/modules/report-issue/component/report-data-issue-modal.vue | Marks the existing entity assumption. |
| frontend/src/shared/modules/platform/components/platform.vue | Allows nullable identity links. |
| frontend/src/shared/modules/permissions/router/PermissionGuard.ts | Types navigation guard parameters. |
| frontend/src/shared/modules/merge/config/organization/apiErrorMessage.ts | Marks the existing response assumption. |
| frontend/src/shared/modules/merge/config/member/apiErrorMessage.ts | Marks the existing response assumption. |
| frontend/src/shared/modules/identities/config/useOrganizationIdentities.ts | Aligns identity keys and nullable links. |
| frontend/src/shared/modules/identities/components/identities-horizontal-list.vue | Types verification status and nullable links. |
| frontend/src/shared/modules/filters/config/itemLabelRenderer/date.label.renderer.ts | Types the partial operator-label map. |
| frontend/src/shared/modules/filters/config/apiFilterRendererByType.ts | Types the optional numeric parser. |
| frontend/src/shared/modules/filters/config/apiFilterRenderer/number.filter.renderer.ts | Makes numeric coercion explicit. |
| frontend/src/shared/modules/filters/config/apiFilterRenderer/date.filter.renderer.ts | Adds casts documenting legacy value assumptions. |
| frontend/src/shared/modules/filters/components/filterTypes/DateFilter.vue | Types date-operator checks. |
| frontend/src/shared/modules/filters/components/FilterSearch.vue | Adds the event return type. |
| frontend/src/shared/modules/filters/components/FilterItem.vue | Types the model and narrows custom configuration. |
| frontend/src/shared/modules/filters/components/FilterDropdown.vue | Adds event return types. |
| frontend/src/shared/modules/filters/components/Filter.vue | Adds event return types. |
🧠 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 shared filter, identity and saved-view modules. Type errors on
maindrop from 187 to 154, andshared/modulesis at zero.FilterInputand the other shared filter components take typed models; casts that hidenullorundefinedare marked withshortcut:comments.Closes linuxfoundation/lfx-cdp-insights-ops#232