From 6ae0361971f1953119733db599218c690e78abc5 Mon Sep 17 00:00:00 2001 From: Simon Gruber Date: Wed, 21 Oct 2026 08:25:37 +0200 Subject: [PATCH] Order management UI --- .../views/ParticipantSubmissionSummary.tsx | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/frontend/src/components/views/ParticipantSubmissionSummary.tsx b/src/frontend/src/components/views/ParticipantSubmissionSummary.tsx index 1cc5410..055eb88 100644 --- a/src/frontend/src/components/views/ParticipantSubmissionSummary.tsx +++ b/src/frontend/src/components/views/ParticipantSubmissionSummary.tsx @@ -54,7 +54,7 @@ export default function ParticipantSubmissionSummary({ const statuses = [ { label: "Accepted", done: submission.accepted, hint: "Your order has been accepted", pending: "Waiting for your order to be accepted" }, { label: "Paid", done: submission.paid, hint: "Your payment has been received", pending: "Payment not received yet" }, - { label: "Received", done: !!submission.handed_out, hint: "You have received your order", pending: "Order not marked as received yet" }, + { label: "Handed out", done: !!submission.handed_out, hint: "Your order has been handed out to you", pending: "Order not handed out yet" }, ]; return ( @@ -63,19 +63,26 @@ export default function ParticipantSubmissionSummary({ Order submitted - - {statuses.map(({ label, done, hint, pending }) => ( - - : } - style={{ marginInlineEnd: 0 }} - > - {label} - - - ))} + + + {statuses.map(({ label, done, hint, pending }) => ( + + : } + style={{ marginInlineEnd: 0 }} + > + {label} + + + ))} + + {onEdit && !isClosed && ( + + )} @@ -103,11 +110,6 @@ export default function ParticipantSubmissionSummary({ Updated {formatTimestamp(submission.updated_at)} - {onEdit && !isClosed && ( - - )} ); }