Add support item process tracking and admin updates

This commit is contained in:
2026-10-16 16:37:51 +01:00
parent 93c86fed6e
commit 2c3fb146ab
88 changed files with 1594 additions and 642 deletions
+17 -7
View File
@@ -34,12 +34,13 @@ namespace Saxonite.Net.Core.Web.Base.App
// Properties.
public abstract IStringLocalizer MainProperties { get; }
public virtual List<IStringLocalizer> AlternativeProperties { get; } = new List<IStringLocalizer>();
private HashSet<String> MissingKeysLogged { get; } = new HashSet<String>(StringComparer.OrdinalIgnoreCase);
//-------------------------------------------------------------------
// Generic phrase translation.
//-------------------------------------------------------------------
/// <summary>Retrieve localised text.</summary>
public LocalizedString GetText(string key)
//-------------------------------------------------------------------
// Generic phrase translation.
//-------------------------------------------------------------------
/// <summary>Retrieve localised text.</summary>
public LocalizedString GetText(string key)
{
return GetText(key, null);
}
@@ -72,8 +73,11 @@ namespace Saxonite.Net.Core.Web.Base.App
break;
}
}
if (text.ResourceNotFound && logMissingKey)
SaLogger.Debug($"{SysUtil.Fn} Key not found: {key}");
if (text.ResourceNotFound && logMissingKey && !MissingKeysLogged.Contains(key))
{
MissingKeysLogged.Add(key);
SaLogger.Debug($"{SysUtil.Fn} Key not found: {key}");
}
return text;
}
@@ -324,6 +328,12 @@ namespace Saxonite.Net.Core.Web.Base.App
return GetCodeTypeCaption(Sax.CodeType.UserReportType, reportType);
}
// Support Item Process Type.
public String GetSupportItemProcessTypeCaption(Sax.SupportItemProcessType processType)
{
return GetCodeTypeCaption(Sax.CodeType.SupportItemProcessType, processType);
}
//-------------------------------------------------------------------
// Region.
public String GetRegionName(SaxRegion.Data region)