From 4e0a32974a9a41dbdd67b88dda46c1f7ac3e22ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?=
<80620802+burakboduroglu@users.noreply.github.com>
Date: Tue, 15 Sep 2026 17:23:36 +0300
Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=96=BC=EF=B8=8F=20illustrated=20e?=
=?UTF-8?q?mpty=20states=20across=20the=20dashboard=20-=20EmptyInline:=20c?=
=?UTF-8?q?ompact=20scene=20+=20text=20for=20cards,=20charts=20and=20short?=
=?UTF-8?q?=20lists=20-=20every=20chart=20(bar,=20line,=20heatmap,=20progr?=
=?UTF-8?q?ess=20ring),=20quick-link=20column=20and=20=20=20dashboard=20in?=
=?UTF-8?q?line=20empty=20uses=20it=20with=20a=20matching=20scene=20-=20Da?=
=?UTF-8?q?taTable=20takes=20an=20emptyIllustration;=20upcoming=20deadline?=
=?UTF-8?q?s=20show=20a=20calendar=20-=20three=20more=20unDraw=20scenes=20?=
=?UTF-8?q?(charts,=20calendar-empty,=20modules)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/illustrations/README.md | 3 +++
src/assets/illustrations/calendar-empty.svg | 1 +
src/assets/illustrations/charts.svg | 1 +
src/assets/illustrations/modules.svg | 1 +
.../dashboard/quick-link-column.tsx | 5 +++-
src/components/ui/chart-bar.tsx | 6 ++---
src/components/ui/chart-heatmap.tsx | 6 ++---
src/components/ui/chart-line.tsx | 6 ++---
src/components/ui/chart-progress-ring.tsx | 6 ++---
src/components/ui/data-table.tsx | 5 +++-
src/components/ui/empty-inline.tsx | 25 +++++++++++++++++++
src/lib/illustrations.ts | 4 +++
src/pages/dashboard-page.tsx | 11 +++++---
13 files changed, 59 insertions(+), 21 deletions(-)
create mode 100644 src/assets/illustrations/calendar-empty.svg
create mode 100644 src/assets/illustrations/charts.svg
create mode 100644 src/assets/illustrations/modules.svg
create mode 100644 src/components/ui/empty-inline.tsx
diff --git a/src/assets/illustrations/README.md b/src/assets/illustrations/README.md
index 3be3b1f..24e4e8c 100644
--- a/src/assets/illustrations/README.md
+++ b/src/assets/illustrations/README.md
@@ -10,6 +10,8 @@ Files are kept exactly as downloaded (`https://cdn.undraw.co/illustrations/
\ No newline at end of file
diff --git a/src/assets/illustrations/charts.svg b/src/assets/illustrations/charts.svg
new file mode 100644
index 0000000..acf1d6b
--- /dev/null
+++ b/src/assets/illustrations/charts.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/illustrations/modules.svg b/src/assets/illustrations/modules.svg
new file mode 100644
index 0000000..3cae5ab
--- /dev/null
+++ b/src/assets/illustrations/modules.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/dashboard/quick-link-column.tsx b/src/components/dashboard/quick-link-column.tsx
index aa748fe..88ec10e 100644
--- a/src/components/dashboard/quick-link-column.tsx
+++ b/src/components/dashboard/quick-link-column.tsx
@@ -1,5 +1,7 @@
import { For, Show, type Component } from "solid-js";
+import { EmptyInline } from "@/components/ui/empty-inline";
import { IconChevronRight } from "@/components/ui/icons";
+import type { IllustrationName } from "@/lib/illustrations";
export type QuickLinkRow = {
id: string;
@@ -12,6 +14,7 @@ export type QuickLinkColumnProps = {
title: string;
rows: QuickLinkRow[];
empty: string;
+ illustration?: IllustrationName;
onOpen: (row: QuickLinkRow) => void;
};
@@ -22,7 +25,7 @@ export function QuickLinkColumn(props: QuickLinkColumnProps) {
return (
{props.title}
- 0} fallback={
{props.empty}
}>
+ 0} fallback={}>
{(row) => (
+
}
>
{(stats) => (
diff --git a/src/components/ui/chart-progress-ring.tsx b/src/components/ui/chart-progress-ring.tsx
index 5405b42..08e1422 100644
--- a/src/components/ui/chart-progress-ring.tsx
+++ b/src/components/ui/chart-progress-ring.tsx
@@ -1,5 +1,6 @@
import { For, Show, createEffect, createMemo, createSignal, type Component } from "solid-js";
import { cn } from "@/lib/cn";
+import { EmptyInline } from "@/components/ui/empty-inline";
import { TablePagination } from "@/components/ui/table-pagination";
import { useT } from "@/stores/preferences-context";
@@ -57,10 +58,7 @@ export const ChartProgressRing: Component = (props) => {
0}
fallback={
-
-
{t("dashboard.chartEmpty")}
-
{t("dashboard.chartEmptyHint")}
-
+
}
>
diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx
index 2a1f341..d105842 100644
--- a/src/components/ui/data-table.tsx
+++ b/src/components/ui/data-table.tsx
@@ -15,6 +15,7 @@ import {
getSortedRowModel,
} from "@tanstack/solid-table";
import { Illustration } from "@/components/ui/illustration";
+import type { IllustrationName } from "@/lib/illustrations";
import { Button } from "@/components/ui/button";
import { DataTableSearch } from "@/components/ui/data-table-search";
import { DataTableViewMenu, type ViewMenuColumn } from "@/components/ui/data-table-view-menu";
@@ -43,6 +44,8 @@ export type DataTableProps = {
columns: ColumnDef[];
data: TData[];
empty?: JSX.Element;
+ /** Scene shown above `empty`; defaults to a generic empty / no-results one. */
+ emptyIllustration?: IllustrationName;
class?: string;
tableClass?: string;
enableColumnVisibility?: boolean;
@@ -327,7 +330,7 @@ export function DataTable(props: DataTableProps
-
+ {props.empty ?? t("common.noResults")}
diff --git a/src/components/ui/empty-inline.tsx b/src/components/ui/empty-inline.tsx
new file mode 100644
index 0000000..7a4eb7c
--- /dev/null
+++ b/src/components/ui/empty-inline.tsx
@@ -0,0 +1,25 @@
+import { Show } from "solid-js";
+import { Illustration } from "@/components/ui/illustration";
+import { cn } from "@/lib/cn";
+import type { IllustrationName } from "@/lib/illustrations";
+
+/** Compact empty state for cards, charts and short lists: a small scene plus
+ * one or two lines. The full-panel version is EmptyState. */
+export function EmptyInline(props: {
+ title: string;
+ hint?: string;
+ illustration?: IllustrationName;
+ class?: string;
+}) {
+ return (
+
+
+
+
{props.title}
+
+
{props.hint}
+
+
+
+ );
+}
diff --git a/src/lib/illustrations.ts b/src/lib/illustrations.ts
index 5408839..7495476 100644
--- a/src/lib/illustrations.ts
+++ b/src/lib/illustrations.ts
@@ -5,6 +5,8 @@
* here, so they follow the picked brand color and the dark theme.
*/
export type IllustrationName =
+ | "calendar-empty"
+ | "charts"
| "coming-soon"
| "courses"
| "empty"
@@ -12,6 +14,7 @@ export type IllustrationName =
| "exams"
| "homework"
| "meals"
+ | "modules"
| "messages"
| "no-results"
| "notes"
@@ -37,6 +40,7 @@ const PALETTE: Record = {
"#090814": "var(--illu-ink)",
"#ccc": "var(--illu-line)",
"#cacaca": "var(--illu-line)",
+ "#cbcbcb": "var(--illu-line)",
"#d6d6e3": "var(--illu-line)",
"#e6e6e6": "var(--illu-soft)",
"#e4e4e4": "var(--illu-soft)",
diff --git a/src/pages/dashboard-page.tsx b/src/pages/dashboard-page.tsx
index f7f5c0d..3a47de5 100644
--- a/src/pages/dashboard-page.tsx
+++ b/src/pages/dashboard-page.tsx
@@ -17,6 +17,7 @@ import { getMyAttendance, getMyCourses, getMyMarks, getUserAttendance } from "@/
import { getTime } from "@/api/time/getTime";
import { getUsers } from "@/api/users";
import { RouteGuard } from "@/components/layout/route-guard";
+import { EmptyInline } from "@/components/ui/empty-inline";
import { Select } from "@/components/ui/select";
import { Badge } from "@/components/ui/badge";
import { ComingSoonBadge, ComingSoonPanel } from "@/components/ui/coming-soon";
@@ -656,18 +657,21 @@ function DashboardContent() {
navigate({ to: "/admin/users/$id", params: { id: row.id } })}
/>
navigate({ to: "/management/classes/$id", params: { id: row.id } })}
/>
navigate({ to: "/management/modules" })}
@@ -794,7 +798,7 @@ function DashboardContent() {