What problem does it solve?
It prevents inconsistent, fragile frontend implementations by standardizing React component structure, styled-components usage, and Redux patterns for RedisInsight’s UI codebase.
Core Features & Use Cases
- Component and folder conventions: Enforces a predictable per-component directory layout (components, hooks, utils, styles, tests) to keep code navigable as the app grows.
- Styled-components best practices: Requires dedicated PascalCase
.styles.ts files, semantic theme usage, layout-component-first styling, transient prop conventions, and avoids !important.
- React and Redux implementation guidance: Promotes safe React performance practices (memoization, stable keys, effect cleanup), and consistent Redux Toolkit patterns (slices, thunks, selectors with reselect).
- UI component and icon migration rules: Guides developers to use internal UI wrappers (
uiSrc/components/ui) and Redis UI icons rather than Elastic UI or custom SVGs.
Quick Start
Follow the React/Redux frontend conventions in the frontend skill when editing a component under redisinsight/ui to ensure it uses styled-components, layout components, correct theme colors, and the recommended Redux Toolkit patterns.