Commit Graph

50 Commits (master)

Author SHA1 Message Date
Amir Hossein Khademi d283681c7c Enhance dialog functionality and UI components
- Updated `DiscountActionDialogBoxViewModel` to include asynchronous `SubmitCreateAsync` and `Cancel` methods.
- Added a new section in `PageActionDialogBox.razor` with a `MudStack` for adding sections, removing the previous grid layout.
- Improved `PageActionDialogBox.razor.cs` with new methods for adding and editing sections, enhancing error handling and dialog management.
- Refined `app.min.css` by removing redundant CSS properties for better style application.
- Created a new dialog in `PageSectionActionDialogBox.razor` for managing section details, including fields for title, button text, and URL.
- Introduced a new view model in `PageSectionActionDialogBox.razor.cs` to handle section dialog logic, including item addition and file selection.
- Updated `BasePageSection` class in `BasePage.cs` to manage multiple `SectionItem` objects.
- Modified project files (`Netina.Common.csproj` and `Netina.Domain.csproj`) to update the target framework and package references for compatibility.
2025-04-29 19:38:46 +03:30
Amir Hossein Khademi e445be641e Merge remote-tracking branch 'origin/subProduct' 2025-03-27 10:35:37 +03:30
Amir Hossein Khademi 5dc92f63e7 Enhance page management and dialog functionality
- `PageActionDialogBox.razor`: Add form fields and data grid
  Added fields for section title, button title, address, description, type, and query. Added button and data grid for sections.
- `PageActionDialogBox.razor.cs`: Add `InitializeAsync` method
  Added using directives, `InitializeAsync` method, `IsEditing` flag, and `PageId` property.
- `PagesManagementPage.razor`: Add edit button for pages
  Added edit button to trigger `EditPageAsync` method for each page.
- `PagesManagementPage.razor.cs`: Refactor for constructor injection
  Refactored to use constructor injection. Added `EditPageAsync` method and updated `RemovePageAsync` method.
- `IPageRestApi.cs`: Change return type of `ReadById` method
  Updated return type from `BasePageSDto` to `BasePageLDto`.

Changes made by Amir.H Khademi
2025-03-25 18:41:41 +03:30
Amir Hossein Khademi 6da620690d Update page handling, dependencies, and UI components
*  Added `default` parameter to `DiscountActionDialogBoxViewModel`
* 🔧 Updated `@inject` in `ShippingActionDialogBox.razor` with new services
* ⬆️ Upgraded dependencies in `package-lock.json` and `package.json`
* 📝 Changed `IsShop` setting in `appsettings.Production.json` to `true`
* 💄 Updated `app.min.css` for Tailwind CSS v3.4.17 changes
* 🆕 Added `PageActionDialogBox.razor` and `PageActionDialogBox.razor.cs`
* 🆕 Introduced `BasePageLDto` class for detailed page info
* 🚀 Added `MapPost` endpoint for updating pages in `PageController.cs`
* 🔄 Refactored methods in `PageController.cs` for conciseness
* 🛠️ Updated `IPageService` and `PageService` with `UpdatePageAsync`
* 🗂️ Enhanced `SiteMapService` to filter pages by `Indexing`
* 🛒 Included `BrandId` in order bag commands

Changes made by Amir.h Khademi
2025-03-23 11:04:45 +03:30
Amir Hossein Khademi 96feec0b26 Add support for brand-based discounts
* 🆕 Added support for brand discounts in `CalculateOrderDiscountCommandHandler`
* 🏷️ Updated `DiscountCommands` class to include `BrandId` property
* 🏗️ Introduced `BrandDiscount` class in `Discount.Aggregate.cs` with `Create` method
* 🛠️ Modified `Order` class in `Order.Aggregate.cs` to handle `BrandId`
* 🏷️ Updated `OrderProduct` class in `Order.Aggregate.cs` to include `BrandId` property
* 🆕 Added `Brand` discount type to `DiscountType` enum
*  Enhanced `CreateDiscountCommandHandler` and `UpdateDiscountCommandHandler` for brand discounts
* 🆕 Introduced `BrandDiscount` class in `BrandDiscount.cs` to represent brand-specific discounts

