diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d830bcc..e6a03cf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Added - Add licensing information to the about page. +- Show delivery comment in STAC browser and on admin page. ### Changed diff --git a/src/Geopilot.Api/StacServices/StacConverter.cs b/src/Geopilot.Api/StacServices/StacConverter.cs index 131c3f0b..8d3121f5 100644 --- a/src/Geopilot.Api/StacServices/StacConverter.cs +++ b/src/Geopilot.Api/StacServices/StacConverter.cs @@ -86,7 +86,7 @@ public StacItem ToStacItem(Delivery delivery) { Collection = GetCollectionId(delivery.DeliveryMandate), Title = DeliveryNamePrefix + delivery.Date.ToString("s"), - Description = string.Empty, + Description = delivery.Comment, DateTime = new TimeBlock(delivery.Date), }; diff --git a/src/Geopilot.Frontend/src/pages/admin/Admin.jsx b/src/Geopilot.Frontend/src/pages/admin/Admin.jsx index e0f93b71..c7e72668 100644 --- a/src/Geopilot.Frontend/src/pages/admin/Admin.jsx +++ b/src/Geopilot.Frontend/src/pages/admin/Admin.jsx @@ -21,11 +21,11 @@ const columns = [ `${date.getFullYear()}` ); }, - flex: 1, - minWidth: 150, + width: 180, }, - { field: "user", headerName: "Abgegeben von", flex: 1, minWidth: 200 }, - { field: "mandate", headerName: "Operat", flex: 1, minWidth: 200 }, + { field: "user", headerName: "Abgegeben von", flex: 0.5, minWidth: 200 }, + { field: "mandate", headerName: "Operat", flex: 0.5, minWidth: 200 }, + { field: "comment", headerName: "Kommentar", flex: 1, minWidth: 600 }, ]; export const Admin = () => { @@ -68,6 +68,7 @@ export const Admin = () => { date: d.date, user: d.declaringUser.fullName, mandate: d.deliveryMandate.name, + comment: d.comment, })), ); }