Repository navigation
[Customer Portal][FE][Web] Remove Recommended Update Levels Feature and Related Cleanup - #754
Conversation
Delete the useGetRecommendedUpdateLevels hook (removed file) and remove the UPDATES_RECOMMENDED_LEVELS_LOAD_ERROR constant from updatesConstants.ts. Cleans up obsolete code related to fetching recommended update levels and removes an unused error message.
Delete the RECOMMENDED_UPDATE_LEVELS entry from ApiQueryKeys and remove the corresponding mock for useGetRecommendedUpdateLevels in UpdateHistoryTab tests. Keeps constants and tests in sync after the recommended update levels hook/feature was removed.
📝 WalkthroughWalkthroughThe PR removes the ChangesRemoval of recommended update levels hook and constants
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
|
Actionable comments posted: 0 |
Description
This pull request removes all code related to the "recommended update levels" feature from the customer portal webapp. This includes deleting the query hook, removing related constants, and cleaning up associated test mocks.
Key removals related to "recommended update levels":
API and Query Code Removal:
useGetRecommendedUpdateLevelshook, which previously fetched recommended update levels from the backend.RECOMMENDED_UPDATE_LEVELSkey from theApiQueryKeysconstant inapiConstants.ts.Test and Constant Cleanup:
useGetRecommendedUpdateLevelsfrom theUpdateHistoryTab.test.tsxtest file.UPDATES_RECOMMENDED_LEVELS_LOAD_ERRORconstant fromupdatesConstants.ts.Summary by CodeRabbit