Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve source diff viewer. #2945

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Conversation

meisterT
Copy link
Member

@meisterT meisterT commented Mar 2, 2025

When viewing a submission from a team who previously submitted to the same problem, we originally displayed a short unified diff below the source.

When we switched to Monaco, we did replace it view a Monaco diff editor which will display the full source (either inline or side by side). That caused us to display the source twice.

Now, if there is a previous submission, we only display the diff editor. New files are still downloadable and editable.


Example:

image

When viewing a submission from a team who previously submitted to the
same problem, we originally displayed a short unified diff below the
source.

When we switched to Monaco, we did replace it view a Monaco diff editor
which will display the full source (either inline or side by side). That
caused us to display the source twice.

Now, if there is a previous submission, we only display the diff editor.
New files are still downloadable and editable.
Copy link

github-actions bot commented Mar 2, 2025

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 40c2375. ± Comparison against base commit 6209e3c.

@meisterT meisterT added this pull request to the merge queue Mar 2, 2025
Merged via the queue into DOMjudge:main with commit 57fed82 Mar 2, 2025
37 checks passed
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.

3 participants