Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1697cbe
Fixed branch issues ignoring lint (Chakra components still having wei…
dburkhart07 Oct 8, 2025
3f6f05c
Fixed issues
dburkhart07 Oct 9, 2025
379edb7
Merge conflict final commit
dburkhart07 Nov 19, 2025
7023e8a
Final commit
dburkhart07 Nov 19, 2025
27ba9d9
Merge branch 'main' into ddb/SSF-8-admin-order-management-frontend
amywng Nov 22, 2025
693bed0
Fixed merge conflicts
dburkhart07 Nov 27, 2025
7fe9ca5
Final commit
dburkhart07 Nov 27, 2025
121d373
Fixed frontend changes
dburkhart07 Nov 28, 2025
a89873d
Fixed frontend changes
dburkhart07 Nov 28, 2025
815daab
Merged main into branch
dburkhart07 Dec 4, 2025
4a53a23
Fixed backend
dburkhart07 Dec 4, 2025
21eb829
Fixed backend
dburkhart07 Dec 4, 2025
505836d
Final commit
dburkhart07 Dec 4, 2025
b462dba
Fixed volunteer display
dburkhart07 Dec 4, 2025
906b21b
Final commit
dburkhart07 Dec 5, 2025
a2fec8c
Final commit
dburkhart07 Dec 5, 2025
35951a4
Resolved comments
dburkhart07 Dec 5, 2025
585b809
Styling changes
dburkhart07 Dec 6, 2025
56a9a82
prettier
dburkhart07 Dec 6, 2025
fdd5784
Resolved merge conflicts
dburkhart07 Dec 6, 2025
cb5ce22
Prettier
dburkhart07 Dec 6, 2025
54d4175
Fixed color theme and remove x from the modals
dburkhart07 Dec 6, 2025
4eff2ee
Final commit
dburkhart07 Dec 6, 2025
b594158
prettier
dburkhart07 Dec 6, 2025
ae13e1f
Added search feature
dburkhart07 Dec 6, 2025
8ca82ec
prettier
dburkhart07 Dec 6, 2025
7991740
Added modal similar to request form modal
dburkhart07 Dec 6, 2025
ecad35e
prettier
dburkhart07 Dec 6, 2025
430c293
More comments resolved
dburkhart07 Dec 7, 2025
a570951
prettier
dburkhart07 Dec 7, 2025
1cc1d48
Fixed modal styligs
dburkhart07 Dec 7, 2025
eb144ae
Resolved comments
dburkhart07 Dec 7, 2025
577b6aa
prettier
dburkhart07 Dec 8, 2025
039e240
Resolved merge conflicts
dburkhart07 Dec 8, 2025
71bade1
Merged main in
dburkhart07 Dec 10, 2025
8fc17d5
prettier
dburkhart07 Dec 10, 2025
c89fd1b
Added proper filtering and sorting, assignee coloring, and fixed type…
dburkhart07 Jan 11, 2026
8ddbe8d
prettier
dburkhart07 Jan 11, 2026
382574c
Addressed changes
dburkhart07 Jan 12, 2026
b715cae
Merged main into branch
dburkhart07 Jan 12, 2026
4da3eb6
Final commit
dburkhart07 Jan 12, 2026
81555d9
Removed useEffects for page updating
dburkhart07 Jan 14, 2026
0087fb4
prettier
dburkhart07 Jan 14, 2026
8e77adc
Fixed yarn.lock
dburkhart07 Jan 15, 2026
927e55d
Updated comments for filter states
dburkhart07 Jan 17, 2026
db75956
Merged main into the branch
dburkhart07 Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions apps/backend/src/orders/order.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { Order } from './order.entity';
import { Pantry } from '../pantries/pantries.entity';
import { FoodManufacturer } from '../foodManufacturers/manufacturer.entity';
import { FoodRequest } from '../foodRequests/request.entity';
import { Donation } from '../donations/donations.entity';
import { AllocationsService } from '../allocations/allocations.service';
import { OrderStatus } from './types';

Expand All @@ -24,8 +23,9 @@ export class OrdersController {
private readonly allocationsService: AllocationsService,
) {}

// Called like: /?status=pending&pantryName=Test%20Pantry&pantryName=Test%20Pantry%2
// Called like: /?status=pending&pantryName=Test%20Pantry&pantryName=Test%20Pantry%202
// %20 is the URL encoded space character
// This gets all orders where the status is pending and the pantry name is either Test Pantry or Test Pantry 2
@Get('/')
async getAllOrders(
@Query('status') status?: string,
Expand All @@ -47,21 +47,21 @@ export class OrdersController {
return this.ordersService.getPastOrders();
}

@Get(':orderId/pantry')
@Get('/:orderId/pantry')
async getPantryFromOrder(
@Param('orderId', ParseIntPipe) orderId: number,
): Promise<Pantry> {
return this.ordersService.findOrderPantry(orderId);
}

@Get(':orderId/request')
@Get('/:orderId/request')
async getRequestFromOrder(
@Param('orderId', ParseIntPipe) orderId: number,
): Promise<FoodRequest> {
return this.ordersService.findOrderFoodRequest(orderId);
}

@Get(':orderId/manufacturer')
@Get('/:orderId/manufacturer')
async getManufacturerFromOrder(
@Param('orderId', ParseIntPipe) orderId: number,
): Promise<FoodManufacturer> {
Expand All @@ -82,7 +82,7 @@ export class OrdersController {
return this.ordersService.findOrderByRequest(requestId);
}

@Get(':orderId/allocations')
@Get('/:orderId/allocations')
async getAllAllocationsByOrder(
@Param('orderId', ParseIntPipe) orderId: number,
) {
Expand Down
4 changes: 4 additions & 0 deletions apps/backend/src/orders/order.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ export class OrdersService {
const qb = this.repo
.createQueryBuilder('order')
.leftJoinAndSelect('order.pantry', 'pantry')
.leftJoinAndSelect('pantry.volunteers', 'volunteers')
.select([
'order.orderId',
'order.status',
'order.createdAt',
'order.shippedAt',
'order.deliveredAt',
'pantry.pantryName',
'volunteers.id',
'volunteers.firstName',
'volunteers.lastName',
]);

if (filters?.status) {
Expand Down
3 changes: 2 additions & 1 deletion apps/frontend/src/api/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
CreateFoodRequestBody,
Pantry,
PantryApplicationDto,
OrderSummary,
UserDto,
} from 'types/types';

Expand Down Expand Up @@ -171,7 +172,7 @@ export class ApiClient {
.then((response) => response.data);
}

public async getAllOrders(): Promise<Order[]> {
public async getAllOrders(): Promise<OrderSummary[]> {
return this.axiosInstance
.get('/api/orders/')
.then((response) => response.data);
Expand Down
9 changes: 9 additions & 0 deletions apps/frontend/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import DonationManagement from '@containers/donationManagement';
import AdminDonation from '@containers/adminDonation';
import { pantryIdLoader } from '@loaders/pantryIdLoader';
import Homepage from '@containers/homepage';
import AdminOrderManagement from '@containers/adminOrderManagement';
import '@aws-amplify/ui-react/styles.css';
import { Authenticator } from '@aws-amplify/ui-react';
import { Amplify } from 'aws-amplify';
Expand Down Expand Up @@ -176,6 +177,14 @@ const router = createBrowserRouter([
</Authenticator>
),
},
{
path: '/admin-order-management',
element: (
<Authenticator components={components}>
<AdminOrderManagement />
</Authenticator>
),
},
// Actions
{
path: '/food-request',
Expand Down
Loading
Loading