This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes include the handling of null `TrackingNu…
…mber` values in the `AdminHub` class in `Export.cs`, the addition of pagination functionality in `Get.cs` and `index.tsx`, and the enhancement of user interaction with the `GalleryCard` function in `Card.tsx`. 1. The `AdminHub` class in `Export.cs` has been updated to handle null `TrackingNumber` values. If the `TrackingNumber` is null, it will now be replaced with a "/". This change ensures that the system can handle null values without crashing or causing errors. 2. A new method `OrderGetCount` has been added to the `AdminHub` class in `Get.cs`. This method returns the total number of orders. Additionally, the `OrderGetList` method has been updated to include pagination functionality, allowing the retrieval of orders in chunks of 30. This change improves the efficiency of data retrieval and presentation. 3. In `index.tsx`, several Fluent UI components have been imported, including `Label`, `SpinButton`, and `tokens`. The `AdminOrder` function has been updated to include a new pagination feature. This feature displays the total number of records and allows users to navigate through pages of order data. This change enhances the user interface and improves the user experience. 4. The `GalleryCard` function in `Card.tsx` has been updated to wrap the entire card in a link, rather than just the product name. This means users can click anywhere on the card to navigate to the product page. The product name text color has also been updated. This change improves the user interaction with the product cards. 5. In `Get.ts`, a new `Count` method has been added to the `AdminOrderGet` class. This method returns the total number of orders. The `List` method has been updated to include a page parameter, allowing the retrieval of orders in chunks. The returned items are no longer sorted by `OrderDate` within this method. This change improves the efficiency of data retrieval and presentation.
- Loading branch information
Showing
5 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters