gc
Playwright Tests / test-playwright (1, 2) (push) Canceled after 0s
Playwright Tests / test-playwright (2, 2) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Compose Smoke Test / test-compose (push) Canceled after 0s
Playwright Tests / merge-reports (push) Canceled after 0s
Playwright Tests / test-playwright (1, 2) (push) Canceled after 0s
Playwright Tests / test-playwright (2, 2) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Compose Smoke Test / test-compose (push) Canceled after 0s
Playwright Tests / merge-reports (push) Canceled after 0s
Signed-off-by: stroblme <stroblme@posteo.de>
This commit is contained in:
@@ -13,7 +13,6 @@ import { Badge } from "@/components/ui/badge"
|
||||
import { Card } from "@/components/ui/card"
|
||||
import { Skeleton } from "@/components/ui/skeleton"
|
||||
import { Switch } from "@/components/ui/switch"
|
||||
import useAuth from "@/hooks/useAuth"
|
||||
import useCustomToast from "@/hooks/useCustomToast"
|
||||
|
||||
export const Route = createFileRoute("/_layout/")({
|
||||
@@ -101,7 +100,6 @@ function FlowRow({ flow }: { flow: FlowSummary }) {
|
||||
* than living at routes of their own.
|
||||
*/
|
||||
function Dashboard() {
|
||||
const { user: currentUser } = useAuth()
|
||||
// The health block's window: one choice, read by the tiles, the flow table,
|
||||
// the charts and the lists under them.
|
||||
const [range, setRange] = useState(DEFAULT_RANGE)
|
||||
@@ -111,7 +109,6 @@ function Dashboard() {
|
||||
})
|
||||
|
||||
const flows = data?.data ?? []
|
||||
const running = flows.filter((flow) => flow.enabled ?? true).length
|
||||
|
||||
return (
|
||||
// `[&>*]:min-w-0`: a grid item's automatic minimum is its content, so one
|
||||
@@ -119,17 +116,6 @@ function Dashboard() {
|
||||
// Every section here is free to shrink instead. See DESIGN-GUIDELINES.md
|
||||
// → Responsive.
|
||||
<div className="grid gap-6 [&>*]:min-w-0">
|
||||
<div>
|
||||
<h1 className="max-w-sm truncate text-2xl">
|
||||
Hi, {currentUser?.full_name || currentUser?.email} 👋
|
||||
</h1>
|
||||
<p className="text-muted-foreground">
|
||||
{flows.length === 0
|
||||
? "No flows yet."
|
||||
: `${running} of ${flows.length} flows are running.`}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<BrainView />
|
||||
|
||||
<Card className="gap-0 py-0">
|
||||
|
||||
Reference in New Issue
Block a user