Skip to content

Commit

Permalink
Show delivery comments (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored May 6, 2024
2 parents 01c6cca + aca6497 commit c60dd5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Added

- Add licensing information to the about page.
- Show delivery comment in STAC browser and on admin page.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion src/Geopilot.Api/StacServices/StacConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

Expand Down
9 changes: 5 additions & 4 deletions src/Geopilot.Frontend/src/pages/admin/Admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -68,6 +68,7 @@ export const Admin = () => {
date: d.date,
user: d.declaringUser.fullName,
mandate: d.deliveryMandate.name,
comment: d.comment,
})),
);
}
Expand Down

0 comments on commit c60dd5e

Please sign in to comment.