Add viewer-range categories, nomination tracking, dynamic showact form, session timeout, share URLs, and workflow-per-season
Features: - Category viewer ranges + subcategory templates (admin group modal, tree workspace) - Nomination enrichment via TwitchTracker API (NominationEnrichmentService, TwitchTrackerViewerStatsProvider) with admin tracking rules editor - Nomination group tracker: CategoryGroupName as primary identifier, CategoryId stays as nullable legacy field; StreamerIdentity table - Dynamic showact application form builder (AdminShowactFormBuilder, ShowactApplicationSchedule) - Session idle timeout setting (AdminSessionTimeoutCard) - Share URLs for X and Discord (SiteSettings, public extras) - Workflow rules now stored per season (falls back to global SiteSettings) - New admin routes: settings/access, settings/workflows, tracking-rules - New admin review workspace with subcategory tabs - AdminCategoriesView rebuilt with group/subcategory modals Migrations (all additive): - AddShareUrls, AddShowactDynamicForm, AddCategoryViewerRanges, AddSessionIdleTimeoutSettings, AddSeasonSubcategoryTemplates, AddNominationGroupTrackerIdentity, AddShowactApplicationSchedule, AddSeasonWorkflowRulesJson Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,9 +7,12 @@ public sealed class Candidate
|
||||
public Season Season { get; set; } = null!;
|
||||
public int CategoryId { get; set; }
|
||||
public Category Category { get; set; } = null!;
|
||||
public int? StreamerIdentityId { get; set; }
|
||||
public StreamerIdentity? StreamerIdentity { get; set; }
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
public string ChannelSlug { get; set; } = string.Empty;
|
||||
public string Platform { get; set; } = "Twitch";
|
||||
public int NominationTally { get; set; }
|
||||
public string AcceptanceStatus { get; set; } = "open";
|
||||
public string? AcceptanceNote { get; set; }
|
||||
public string? ClipCompilationUrl { get; set; }
|
||||
|
||||
@@ -11,5 +11,7 @@ public sealed class Category
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public int SortOrder { get; set; }
|
||||
public int MaxNomineesPerUser { get; set; }
|
||||
public int? ViewerRangeMin { get; set; }
|
||||
public int? ViewerRangeMax { get; set; }
|
||||
public ICollection<Candidate> Candidates { get; set; } = [];
|
||||
}
|
||||
|
||||
@@ -5,13 +5,32 @@ public sealed class Nomination
|
||||
public int Id { get; set; }
|
||||
public int SeasonId { get; set; }
|
||||
public Season Season { get; set; } = null!;
|
||||
public int CategoryId { get; set; }
|
||||
public Category Category { get; set; } = null!;
|
||||
public int? CategoryId { get; set; }
|
||||
public Category? Category { get; set; }
|
||||
public string CategoryGroupName { get; set; } = string.Empty;
|
||||
public string SubmittedByTwitchId { get; set; } = string.Empty;
|
||||
public int? CandidateId { get; set; }
|
||||
public Candidate? Candidate { get; set; }
|
||||
public int? StreamerIdentityId { get; set; }
|
||||
public StreamerIdentity? StreamerIdentity { get; set; }
|
||||
public int? SuggestedCategoryId { get; set; }
|
||||
public Category? SuggestedCategory { get; set; }
|
||||
public string? CandidateText { get; set; }
|
||||
public string? StreamUrl { get; set; }
|
||||
public string? ResolvedChannel { get; set; }
|
||||
public string? ResolvedPlatform { get; set; }
|
||||
public int? AvgViewers { get; set; }
|
||||
public int? HoursStreamed { get; set; }
|
||||
public int? HoursWatched { get; set; }
|
||||
public int? PeakViewers { get; set; }
|
||||
public int? FollowersGained { get; set; }
|
||||
public string TrackerStatus { get; set; } = "pending";
|
||||
public DateTimeOffset? TrackerCheckedAt { get; set; }
|
||||
public string TrackingReviewStatus { get; set; } = "clear";
|
||||
public string TrackingFlagsJson { get; set; } = "[]";
|
||||
public string? TrackingReviewNote { get; set; }
|
||||
public string? TrackingReviewedByTwitchId { get; set; }
|
||||
public DateTimeOffset? TrackingReviewedAt { get; set; }
|
||||
public string Status { get; set; } = "pending";
|
||||
public string? ReviewNote { get; set; }
|
||||
public string? ReviewedByTwitchId { get; set; }
|
||||
|
||||
@@ -17,6 +17,8 @@ public sealed class Season
|
||||
public DateOnly ReviewEndsAt { get; set; }
|
||||
public DateOnly ShowDate { get; set; }
|
||||
public TimeOnly ShowStartsAt { get; set; } = new(20, 0);
|
||||
public string SubcategoryTemplatesJson { get; set; } = "[]";
|
||||
public string WorkflowRulesJson { get; set; } = "[]";
|
||||
public ICollection<Category> Categories { get; set; } = [];
|
||||
public ICollection<AwardResult> Results { get; set; } = [];
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ public sealed class ShowactApplication
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string TechnicalNotes { get; set; } = string.Empty;
|
||||
public string ReferenceUrl { get; set; } = string.Empty;
|
||||
public string FieldResponsesJson { get; set; } = "{}";
|
||||
public string Status { get; set; } = "pending";
|
||||
public string? ReviewNote { get; set; }
|
||||
public string? ReviewedByTwitchId { get; set; }
|
||||
|
||||
@@ -6,6 +6,8 @@ public sealed class SiteSettings
|
||||
public string HostDisplayName { get; set; } = string.Empty;
|
||||
public string HostTagline { get; set; } = string.Empty;
|
||||
public string NewsletterUrl { get; set; } = string.Empty;
|
||||
public string ShareXUrl { get; set; } = string.Empty;
|
||||
public string ShareDiscordUrl { get; set; } = string.Empty;
|
||||
public string PrivacyEmail { get; set; } = string.Empty;
|
||||
public string PrivacyPolicyContent { get; set; } = string.Empty;
|
||||
public string? PrivacyPolicyUpdatedBy { get; set; }
|
||||
@@ -22,13 +24,19 @@ public sealed class SiteSettings
|
||||
public string FaqJson { get; set; } = "[]";
|
||||
public string RiskRulesJson { get; set; } = "[]";
|
||||
public string WorkflowRulesJson { get; set; } = "[]";
|
||||
public string TrackingRulesJson { get; set; } = "[]";
|
||||
public string ViewerStatsProviderBaseUrl { get; set; } = string.Empty;
|
||||
public string TrackingReviewNotes { get; set; } = string.Empty;
|
||||
public string NominationLinkBlacklistJson { get; set; } = "[]";
|
||||
public bool ClipSubmissionsEnabled { get; set; }
|
||||
public bool ClipReviewEnabled { get; set; } = true;
|
||||
public bool ClipAdminMenuVisible { get; set; } = true;
|
||||
public string ClipSubmissionDisabledMessage { get; set; } = "Clip-Einreichungen sind aktuell geschlossen.";
|
||||
public bool ShowactApplicationsEnabled { get; set; }
|
||||
public DateOnly? ShowactApplicationStartsAt { get; set; }
|
||||
public DateOnly? ShowactApplicationEndsAt { get; set; }
|
||||
public string ShowactApplicationDisabledMessage { get; set; } = "Showact-Bewerbungen sind aktuell geschlossen.";
|
||||
public string ShowactFormSchemaJson { get; set; } = "[]";
|
||||
public bool SponsorsVisible { get; set; } = true;
|
||||
public bool DemoLoginManagedByDatabase { get; set; }
|
||||
public bool DemoLoginEnabled { get; set; }
|
||||
@@ -42,6 +50,7 @@ public sealed class SiteSettings
|
||||
public string TwitchClientSecret { get; set; } = string.Empty;
|
||||
public string TwitchRedirectUri { get; set; } = string.Empty;
|
||||
public string TwitchScope { get; set; } = string.Empty;
|
||||
public int SessionIdleTimeoutHours { get; set; } = 3;
|
||||
public bool MaintenanceModeEnabled { get; set; }
|
||||
public string MaintenanceTitle { get; set; } = "Sternenpause";
|
||||
public string MaintenanceMessage { get; set; } = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.";
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace Backend.Domain;
|
||||
|
||||
public sealed class StreamerIdentity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Platform { get; set; } = string.Empty;
|
||||
public string Login { get; set; } = string.Empty;
|
||||
public string NormalizedKey { get; set; } = string.Empty;
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
public string? ProfileUrl { get; set; }
|
||||
public DateTimeOffset? LastResolvedAt { get; set; }
|
||||
public ICollection<Nomination> Nominations { get; set; } = [];
|
||||
public ICollection<Candidate> Candidates { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user