diff --git a/backend/LexBoxApi/Services/HgService.cs b/backend/LexBoxApi/Services/HgService.cs
index 5ef5929ce..0297df4ef 100644
--- a/backend/LexBoxApi/Services/HgService.cs
+++ b/backend/LexBoxApi/Services/HgService.cs
@@ -100,11 +100,13 @@ public async Task ResetRepo(string code)
{
string timestamp = FileUtils.ToTimestamp(DateTimeOffset.UtcNow);
await SoftDeleteRepo(code, $"{timestamp}__reset");
+ await InitRepo(code); // we don't want 404s
}
public async Task FinishReset(string code, Stream zipFile)
{
using var archive = new ZipArchive(zipFile, ZipArchiveMode.Read);
+ await DeleteRepo(code);
var repoPath = Path.Combine(_options.Value.RepoPath, code);
Directory.CreateDirectory(repoPath);
archive.ExtractToDirectory(repoPath);
@@ -120,6 +122,7 @@ public async Task FinishReset(string code, Stream zipFile)
if (hgFolder is null)
{
await DeleteRepo(code);
+ await InitRepo(code); // we don't want 404s
//not sure if this is the best way to handle this, might need to catch it further up to expose the error properly to tus
throw ProjectResetException.ZipMissingHgFolder();
}
diff --git a/backend/LexBoxApi/Services/ProjectService.cs b/backend/LexBoxApi/Services/ProjectService.cs
index 315993cdf..4a2944980 100644
--- a/backend/LexBoxApi/Services/ProjectService.cs
+++ b/backend/LexBoxApi/Services/ProjectService.cs
@@ -70,6 +70,7 @@ public async Task FinishReset(string code, Stream zipFile)
if (project.ResetStatus != ResetStatus.InProgress) throw ProjectResetException.NotReadyForUpload(code);
await _hgService.FinishReset(code, zipFile);
project.ResetStatus = ResetStatus.None;
+ project.LastCommit = await _hgService.GetLastCommitTimeFromHg(project.Code, project.MigrationStatus);
await _dbContext.SaveChangesAsync();
}
diff --git a/frontend/src/lib/app.postcss b/frontend/src/lib/app.postcss
index 2b56d5d9c..fd4883fa6 100644
--- a/frontend/src/lib/app.postcss
+++ b/frontend/src/lib/app.postcss
@@ -114,9 +114,6 @@ table tr:nth-last-child(-n + 2) .dropdown {
}
.file-input {
+ /* some make-up for what looks like a Chrome rendering bug */
border-width: 2px;
}
-
-.hide-modal-actions .modal-action {
- display: none !important;
-}
diff --git a/frontend/src/lib/components/Badges/Badge.svelte b/frontend/src/lib/components/Badges/Badge.svelte
index acc0c6443..51758f742 100644
--- a/frontend/src/lib/components/Badges/Badge.svelte
+++ b/frontend/src/lib/components/Badges/Badge.svelte
@@ -1,6 +1,6 @@
-