Changes made by Amir.h Khademi
2025-03-23 09:40:55 +03:30
Amir Hossein Khademi a87bfee340 free shiping 2025-02-11 14:22:42 +03:30
Amir Hossein Khademi 7d94e8cd47 Add sub-product management feature
Introduced a new feature for managing sub-products within the application. This includes:

- Added a new tab panel for "Sub Products" in `ProductActionDialogBox.razor`.
- Created `SubProductActionDialogBox` component for sub-product creation and editing.
- Updated `ProductActionDialogBoxViewModel` to handle sub-product operations.
- Modified `Address` class and `IProductRestApi` interface to support sub-products.
- Added `SubProductController` for API requests related to sub-products.
- Introduced command and query classes for sub-product operations.
- Created `SubProductSDto` for sub-product data transfer.
- Added `SubProduct` class inheriting from `Product` with additional properties.
- Introduced `ProductDiversity` and `ColorDiversity` enums.
- Added `SubProductMapper` for mapping between `SubProduct` and `SubProductSDto`.
- Implemented command handlers for sub-product CRUD operations.
- Added migration script `20241217212716_AddSubProduct` to update the database schema.
- Updated `ProductController`, `SiteMapService`, and `Product` class to support sub-products.
- Added `SubProductActionDialogBox.razor` for sub-product UI management.
2024-12-18 02:14:07 +03:30
Amir Hossein Khademi 559ab04d9b Add MetaTags support and update project configurations
- Removed unused @using directives in App.razor and BrandsPage.razor.
- Added UI elements for meta tags in BrandActionDialogBox.razor.
- Updated BrandActionDialogBoxViewModel to handle meta tags.
- Changed label text in DiscountActionDialogBox.razor.
- Updated assembly and file versions in Netina.AdminPanel.PWA.csproj.
- Added BlogMetaTag and BrandMetaTag classes.
- Added migration to update database schema for meta tags.
- Updated BlogController to handle meta tags.
- Set LangVersion to latest in multiple project files.
- Changed array initialization syntax in various files.
- Added MetaTags property to BlogLDto and BrandLDto classes.
- Updated Blog and Brand classes to handle meta tags.
- Refactored mappers to include meta tags handling.
- Improved product sorting in GetProductsQueryHandler.cs.
- Updated ApplicationContextModelSnapshot for new entities.
2024-12-11 00:25:26 +03:30
Amir Hossein Khademi 53dc2eac0c Refactor and enhance product and order handling
- Updated `DiscountActionDialogBoxViewModel` and `FastProductCreateDialogBoxViewModel` to create command objects directly from properties and improved error handling.
- Added meta tag management UI and logic in `ProductActionDialogBox.razor` and `ProductActionDialogBoxViewModel`.
- Increased max file read stream size to 8 MB in `StorageDialogBoxViewModel`.
- Incremented `AssemblyVersion` and `FileVersion` to `1.7.20.34` in `Netina.AdminPanel.PWA.csproj`.
- Updated `BrandsPage.razor` and `BrandsPageViewModel` for pagination and service injection.
- Updated `CategoriesPageViewModel` to create command objects directly from properties.
- Updated `ProductsPage.razor` for service injection and added a button for product details.
- Updated `ICrudApiRest` and `ICrudDtoApiRest` interfaces to use generic `Create` methods.
- Updated `appsettings.Development.json` for `StorageBaseUrl` and commented out `IsShop`.
- Added new project `AppHost.csproj` targeting .NET 8.0 with Aspire hosting.
- Added new `appsettings.Development.json` and `appsettings.json` for logging.
- Added new `Program.cs` to create and run a distributed application.
- Added new `launchSettings.json` for application launch settings.
- Added `Extensions.cs` for common .NET Aspire services.
- Added new project `ServiceDefaults.csproj` for shared service defaults.
- Introduced `ProductMetaTag` class and related migration for meta tag handling.
- Updated `OrderController.cs` for additional authorization requirements.
- Updated target frameworks to `net8.0` in various projects.
- Enhanced `SiteMapService.cs` to include brand site maps.
- Added new properties to DTOs for customer and meta tag handling.
- Enhanced `Product` class with meta tag management methods.
- Refactored `OrderMapper.g.cs` and `ProductMapper.g.cs` for improved mapping logic.
- Enhanced command handlers to manage meta tags.
- Added `ICurrentUserService` for user permissions in query handlers.
- Refactored `StorageService.cs` for paginated storage file fetching.
2024-12-06 17:37:41 +03:30
Amir Hossein Khademi 82f9d604da feat(MetaTags) , feat(ProductCategoryMetaTags) , VER 1.6.18.28 2024-10-25 14:36:19 +03:30
Amir Hossein Khademi 738a4d523c fix (SiteMapWhiteSpace) VER 1.5.18.27 2024-10-04 20:36:14 +03:30
Amir Hossein Khademi cfb293c135 fix calculate issue 2024-09-30 22:09:39 +03:30
Amir Hossein Khademi a1f2e92863 fix(CateforyDiscount) , fix(ProductReviewCountInDTos) , VER 1.5.17.23 2024-09-29 12:31:08 +03:30
Amir Hossein Khademi ca934aecc8 Update Packages 2024-09-24 14:03:16 +03:30
Amir Hossein Khademi 6bd9066f8d Change to comment PHASE A 2024-09-24 00:34:53 +03:30
Amir Hossein Khademi fda7088abb feat ( ReviewEntitiy )
- Add review entity and CQRS
2024-09-01 12:28:42 +03:30
Amir Hossein Khademi 2e8501190e fix (ControllerMethodsDescription) , fix(SlugExtension) 2024-08-16 18:27:54 +03:30
Amir Hossein Khademi ae9b65adbd fix files 2024-08-09 21:55:16 +03:30
Amir Hossein Khademi 1137fde70b fix(CancelOrder) 2024-08-06 10:30:01 +03:30
Amir Hossein Khademi 8c7e09e5e6 fix(AmountSpecialOffer) 2024-08-05 23:23:32 +03:30
Amir Hossein Khademi a66ee7c8a2 fix(TaxesFee) , fix(InvoiceWaterMark) , VER 1.0.9.11 2024-07-01 21:08:32 +03:30
Amir Hossein Khademi ab0f4a683c feat(TaxesFee)
- Add taxes fee
- Calculate taxes fee in calculate order command handler
2024-07-01 19:49:26 +03:30
Amir Hossein Khademi 95346be5f1 feat(AddFeatureFastProduct) , fix(CheckUserDiscount) , fix(SideBar)
- Add feature in fast product create dialog box
- Fix user fist use discount check user
- Fix sidebar
2024-06-24 22:32:44 +03:30
Amir Hossein Khademi 4ff7601843 fix(CheckUserFirstDiscountUser)
-Add new command for CheckUserFirstDiscountUser
-Fix CheckUserFirstDiscountUser
2024-06-12 11:05:15 +03:30
Amir Hossein Khademi 5edd394252 fix(DiscountCode),VER 1.0.5.6
- Fix discount code use one time per user and customer
- Add Version 1.0.5.6
2024-06-11 18:14:47 +03:30
Amir Hossein Khademi da64ae5b40 fix(TorobGetProducts) , fix(EmallsProducts), VER 1.0.4.5
- Fix torob product price to Tooman
- Fix emalls product price to Tooman
- Add version 1.0.4.5
2024-06-11 12:55:02 +03:30
Amir Hossein Khademi 7d4301423d feat(LookUpSms),refactor(OrderDialog),refactor(OrdersPage)
-Add new look up sms when order status changes ( like : customer-orderDelivery lookup , manager-orderSubmit look up)
-Change order dialog style and improve responseive
-Change orders page style and improve responsive
2024-06-06 22:52:49 +03:30
Amir Hossein Khademi e54477f226 refactor(SearchService) , chore(BaseServices) , feat(SmsLookUpMethod)
- Refactor search service and add queries base service by mediatr
- Change core service files to base service
- Add sms look up method in sms service
2024-06-06 13:26:40 +03:30
Amir Hossein Khademi f942bbb421 feat(EmallsProductResponse) , feat(EmallsProductsEndpoint)
- Add Emalls product response dtos
- Add Emalls queries and add mediatr
- Add Emalls enpoint to get products
2024-06-05 22:18:51 +03:30
Amir Hossein Khademi 092d335f77 fix(SyncfusionPDF) , fix(GetPaymentsQuery)
- Fix syncfusion license issue and watremark in invoice
- Fix get payements query and set created at orderby DEC
2024-06-01 13:40:36 +03:30
Amir Hossein Khademi 9f87d48602 fix(SiteMap),feat(Ver1.0.1.2)
- Fix site map service image url builder
- Add version 1.0.1.2
2024-05-28 14:04:43 +03:30
Amir Hossein Khademi 8c6c4aebc1 fix(sitemap)
-Fix BlogCategory loc in site map
2024-05-28 11:27:44 +03:30
Amir Hossein Khademi 51721e3c50 feat(1.0.0.1) , fix(siteMap) , fix(IsMain)
- Add version 1.0.0.1
- Fix sitemap issue , add new migration for is main in blog category
- Fix IsMain column not foun by add new migration
2024-05-28 11:06:30 +03:30
Amir Hossein Khademi 9f6af37e7f feat (scalarUi) , fix (search)
-Add scalar ui instead of swagger
-Fix search product returns
2024-05-28 10:46:18 +03:30
Amir Hossein Khademi b7dbe67e7f add version 0.27.38.60 , fix search service 2024-05-24 16:18:56 +03:30
Amir Hossein Khademi b45b0450a7 add version 0.27.37.59 , add check slug in blogs 2024-05-21 14:18:15 +03:30
Amir Hossein Khademi f28e36e84e change torob search , add version 0.27.35.57 2024-05-17 13:33:15 +03:30
Amir Hossein Khademi 27e8f545fe fix : order homepage informations 2024-05-16 13:52:54 +03:30
Amir Hossein Khademi c152f06e08 version 0.27.33.54 , fix blog update issue , fix sitemap , fix page creation 2024-05-14 12:46:11 +03:30
Amir Hossein Khademi f62ee59f24 feat : refactor , version 0.27.31.52 , fix issues
add torob search , add webite controller , refacor unused namespaces , fix job scheduler , fix nav menu management page
2024-05-07 11:01:55 +03:30
Amir Hossein Khademi e024b4d977 faet : add version 0.26.30.51 , add navbaritem , fix : scheduler job issue 2024-04-28 22:10:54 +03:30
Amir Hossein Khademi 108230cc15 feat : add thumb search , add version 0.25.28.49 2024-04-25 22:54:02 +03:30
Amir Hossein Khademi 0e2b99d85e feat : add version 0.25.27.48 , add CS system 2024-04-25 02:47:50 +03:30
Amir Hossein Khademi 8679140b4b feat : add version 0.24.27.47 , complete site-maps , complete slugs 2024-04-23 23:57:52 +03:30
Amir Hossein Khademi f880d72d07 feat : add slug to blog and products , refactor domain project 2024-04-22 13:33:39 +03:30
Amir Hossein Khademi f19c76066c feat : change OTP verify code , change digikala service , change get order invoice 2024-04-20 16:05:03 +03:30
Amir Hossein Khademi 00ca32d32f fix orderSubName issue , add version 0.22.25.44 2024-04-18 19:19:54 +03:30
Amir Hossein Khademi 83cd317203 CHANGE PROJECT NAME TO "NETINA" 2024-04-17 16:19:40 +03:30
Amir Hossein Khademi 2210ba5f77 feat : add version 0.22.25.43 , fix payment issue 2024-04-17 12:24:47 +03:30
Amir Hossein Khademi 42d8f35940 CHANGE PROJECT NAME TO " NETINA " 2024-04-16 20:01:34 +03:30