Skip to content

Conversation

@zacharykeeping
Copy link
Member

  1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)

#1485

  1. What was changed?

Adds a core tenant config system, to be expanded in future PBIs.

  1. Did you do pair or mob programming?

No

…json for centralized configuration and update project files to link and load settings.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces an initial tenant configuration system (TenantSettings) intended to centralize tenant-specific/white-label settings and make them available across hosts.

Changes:

  • Added TenantSettings model + validation/DI wiring via AddTenantSettings.
  • Introduced a shared appsettings.TenantSettings.json and wired it into MobileUI (embedded) and WebAPI (copied + loaded).
  • Added unit tests covering configuration binding and validation scenarios.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/Application.UnitTests/Common/Configuration/TenantSettingsTests.cs Adds unit tests for binding + validation (currently includes an invalid test expectation).
src/WebAPI/WebAPI.csproj Links shared tenant settings JSON into WebAPI output (publish handling needs attention).
src/WebAPI/Program.cs Loads appsettings.TenantSettings.json into configuration before DI setup.
src/MobileUI/MobileUI.csproj Embeds shared tenant settings JSON as an assembly resource.
src/MobileUI/MauiProgram.cs Loads embedded JSON into configuration and registers TenantSettings.
src/Common/Configuration/appsettings.TenantSettings.json Adds the initial default tenant settings payload.
src/Common/Configuration/TenantSettingsExtensions.cs Adds DI registration + manual validation helpers for TenantSettings.
src/Common/Configuration/TenantSettings.cs Adds the TenantSettings configuration model with nested sections.
src/Application/ConfigureServices.cs Registers TenantSettings as part of Application service registration.
src/AdminUI/AdminUI.csproj Copies shared tenant settings JSON into wwwroot for AdminUI.

@jernejk
Copy link
Member

jernejk commented Jan 23, 2026

The settings structure looks, I'm just wondering if they should be in the DB?

That way we can make minor adjustments (mostly for AdminUI but to limited extend MobileUI).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants