Adds a theme caching toggle to the user settings

This commit is contained in:
BinaryAlley committed 2026-08-21 04:04:54 -07:00
1 parent 60b551558f
commit 3da7167538
43 files changed
+1611 -56

No files matched your search

@@ -37,6 +37,11 @@ public class UserSettingsEntity : IStorageEntity, IAuditableEntity
/// </summary>
public bool IgnoreThePrefixForAlphaPicker { get; set; }
/// <summary>
/// Gets or sets whether the theme data served to this user is cached, or not.
/// </summary>
public bool IsThemeCachingEnabled { get; set; } = true;
/// <summary>
/// Gets or sets the time and date when the entity was added.
/// </summary>
@@ -20,6 +20,7 @@ public static class UpdateUserSettingsRequestMapping
return new UpdateUserSettingsCommand(
request.IsPaginationEnabled,
request.ItemsPerPage,
request.IgnoreThePrefixForAlphaPicker);
request.IgnoreThePrefixForAlphaPicker,
request.IsThemeCachingEnabled);
}
}
@@ -28,7 +28,8 @@ public static class UserSettingsEntityMapping
UserId.Create(repositoryEntity.UserId),
repositoryEntity.IsPaginationEnabled,
repositoryEntity.ItemsPerPage,
repositoryEntity.IgnoreThePrefixForAlphaPicker);
repositoryEntity.IgnoreThePrefixForAlphaPicker,
repositoryEntity.IsThemeCachingEnabled);
}
/// <summary>
@@ -42,6 +43,7 @@ public static class UserSettingsEntityMapping
repositoryEntity.UserId,
repositoryEntity.IsPaginationEnabled,
repositoryEntity.ItemsPerPage,
repositoryEntity.IgnoreThePrefixForAlphaPicker);
repositoryEntity.IgnoreThePrefixForAlphaPicker,
repositoryEntity.IsThemeCachingEnabled);
}
}
@@ -24,7 +24,8 @@ public static class UserSettingsMapping
UserId = domainEntity.UserId.Value,
IsPaginationEnabled = domainEntity.IsPaginationEnabled,
ItemsPerPage = domainEntity.ItemsPerPage,
IgnoreThePrefixForAlphaPicker = domainEntity.IgnoreThePrefixForAlphaPicker
IgnoreThePrefixForAlphaPicker = domainEntity.IgnoreThePrefixForAlphaPicker,
IsThemeCachingEnabled = domainEntity.IsThemeCachingEnabled
};
}
@@ -39,6 +40,7 @@ public static class UserSettingsMapping
domainEntity.UserId.Value,
domainEntity.IsPaginationEnabled,
domainEntity.ItemsPerPage,
domainEntity.IgnoreThePrefixForAlphaPicker);
domainEntity.IgnoreThePrefixForAlphaPicker,
domainEntity.IsThemeCachingEnabled);
}
}