Adds user settings management

Adds the UserSettings aggregate with pagination and alpha picker preferences, keyed to a user with a dedicated UserId foreign key. Adds GET and PUT /users/me/settings API endpoints, a localized Tools > Settings page with save confirmation, the EF migration for the UserSettings table, and unit, integration and security tests.
This commit is contained in:
BinaryAlley committed 2026-08-16 08:37:33 -07:00
1 parent c3f8786fe4
commit 2354e21d42
65 files changed
+4711 -21

No files matched your search

@@ -39,6 +39,7 @@ public class UnitOfWork : IUnitOfWork, IDisposable
private ILibraryMetadataProviderConfigurationRepository? _libraryMetadataProviderConfigurationRepository;
private IPluginRepository? _pluginRepository;
private IUserRepository? _userRepository;
private IUserSettingsRepository? _userSettingsRepository;
/// <summary>
/// Gets the permission repository.
@@ -196,6 +197,18 @@ public class UnitOfWork : IUnitOfWork, IDisposable
}
}
/// <summary>
/// Gets the user settings repository.
/// </summary>
public IUserSettingsRepository UserSettingsRepository
{
get
{
_userSettingsRepository ??= new UserSettingsRepository(_luminaDbContext);
return _userSettingsRepository;
}
}
/// <summary>
/// Initializes a new instance of the <see cref="UnitOfWork"/> class.
/// </summary>