feat!: modernize library with functional components and style props API#1864
Open
madhavilosetty-intel wants to merge 2 commits intomainfrom
Open
feat!: modernize library with functional components and style props API#1864madhavilosetty-intel wants to merge 2 commits intomainfrom
madhavilosetty-intel wants to merge 2 commits intomainfrom
Conversation
1ab9304 to
59de35d
Compare
rsdmike
reviewed
Jan 21, 2026
f47fc6c to
9b78c17
Compare
041af6b to
e2545a3
Compare
BREAKING CHANGES:
- Component styling now uses style props (containerStyle, canvasStyle, etc.)
instead of CSS classes
- canvasWidth/canvasHeight props now apply to CSS display size
- Replaced webpack with rollup for builds
- Restructured exports from src/components/*
Changes:
- Refactor all components to functional React with hooks
- Add customizable style props for all components
- Add dev-only logger utility (stripped in production)
- Add comprehensive unit tests
- Add example app with Vite
- Update i18n structure with JSON locale files
e2545a3 to
7ac9786
Compare
There was a problem hiding this comment.
Pull request overview
This pull request modernizes the UI Toolkit React library by migrating from class-based components to functional components with hooks, and replacing styled-components with a style props API for better customization. The changes also streamline the build process by replacing webpack with rollup.
Changes:
- Migrated all React components from class-based to functional components using hooks
- Replaced styled-components with a customizable style props API
- Switched build system from webpack to rollup
- Removed legacy webpack configurations and old test files
- Added comprehensive test coverage for all new components
Reviewed changes
Copilot reviewed 109 out of 117 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
package.json |
Updated dependencies, scripts, and build configuration to use rollup instead of webpack |
rollup.config.js |
New rollup configuration for building ESM and CJS bundles |
src/components/kvm/*, src/components/sol/*, src/components/ider/* |
Migrated components to functional components with hooks and style props API |
src/utils/logger.ts |
New logger utility for development debugging |
src/i18n/* |
Restructured i18n configuration with updated locale files |
example/* |
New Vite-based example application demonstrating component usage |
jest.setup.ts |
Enhanced test setup with comprehensive mocks |
eslint.config.js |
New flat ESLint configuration replacing legacy .eslintrc.json |
Files not reviewed (1)
- example/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ea561ea to
fca9500
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… the test case and corrected lint
PR Checklist
What are you changing?
Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. device-management-toolkit/repo#365 )