Repository navigation
fix: type the integration progress, ui-kit and overview long tail (CM-1536) - #4986
Conversation
…ail (CM-1536) Refs linuxfoundation/lfx-cdp-insights-ops#236 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
…t at parity (CM-1536) Refs linuxfoundation/lfx-cdp-insights-ops#236 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
Refs linuxfoundation/lfx-cdp-insights-ops#236 Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
PR SummaryMedium Risk Overview Broad TypeScript cleanup across ui-kit (search, tabs, contenteditable, field messages, popover, Storybook renders), overview imports, project form Axios errors, merge message types, and LogRocket’s Reviewed by Cursor Bugbot for commit 033acbc. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
🟢 Approval recommended
The focused typing corrections and null guards have no identified blocking issues.
0 open findings
What changed in this PR
Improves frontend typing across integration progress, overview components, and the UI kit while guarding against unavailable progress data.
Changes:
- Aligns progress types with array responses and handles missing data safely.
- Corrects component, event, and helper types.
- Lowers the typecheck baseline from 187 errors to 152.
| File | Description |
|---|---|
| frontend/typecheck-baseline.json | Lowers expected error count. |
| frontend/src/utils/logRocket/index.ts | Corrects boolean return type. |
| frontend/src/ui-kit/tabs/Tab.vue | Guards missing parent access. |
| frontend/src/ui-kit/search/Search.vue | Supports string and numeric values. |
| frontend/src/ui-kit/lfx/popover/popover.vue | Types and documents the existing client check. |
| frontend/src/ui-kit/field-messages/FieldMessages.vue | Types validation errors and declares hideDefault. |
| frontend/src/ui-kit/dropdown/DropdownItem.stories.ts | Types story arguments. |
| frontend/src/ui-kit/dropdown/Dropdown.stories.ts | Types story arguments. |
| frontend/src/ui-kit/contenteditable/Contenteditable.vue | Types DOM access and guards initialization. |
| frontend/src/modules/overview/components/fragments/trend-display.vue | Corrects the type import path. |
| frontend/src/modules/overview/components/fragments/status-display.vue | Guards unavailable progress. |
| frontend/src/modules/integration/types/IntegrationProgress.ts | Adds optional percentage. |
| frontend/src/modules/integration/helpers/integration-progress-notification.ts | Types notification inputs and slot data. |
| frontend/src/modules/integration/components/integration-progress.vue | Types status priority lookup. |
| frontend/src/modules/integration/components/integration-progress-wrapper.vue | Uses array response types and removes object-only normalization. |
| frontend/src/modules/integration/components/integration-progress-bar.vue | Accepts undefined progress. |
| frontend/src/modules/admin/modules/projects/components/form/lf-project-form.vue | Types error response data. |
| frontend/src/modules/admin/modules/integration/pages/integration-status.page.vue | Guards unavailable progress. |
| frontend/src/modules/admin/modules/integration/components/status/integration-platform-select.vue | Declares event return type. |
| frontend/src/modules/admin/modules/integration/components/integration-list-item.vue | Corrects progress prop to an array. |
🧠 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 long tail: integration progress, ui-kit components, the overview and the LogRocket helper. Type errors on
maindrop from 187 to 152.progress.findbefore the first fetch, and a failed progress request shows "Loading progress..." where main rendered blank cells.shortcut:comments.github-nangotogithubremap in the progress wrapper is removed: it testeddata.platform, which the progress response does not have, so it never ran.Closes linuxfoundation/lfx-cdp-insights-ops#236