Signed-off-by: stroblme <stroblme@posteo.de>
This commit is contained in:
2026-08-17 20:07:56 +02:00
parent b16408f4d6
commit 887e552ce1
2 changed files with 4 additions and 16 deletions
-14
View File
@@ -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">