Skip to content

Commit 7170d7f

Browse files
authored
Merge pull request #817 from transformerlab/add/wandb-button-tasks-jobs
Add WANDB Run URL button for jobs in tasks
2 parents 754c6ca + 7543ce7 commit 7170d7f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/prettier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
node-version: "22"
2121
cache: "npm"
2222

23-
- name: Install dependencies
24-
run: npm ci
23+
- name: Install Prettier
24+
run: npm install -g prettier
2525

2626
- name: Check Prettier formatting
2727
run: npm run format:check

src/renderer/components/Experiment/Tasks/JobsList.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
InfoIcon,
99
LineChartIcon,
1010
WaypointsIcon,
11+
LineChartIcon,
1112
} from 'lucide-react';
1213
import JobProgress from './JobProgress';
1314

@@ -93,6 +94,19 @@ const JobsList: React.FC<JobsListProps> = ({
9394
</Button>
9495
)}
9596

97+
{job?.job_data?.wandb_run_url && (
98+
<Button
99+
size="sm"
100+
variant="plain"
101+
onClick={() => {
102+
window.open(job.job_data.wandb_run_url, '_blank');
103+
}}
104+
startDecorator={<LineChartIcon />}
105+
>
106+
W&B Tracking
107+
</Button>
108+
)}
109+
96110
<Button
97111
size="sm"
98112
variant="plain"

0 commit comments

Comments
 (0)