perf: Refactor imports and clean up unused variables across multiple components#447
Merged
Roopan-Microsoft merged 1 commit intodevfrom Mar 12, 2026
Merged
perf: Refactor imports and clean up unused variables across multiple components#447Roopan-Microsoft merged 1 commit intodevfrom
Roopan-Microsoft merged 1 commit intodevfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes unused imports and variables across multiple frontend components, along with a minor semicolon fix. These are straightforward cleanup changes that reduce noise and slightly improve bundle size.
Changes:
- Removed unused imports (
PayloadAction,makeStyles,useHeaderHooks,githubDarkTheme, MSAL imports, React hooks, etc.) from 11 files - Removed unused variables (
isNetworkError,targetDocument, unused table selection destructured properties) - Added missing semicolon in
UploadFilesModal.tsxstate reset function
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| centerPanelSlice.ts | Removed unused PayloadAction import |
| defaultPageSlice.ts | Removed unused createAsyncThunk, PayloadAction imports |
| rightPanelSlice.ts | Removed unused toast import |
| AuthWrapper.tsx | Removed unused MSAL imports |
| httpUtility.ts | Removed unused isNetworkError variable |
| HomePage.tsx | Removed unused useState import |
| DefaultPage/index.tsx | Removed unused makeStyles import |
| PanelRight.tsx | Removed unused updatePanelCollapse import |
| ProcessSteps.tsx | Removed unused useCallback import |
| ProcessQueueGrid.tsx | Removed unused imports and destructured variables |
| UploadFilesModal.tsx | Added missing semicolon |
| JSONEditor.tsx | Removed unused JsonEditorProps, githubDarkTheme imports |
| Header.tsx | Removed unused useHeaderHooks import |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
AjitPadhi-Microsoft
approved these changes
Mar 12, 2026
Collaborator
AjitPadhi-Microsoft
left a comment
There was a problem hiding this comment.
All looks good.
Roopan-Microsoft
approved these changes
Mar 12, 2026
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.
Purpose
This pull request primarily refactors import statements across multiple files in the codebase to remove unused imports and streamline dependencies. It also includes minor code cleanups and state reset improvements. These changes help reduce bundle size, improve code readability, and prevent potential issues caused by unused code.
Import statement cleanup and optimization
PayloadAction,makeStyles,useHeaderHooks,githubDarkTheme, and others from various files includingcenterPanelSlice.ts,defaultPageSlice.ts,rightPanelSlice.ts,Header.tsx,JSONEditor.tsx, andindex.tsx. [1] [2] [3] [4] [5] [6]AuthWrapper.tsx.useCallbackanduseStatefromProcessSteps.tsxandHomePage.tsx. [1] [2]PanelRight.tsx.Codebase simplification
useScrollbarWidth,useFluent, andtargetDocumentfromProcessQueueGrid.tsx. [1] [2]ProcessQueueGrid.tsx.httpUtility.ts.Minor functional improvements
UploadFilesModal.tsxby properly terminating the function with a semicolon.19 findings:
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information