Added tag/creator status update functionality on the API and UI layers.
All checks were successful
ci / build-test (push) Successful in 2m29s
ci / publish-image (push) Successful in 1m42s

This commit is contained in:
2026-04-25 14:17:13 -04:00
parent dbed9fc905
commit 204e186354
8 changed files with 182 additions and 34 deletions

View File

@@ -2,9 +2,9 @@
public record CreatorSearchItem
{
public int CreatorId { get; init; }
public required string Name { get; init; }
public bool Favorite { get; init; }
public bool Blacklisted { get; init; }
public int VoiceWorkCount { get; init; }
public int CreatorId { get; set; }
public required string Name { get; set; }
public bool Favorite { get; set; }
public bool Blacklisted { get; set; }
public int VoiceWorkCount { get; set; }
}

View File

@@ -1,4 +1,5 @@
using JSMR.Application.Circles.Queries.Search;
using JSMR.Application.Creators.Commands.UpdateCreatorStatus;
using JSMR.Application.Creators.Queries.Search;
using JSMR.Application.Scanning;
using JSMR.Application.Tags.Commands.SetEnglishName;
@@ -24,6 +25,7 @@ public static class ApplicationServiceCollectionExtensions
services.AddScoped<UpdateTagStatusHandler>();
services.AddScoped<SearchCreatorsHandler>();
services.AddScoped<UpdateCreatorStatusHandler>();
return services;
}

View File

@@ -2,10 +2,10 @@
public record TagSearchItem
{
public int TagId { get; init; }
public required string Name { get; init; }
public bool Favorite { get; init; }
public bool Blacklisted { get; init; }
public string? EnglishName { get; init; }
public int VoiceWorkCount { get; init; }
public int TagId { get; set; }
public required string Name { get; set; }
public bool Favorite { get; set; }
public bool Blacklisted { get; set; }
public string? EnglishName { get; set; }
public int VoiceWorkCount { get; set; }
}