Open MuhammadKhalilzadeh opened 15 hours ago
The pull request introduces new components and updates existing ones to enhance vendor management functionality within the application. Key changes include the addition of modal components for adding and confirming the deletion of vendors, a date picker, and an icon button with a contextual menu. The package.json
file has been updated to include new Material-UI libraries. Additionally, type safety has been improved in the BasicTable
component, and a structured list of vendor data has been added for better data management.
File Path | Change Summary |
---|---|
Clients/package.json | Updated dependencies: @mui/material from ^6.1.0 to ^6.1.1 , added @mui/lab (^6.0.0-beta.10 ), @mui/x-date-pickers (^7.18.0 ), and dayjs (^1.11.13 ). |
Clients/src/presentation/components/IconButton/index.tsx | Added new component IconButton with a menu for user actions. |
Clients/src/presentation/components/Inputs/Datepicker/index.css | Introduced CSS for the MUI Date Picker component, defining styles for height, padding, and font size. |
Clients/src/presentation/components/Inputs/Datepicker/index.tsx | Added new component DatePicker utilizing Material-UI's date picker functionality with customizable props. |
Clients/src/presentation/components/Inputs/Field/index.tsx | Updated FieldProps interface to include optional width property. |
Clients/src/presentation/components/Modals/Basic/index.tsx | Added new component BasicModal for vendor deletion confirmation. |
Clients/src/presentation/components/Modals/NewVendor/index.tsx | Added new component AddNewVendor for adding vendor information with tabbed interface. |
Clients/src/presentation/components/Table/WithPlaceholder/index.tsx | Introduced new component TableWithPlaceholder for displaying vendors with a placeholder image. |
Clients/src/presentation/components/Table/index.tsx | Updated paginated and reversed properties in BasicTable to enforce boolean type. |
Clients/src/presentation/containers/Dashboard/index.tsx | Modified Dashboard component to include a sx prop for styling. |
Clients/src/presentation/mocks/vendors.data.ts | Added new file containing structured vendor data. |
Clients/src/presentation/pages/Vendors/index.tsx | Expanded Vendors component to manage vendors with modals and tables, integrating new UI elements. |
sequenceDiagram
participant User
participant VendorsPage
participant AddNewVendorModal
participant BasicModal
User->>VendorsPage: Open Vendors Page
VendorsPage->>User: Display Vendors List
User->>VendorsPage: Click "Add New Vendor"
VendorsPage->>AddNewVendorModal: Open Modal
AddNewVendorModal->>User: Display Vendor Form
User->>AddNewVendorModal: Fill Form and Click "Save"
AddNewVendorModal->>VendorsPage: Close Modal
VendorsPage->>User: Refresh Vendors List
User->>VendorsPage: Click "Delete Vendor"
VendorsPage->>BasicModal: Open Confirmation Modal
BasicModal->>User: Confirm Deletion
🐰 In the garden where vendors bloom,
A modal opens, dispelling gloom.
With buttons and pickers, oh what a sight,
New features hop in, bringing delight!
So gather 'round, let’s celebrate,
With code so fresh, it’s truly great! 🌼
Tasks:
Summary by CodeRabbit
Release Notes
New Features
IconButton
,DatePicker
,BasicModal
,AddNewVendor
, andTableWithPlaceholder
.Vendors
component, including a modal for adding new vendors.Improvements
Bug Fixes
paginated
andreversed
properties in theBasicTable
component.