Skip to content

Workspaces: diff.patch view#2314

Open
ngrayluna wants to merge 7 commits intomainfrom
diff_feature
Open

Workspaces: diff.patch view#2314
ngrayluna wants to merge 7 commits intomainfrom
diff_feature

Conversation

@ngrayluna
Copy link
Copy Markdown
Contributor

@ngrayluna ngrayluna commented Mar 18, 2026

Description

Diff patch view and reproduce an experiment doc updates.

Preview

See Code for diff patch doc updates
See Reproduce experiments for reproduce experiment docs (Replicate code state tab)

Doc areas of improvment

  • In demoing this myself, I realized I was confused by which files were saved in the Files tab, vs Code tab, vs Artifacts. There should be a follow up clearly documenting what goes where and how.
  • Would also be useful to make it abundantly clear how to track code, when a diff is generated, etc.

Related issues

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2026

📚 Mintlify Preview Links

🔗 View Full Preview

✨ Added (3 total)

🖼️ Images (3)

File Preview
images/app_ui/diff_split_view.png View Diff Split View
images/app_ui/diff_unified_view.png View Diff Unified View
images/experiments/reproduce_run_button.png View Reproduce Run Button

📝 Changed (2 total)

📄 Pages (2)

File Preview
models/app/features/panels/code.mdx Code
models/track/reproduce_experiments.mdx Reproduce Experiments

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: f597342 at 2026-04-28 15:38:42 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 18, 2026

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Checked against: https://wb-21fd5541-diff-feature.mintlify.app

@github-actions
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 81.2%, saving 569.8 KB.

Filename Before After Improvement Visual comparison
images/app_ui/diff_split_view.png 353.7 KB 68.1 KB 80.8% View diff
images/app_ui/diff_unified_view.png 348.3 KB 64.2 KB 81.6% View diff

@github-actions
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 6.4%, saving 8.5 KB.

Filename Before After Improvement Visual comparison
images/app_ui/diff_unified_view.png 64.2 KB 59.7 KB 7.0% View diff
images/app_ui/diff_split_view.png 68.1 KB 64.1 KB 5.9% View diff

@github-actions
Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 69.1%, saving 480.1 KB.

Filename Before After Improvement Visual comparison
images/experiments/reproduce_run_button.png 634.8 KB 158.0 KB 75.1% View diff
images/app_ui/diff_unified_view.png 59.7 KB 56.4 KB 5.4% View diff

1 image did not require optimisation.

View unstaged changes in your project workspace.

1. Navigate to your project's workspace.
2. Select the **Files** tab.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we need to mention it, but another entry point is the "View File" button on the "Overview" tab

To continue, download the experiment's code at a given hash or clone the experiment's entire repository.
1. Select the **Workspace** tab from the project sidebar.
1. Click the run that you want to reproduce. The run page opens with the **Overview** tab shown by default.
1. Hover your mouse over the **Reproduce this run** button next to the **Command** field. A modal appears with steps to reproduce the experiment. It describes how to set up the code state and the the command to run the experiment.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nhusher can you help review this? My understanding is that there are a number of cases where the "Reproduce" command won't work, which ideally would be mentioned in the docs

<img src="/images/app_ui/code_comparer.png" alt="Code comparer panel" />
</Frame>

## View unstaged changes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also mention that in addition to just viewing the uncommitted changes, you can download the diff.patch file and apply the patch to your repo? This is a common workflow. There is also the other option to "Copy file contents", which can be helpful for applying a patch to a remote machine


## View unstaged changes

View unstaged changes in your project workspace.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nhusher just to clarify terminology, do we capture unstaged changes in the diff patch or uncommitted changes? I thought we capture uncommitted changes, which is broader than unstaged changes

@ngrayluna ngrayluna requested a review from nhusher April 22, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants