Actions
Improvement #12669
openRefactor ui-components to Pass Device Types and User Scopes as Props.
Status:
New
Priority:
Medium
Assignee:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Device Type:
Component:
Type:
UI
Description
- Currently, several components within the ui-components module (EntgraUserBulkActionBar, EntgraSearchFilter, EntgraDeviceFeature, and EntgraDevicesTable, etc.) have hardcoded values for device types. Also, user scopes are also hardcoded in various places (ex: as isAuthorized(scopes, [['dm:conf:view']])).
- To improve maintainability, flexibility, and reusability, these values should be passed as props into the respective components instead of being hardcoded within the module. Proper naming conventions should be followed when defining these props to ensure clarity and consistency across the codebase.
- Consider this approach for any hardcoded values used inside the module that can be passed as props, not just limited to device types and user scopes.
- Update the relevant README files as well.
- Also, since this change could break the released packs, make sure to bump the major version.
No data to display
Actions