Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

[Back] Full Table - [Front] AdminOrder Pager #102

Merged
merged 2 commits into from
Feb 5, 2024
Merged

[Back] Full Table - [Front] AdminOrder Pager #102

merged 2 commits into from
Feb 5, 2024

Conversation

Aloento
Copy link
Owner

@Aloento Aloento commented Feb 5, 2024

No description provided.

…e exported data in the `Export.cs` file, the replacement of the `Search.tsx` file with a new `AdminUserFilter` file, and the update of the `TopNavBar.tsx` and `Export.tsx` files to incorporate the new `AdminUserFilter` component and changes in the export functionality respectively.

1. The `Export.cs` file has been updated to include additional fields in the exported data such as "Product", "Types", "Quantity", "Status", "TrackingNumber", and "Comments". The export now includes all orders instead of just processing orders. The version of the file has been updated from 0.1.0 to 0.2.0. (See `Export.cs`)

2. The `SoarCraft.AwaiShop.csproj` file has been updated to change the version from 1.2.0 to 1.3.0. (See `SoarCraft.AwaiShop.csproj`)

3. The `Search.tsx` file has been removed and replaced with a new file `AdminUserFilter` which allows for searching by E-Mail and filtering by Admin status. (See `AdminUserFilter`)

4. The `TopNavBar.tsx` file has been updated to replace the `AdminSearch` component with the new `AdminUserFilter` component. (See `TopNavBar.tsx`)

5. The `Export.tsx` file has been updated to change the download name from `Order` to `AllOrders` and the toast message from "Order Exported" to "Orders Exported". The version of the file has been updated from 0.1.0 to 0.1.1. The button label has been changed from "Export Order" to "Export Orders". (See `Export.tsx`)
…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.
@Aloento Aloento self-assigned this Feb 5, 2024
@Aloento Aloento merged commit e8655c0 into master Feb 5, 2024
1 check passed
@Aloento Aloento deleted the Dev branch February 5, 2024 21:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant