diff --git a/frontend/src/components/updates/resource.tsx b/frontend/src/components/updates/resource.tsx index 6bc9e9938..37cf4bda9 100644 --- a/frontend/src/components/updates/resource.tsx +++ b/frontend/src/components/updates/resource.tsx @@ -1,12 +1,5 @@ import { useRead } from "@lib/hooks"; import { Button } from "@ui/button"; -import { - Card, - CardHeader, - CardTitle, - CardContent, - CardDescription, -} from "@ui/card"; import { Bell, ExternalLink, @@ -43,14 +36,61 @@ import { UpdateStatus } from "@monitor/client/dist/types"; const UpdateCard = ({ update }: { update: Types.UpdateListItem }) => { const Icon = () => { if (update.status === UpdateStatus.Complete) { - if (update.success) return ; - else return ; - } else return ; + if (update.success) return ; + else return ; + } else return ; }; return ( - +
+
+
+ + {update.operation} +
+
+ + {fmt_version(update.version)} +
+
+
+
+ + {fmt_update_date(new Date(update.start_ts))} +
+
+ + +
+
+
+ {/* + +
+ + + {update.operation} + + + + {fmt_version(update.version)} + +
+
+ + + + + + + {fmt_version(update.version)} + +
+
+ +
*/} + {/*
{update.operation} @@ -71,7 +111,7 @@ const UpdateCard = ({ update }: { update: Types.UpdateListItem }) => { {fmt_update_date(new Date(update.start_ts))} - + */} ); }; @@ -96,7 +136,7 @@ export const ResourceUpdates = ({ type, id }: Types.ResourceTarget) => { } > -
+
{/* {isLoading && } */} {data?.updates.slice(0, 3).map((update) => (