Rename 'Deleted' state to 'Archived' and update related logic

Replaced 'Deleted' with 'Archived' across the codebase to better reflect the intent of the state. Adjusted related features, including filters, UI labels, navigation, and permissions. Introduced a 'Recent Activity' filter for improved activity tracking.
This commit is contained in:
Andre Beging
2025-04-02 08:40:38 +02:00
parent b7ba95b716
commit 6389da4bc1
10 changed files with 40 additions and 17 deletions

View File

@@ -55,13 +55,13 @@ namespace FoodsharingSiegen.Server.Controls
/// Deletes the currently selected prospect after user confirmation. This action is irreversible and will update the record state to "Deleted".
/// </summary>
/// <returns>A task that represents the asynchronous delete operation.</returns>
private async Task DeleteProspectAsync()
private async Task ArchiveProspectAsync()
{
if (Prospect == null) return;
await ConfirmDialog.ShowAsync(ModalService, $"⚠️ {Prospect.Name} löschen", $"Soll {Prospect.Name} mit der FS-ID {Prospect.FsId} wirklich gelöscht werden? Das kann nicht rückgängig gemacht werden!!", async () =>
await ConfirmDialog.ShowAsync(ModalService, $"{Prospect.Name} archivieren", $"Soll {Prospect.Name} mit der FS-ID {Prospect.FsId} wirklich ins Archiv verschoben werden?", async () =>
{
Prospect.RecordState = RecordState.Deleted;
Prospect.RecordState = RecordState.Archived;
var updateR = await ProspectService.UpdateAsync(Prospect);
if (updateR.Success && OnDataChanged != null) await OnDataChanged();
});