refactor(server builds): added in proper logging will still need fine tuned though
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m52s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m52s
This commit is contained in:
@@ -4,7 +4,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
||||
|
||||
import { format } from "date-fns-tz";
|
||||
import { CircleFadingArrowUp, Trash } from "lucide-react";
|
||||
import { Suspense, useState } from "react";
|
||||
import { Suspense, useMemo, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { Button } from "../../components/ui/button";
|
||||
import { Spinner } from "../../components/ui/spinner";
|
||||
@@ -171,7 +171,13 @@ const ServerTable = () => {
|
||||
};
|
||||
|
||||
function RouteComponent() {
|
||||
const { data: logs = [], clearRoom } = useSocketRoom<any>("admin:build");
|
||||
const params = useMemo(
|
||||
() => ({
|
||||
submodule: "builds",
|
||||
}),
|
||||
[],
|
||||
);
|
||||
const { data: logs = [], clearRoom } = useSocketRoom<any>("logs", params);
|
||||
|
||||
const columnHelper = createColumnHelper<any>();
|
||||
|
||||
@@ -181,7 +187,7 @@ function RouteComponent() {
|
||||
<SearchableHeader column={column} title="Time" searchable={false} />
|
||||
),
|
||||
filterFn: "includesString",
|
||||
cell: (i) => format(i.getValue(), "M/d/yyyy HH:mm"),
|
||||
cell: (i) => i.getValue(), //format(i.getValue(), "M/d/yyyy HH:mm") ,
|
||||
}),
|
||||
columnHelper.accessor("message", {
|
||||
header: ({ column }) => (
|
||||
@@ -210,7 +216,7 @@ function RouteComponent() {
|
||||
<Button
|
||||
size="icon"
|
||||
variant={"destructive"}
|
||||
onClick={() => clearRoom(x.timestamp)}
|
||||
onClick={() => clearRoom((item) => item.timestamp === x.timestamp)}
|
||||
>
|
||||
<Trash />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user