Skip to content

Commit 165c2ab

Browse files
authored
optimize default pages (#203)
* optimize default pages Signed-off-by: kerthcet <kerthcet@gmail.com> * update readme Signed-off-by: kerthcet <kerthcet@gmail.com> --------- Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 80cbbc2 commit 165c2ab

8 files changed

Lines changed: 137 additions & 116 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ from alphatrion import experiment
7676
alpha.init(user_id="<your_user_id>")
7777

7878
async def my_task():
79-
# Your ML code here
79+
# Your code here
8080
await alpha.log_metrics({"accuracy": 0.95, "loss": 0.12})
8181

8282
async with experiment.CraftExperiment.start(name="my_experiment") as exp:

dashboard/src/pages/datasets/index.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,18 @@ export function DatasetsPage() {
247247
</div>
248248
) : !datasets || datasets.length === 0 ? (
249249
<div className="flex flex-col items-center justify-center h-full">
250-
<Database className="h-10 w-10 text-muted-foreground/30 mb-3" />
251-
<p className="text-sm font-medium">No datasets found</p>
250+
<div className="w-16 h-16 rounded-full bg-muted/50 flex items-center justify-center mb-4">
251+
<Database className="h-8 w-8 text-muted-foreground/60" />
252+
</div>
253+
<p className="text-sm font-medium text-foreground">No datasets found</p>
254+
<p className="text-xs text-muted-foreground mt-1">Datasets will appear here once created</p>
252255
</div>
253256
) : filteredDatasets.length === 0 ? (
254257
<div className="flex flex-col items-center justify-center h-full">
255-
<Search className="h-10 w-10 text-muted-foreground/30 mb-3" />
256-
<p className="text-sm font-medium">No matching datasets</p>
258+
<div className="w-16 h-16 rounded-full bg-muted/50 flex items-center justify-center mb-4">
259+
<Search className="h-8 w-8 text-muted-foreground/60" />
260+
</div>
261+
<p className="text-sm font-medium text-foreground">No matching datasets</p>
257262
<p className="text-xs text-muted-foreground mt-1">
258263
Try adjusting your search query
259264
</p>
@@ -418,9 +423,11 @@ export function DatasetsPage() {
418423
))}
419424
</div>
420425
) : !files || files.length === 0 ? (
421-
<div className="flex flex-col items-center justify-center py-12 text-center">
422-
<FileText className="h-10 w-10 text-muted-foreground/30 mb-3" />
423-
<p className="text-sm font-medium">No files found</p>
426+
<div className="flex flex-col items-center justify-center h-full text-center">
427+
<div className="w-12 h-12 rounded-full bg-muted/50 flex items-center justify-center mx-auto mb-3">
428+
<FileText className="h-6 w-6 text-muted-foreground/60" />
429+
</div>
430+
<p className="text-sm font-medium text-foreground">No files found</p>
424431
<p className="text-xs text-muted-foreground mt-1">
425432
This dataset is empty
426433
</p>

dashboard/src/pages/experiments/index.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useMemo } from 'react';
22
import { Link } from 'react-router-dom';
3-
import { Search, Trash2 } from 'lucide-react';
3+
import { Search, Trash2, FlaskConical } from 'lucide-react';
44
import { useTeamContext } from '../../context/team-context';
55
import { useExperiments } from '../../hooks/use-experiments';
66
import { useDeleteExperiments } from '../../hooks/use-experiment-mutations';
@@ -323,10 +323,24 @@ export function ExperimentsPage() {
323323
<Skeleton className="h-24 w-full" />
324324
</div>
325325
) : !filteredExperiments || filteredExperiments.length === 0 ? (
326-
<div className="flex h-32 items-center justify-center text-sm text-muted-foreground">
327-
{searchQuery.trim() || statusFilter !== 'ALL' || labelFilters.length > 0
328-
? 'No experiments match your filters'
329-
: 'No experiments found'}
326+
<div className="flex flex-col items-center justify-center py-16">
327+
<div className="w-16 h-16 rounded-full bg-muted/50 flex items-center justify-center mb-4">
328+
{searchQuery.trim() || statusFilter !== 'ALL' || labelFilters.length > 0 ? (
329+
<Search className="h-8 w-8 text-muted-foreground/60" />
330+
) : (
331+
<FlaskConical className="h-8 w-8 text-muted-foreground/60" />
332+
)}
333+
</div>
334+
<p className="text-sm font-medium text-foreground">
335+
{searchQuery.trim() || statusFilter !== 'ALL' || labelFilters.length > 0
336+
? 'No experiments match your filters'
337+
: 'No experiments found'}
338+
</p>
339+
<p className="text-xs text-muted-foreground mt-1">
340+
{searchQuery.trim() || statusFilter !== 'ALL' || labelFilters.length > 0
341+
? 'Try adjusting your filters or search query'
342+
: 'Experiments will appear here once created'}
343+
</p>
330344
</div>
331345
) : (
332346
<div className="overflow-hidden rounded-lg">
Lines changed: 99 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dashboard/static/assets/index-CYfzlh9Y.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dashboard/static/assets/index-DZjRjCB0.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dashboard/static/assets/react-plotly-BCYNyo0n.js renamed to dashboard/static/assets/react-plotly-D6LHI6oD.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dashboard/static/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<link rel="icon" type="image/png" href="/static/assets/logo-D6hHn9pX.png" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>AlphaTrion</title>
9-
<script type="module" crossorigin src="/static/assets/index-B6gQo9u2.js"></script>
10-
<link rel="stylesheet" crossorigin href="/static/assets/index-DZjRjCB0.css">
9+
<script type="module" crossorigin src="/static/assets/index-CN4v5u3P.js"></script>
10+
<link rel="stylesheet" crossorigin href="/static/assets/index-CYfzlh9Y.css">
1111
</head>
1212

1313
<body>

0 commit comments

Comments
 (0)