ADDED: new add notes feature for orders backend and frontend
Runner Test / test (push) Failing after 17s
Runner Test / test (pull_request) Failing after 16s

This commit is contained in:
Lena Deriso
2026-09-22 23:06:01 -04:00
parent e493d1592b
commit c5215daedb
12 changed files with 425 additions and 8 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
import type { Address, AuditEvent, OrderDetail, OrderSummary } from "@orderops/shared";
import type { Address, AuditEvent, Note, OrderDetail, OrderSummary } from "@orderops/shared";
import { apiRequest } from "../lib/api-client";
export function listOrders(query: string) {
@@ -14,6 +14,13 @@ export function listAuditEvents(orderId: string) {
return apiRequest<AuditEvent[]>(`/api/orders/${orderId}/audit-events`);
}
export function addOrderNote(orderId: string, body: string) {
return apiRequest<Note>(`/api/orders/${orderId}/notes`, {
method: "POST",
body: JSON.stringify({ body })
});
}
export function updateOrderItemQuantity(orderId: string, itemId: string, quantity: number) {
return apiRequest<OrderDetail>(`/api/orders/${orderId}/items/${itemId}/quantity`, {
method: "POST",