Skip to content

Implemented Return Policy Screen

Akila Ranga requested to merge ui_feature_return-policy-screen into dev

PR Type

Enhancement


Description

  • Implemented comprehensive Return Policy Screen with tabbed interface

  • Added Product Categorization and Return Type management with CRUD operations

  • Created Product Policy Mapping functionality with category assignments

  • Enhanced UI components with modals, filters, and improved styling


Diagram Walkthrough

flowchart LR
  A["Return Policy Page"] --> B["Product Categorization Tab"]
  A --> C["Return Types Tab"]
  A --> D["Policy Mapping Tab"]
  B --> E["CRUD Operations"]
  C --> F["CRUD Operations"]
  D --> G["Category Assignment"]
  E --> H["Upsert Modal"]
  F --> I["Upsert Modal"]
  G --> J["Manage Mappings Modal"]

File Walkthrough

Relevant files
Configuration changes
3 files
route.ts
Fixed import path references                                                         
+2/-2     
SignIn.tsx
Fixed import path reference                                                           
+1/-1     
layout.tsx
Fixed import path reference                                                           
+1/-1     
Enhancement
26 files
ProductCategorization.ts
Added product categorization response models                         
+21/-0   
ReturnTypeResponse.ts
Added return type response models                                               
+23/-0   
ui.ts
Extended UI constants for return policy features                 
+53/-1   
productCategorization.ts
Added mock product categorization data                                     
+7/-0     
productCategorizationResponse.ts
Added mock product categorization response data                   
+38/-0   
returnTypeResponse.ts
Added mock return type response data                                         
+35/-0   
returnTypesMappingDetails.ts
Added mock return type mapping data                                           
+33/-0   
ManageMappings.tsx
Created manage mappings modal component                                   
+213/-0 
ProductCategorizationFilter.tsx
Created product categorization filter component                   
+85/-0   
ReturnTypeFilters.tsx
Created return type filters component                                       
+70/-0   
UpsertCategorizationModal.tsx
Created categorization upsert modal component                       
+87/-0   
UpsertReturnTypeModal.tsx
Created return type upsert modal component                             
+85/-0   
getProductCategorizationColumns.tsx
Added table column configuration for product categorization
+70/-0   
getReturnTypeDetailsColumns.tsx
Added table column configuration for return types               
+65/-0   
ProductCategorization.tsx
Created product categorization management page                     
+161/-0 
ProductPolicyMapping.tsx
Created product policy mapping page                                           
+95/-0   
ReturnType.tsx
Created return type management page                                           
+146/-0 
page.tsx
Created main return policy page with tabs                               
+40/-0   
AlertDialog.tsx
Created alert dialog component                                                     
+62/-0   
Button.tsx
Updated button styling for outline variant                             
+1/-1     
DateRangePicker.tsx
Added DateRange interface export                                                 
+5/-0     
Modal.tsx
Enhanced modal styling and layout                                               
+6/-4     
Pagination.tsx
Improved pagination button styling                                             
+2/-2     
Table.tsx
Enhanced table with column width support                                 
+7/-4     
Tabs.tsx
Improved tabs layout and overflow handling                             
+2/-2     
TextInput.tsx
Redesigned text input with new styling approach                   
+25/-27 

Edited by Rashmi Gaddam

Merge request reports

Loading