Centralize and Standardize Modal Implementation #214
Labels
Cleanup
Tasks for removing clutter and improving project structure.
🌱Nice-to-Have
Enhancements, Refactors, UI tweaks, or non-critical optimizations
Refactor
Code Improvement
Milestone
Our current approach to modals relies on a
ModalWrapper.tsx
component and direct usage of the MUIDialog
in various places. This has led to duplicated code, inconsistent styling, and an overly large wrapper file. To keep our application maintainable, we need to centralize and standardize how modals are created, styled, and managed—similar to the improvements we did for toast notifications.A well-structured, DRY solution should allow easy creation of new modal variations without duplicating layout or styling logic, ideally using smaller components and/or a global modal management approach.
Tasks
Audit All Existing Modals
Locate and list each modal usage across the codebase (including
ModalWrapper.tsx
and any direct MUIDialog
usages).Propose a Unified Modal Strategy
Create Modular Components
ModalWrapper.tsx
into smaller, focused components.UploadBox
,InviteBox
) into self-contained, reusable pieces.Implement the New Modal Architecture
Refactor Existing Code
ModalWrapper.tsx
and directly usedMUI Dialog
s—to the new standardized system.ModalWrapper.tsx
if it is no longer needed.Manual Testing
Guidelines & Notes
Benefits
The text was updated successfully, but these errors were encountered: