Skip to content

Commit b0b1b47

Browse files
committed
Merge branch 'main' of https://github.com/transformerlab/transformerlab-app into add/local-remote-jobs
2 parents 926aa24 + 3c40d58 commit b0b1b47

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

src/renderer/components/Nav/SidebarForGPUOrchestration.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ function ExperimentMenuItems({ DEV_MODE, experimentInfo, models }) {
8585
icon={<LayersIcon strokeWidth={1} />}
8686
disabled
8787
/>
88+
<SubNavItem
89+
title="Tasks"
90+
path="/experiment/tasks"
91+
icon={<StretchHorizontalIcon />}
92+
disabled={!experimentInfo?.name}
93+
/>
8894
<SubNavItem
8995
title="Train"
9096
path="/experiment/training"
@@ -103,12 +109,6 @@ function ExperimentMenuItems({ DEV_MODE, experimentInfo, models }) {
103109
icon={<ChartColumnIncreasingIcon />}
104110
disabled
105111
/>
106-
<SubNavItem
107-
title="Tasks"
108-
path="/experiment/tasks"
109-
icon={<StretchHorizontalIcon />}
110-
disabled={!experimentInfo?.name}
111-
/>
112112
<SubNavItem
113113
title="Documents"
114114
path="/experiment/documents"

src/renderer/components/Shared/Documents/index.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
CircularProgress,
2828
ListItemDecorator,
2929
Stack,
30+
Skeleton, // added Skeleton import
3031
} from '@mui/joy';
3132

3233
import {
@@ -826,16 +827,26 @@ export default function Documents({
826827
</tr>
827828
</thead>
828829
<tbody>
830+
{isLoading && (
831+
<tr>
832+
<td
833+
colSpan={fullPage ? 5 : 2}
834+
style={{ padding: '1rem', height: '100px' }}
835+
>
836+
<Skeleton variant="text" />
837+
<Skeleton variant="text" />
838+
<Skeleton variant="text" />
839+
</td>
840+
</tr>
841+
)}
829842
{rows?.status == 'error' && (
830843
<tr>
831844
<td colSpan={2}>{/*rows?.message*/}</td>
832845
</tr>
833846
)}
834847
{rows?.length == 0 && (
835848
<tr>
836-
<td colSpan={2} style={{ padding: '2rem' }}>
837-
Drag and drop documents here to query their contents.
838-
</td>
849+
<td colSpan={2} style={{ padding: '2rem' }}></td>
839850
</tr>
840851
)}
841852
{stableSort(rows, getComparator(order, 'name'))?.map((row) =>

0 commit comments

Comments
 (0)