Skip to content

Revise or remove MuiDemo components for MUI v7 #2658

Description

@SAUMILDHANKAR

This issue written with ChatGPT models' help

Overview

Review the MuiDemo/ components for MUI v7 compatibility and determine whether they should be updated, retained as a UI sandbox, or removed if they are no longer used.

Details

⚠️ Important workflow note:
This work should be completed on a dedicated feature branch and should not be merged directly into develop or main until validation is complete.

The MuiDemo/ folder has already been converted to TypeScript, so this issue primarily focuses on reviewing compatibility with MUI v7 rather than performing a large refactor. If these demo pages are still valuable to the project, they should demonstrate current MUI v7 patterns. If they are no longer maintained or referenced, developers should evaluate whether removing them would reduce maintenance overhead.

This work may include:

  • Reviewing demo components for deprecated MUI APIs or outdated usage patterns
  • Updating examples to reflect current MUI v7 styling recommendations (sx, styled, theme usage)
  • Verifying custom component variants continue to render correctly (for example custom button variants)
  • Reviewing spacing, typography, and responsive behavior used throughout the demos
  • Updating documentation in README.md if demo behavior changes
  • Determining whether unused demo components should be removed or retained for future testing
  • Performing manual QA to verify that demo pages still accurately represent the application's design system

The MuiButtons.tsx component appears to be one of the more comprehensive demo files because it exercises multiple MUI components and custom theme behavior. Particular attention should be given to:

  • Custom button variants (such as gray) remaining compatible with the MUI v7 theme
  • Stack, Box, Typography, and Button layout behavior
  • Custom IconButton wrapper compatibility with current MUI APIs
  • Theme colors, spacing, disabled states, and responsive rendering
  • Any custom variants or overrides defined by the application theme

Known files in scope include:

  • client/src/components/MuiDemo/MuiButtons.tsx
  • client/src/components/MuiDemo/MuiChips.tsx
  • client/src/components/MuiDemo/MuiDemo.tsx
  • client/src/components/MuiDemo/MuiLink.tsx
  • client/src/components/MuiDemo/MuiPalette.tsx
  • client/src/components/MuiDemo/MuiPaper.tsx
  • client/src/components/MuiDemo/MuiTextField.tsx
  • client/src/components/MuiDemo/MuiTypography.tsx
  • client/src/components/MuiDemo/README.md

Action Items

[PLEASE ADD ACTION ITEMS (Dev lead/developer will add)]

Resources

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    Status
    Prioritized Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions