Contactformulier-module, banners, thema's, taalbestanden en CI-herstructurering #15

Merged
Sluijsens merged 84 commits from feature/contact-forms-module into master 2026-11-16 11:51:12 +01:00
3 changed files with 13 additions and 10 deletions
Showing only changes of commit ad71a2cc0d - Show all commits
@@ -80,11 +80,11 @@ public class HostConfigurationTests
}
[Fact]
public void Host_DoesNotReferenceMasterOrOfferingsModules()
public void Host_ReferencesOfferings_ButNotTheMasterModule()
{
var referenced = typeof(Program).Assembly.GetReferencedAssemblies().Select(a => a.Name);
referenced.Should().NotContain("SlpModularCms.Modules.Offerings")
referenced.Should().Contain("SlpModularCms.Modules.Offerings")
.And.NotContain("SlpModularCms.Modules.Master");
}
@@ -27,15 +27,15 @@ public class HostPipelineTests : IClassFixture<AsfWebApplicationFactory>
public HostPipelineTests(AsfWebApplicationFactory factory) => _factory = factory;
[Fact]
public async Task Capabilities_ListIdentityAndAvailability_ButNotOfferingsOrMaster()
public async Task Capabilities_ListIdentityAvailabilityAndOfferings_ButNotMaster()
{
var response = await _factory.CreateClient().GetAsync("/api/v1/System/capabilities");
response.StatusCode.Should().Be(HttpStatusCode.OK);
using var doc = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
var modules = doc.RootElement.GetProperty("modules").EnumerateArray().Select(e => e.GetString()).ToList();
modules.Should().Contain("Identity").And.Contain("Availability");
modules.Should().NotContain("Offerings").And.NotContain("Master");
modules.Should().Contain("Identity").And.Contain("Availability").And.Contain("Offerings");
modules.Should().NotContain("Master");
}
[Fact]
@@ -18,15 +18,18 @@
</ItemGroup>
<!--
Identity + Availability + Contact: this client serves one prerendered website and its admin.
No Master (it is not a master/slave setup) and no Offerings (a SlpSoftware-specific feature), so
/api/v1/System/capabilities does not list them. Availability is kept because the admin SPA reads
the availability status. Contact is the website's contact form; it stays completely inactive
(no routes, no database access) until Contact:Enabled=true, see Contact in appsettings.json.
Identity + Availability + Offerings + Contact: this client serves one prerendered website and its admin.
No Master (it is not a master/slave setup), so /api/v1/System/capabilities does not list it.
Availability is kept because the admin SPA reads the availability status. Offerings holds the
website's packages (the site fetches GET /api/v1/offerings at build time; the host-side index.html
marker injection is a SpaFallback-only feature and stays inactive here). Contact is the website's
contact form; it stays completely inactive (no routes, no database access) until
Contact:Enabled=true, see Contact in appsettings.json.
-->
<ItemGroup>
<ProjectReference Include="..\SlpModularCms.Core\SlpModularCms.Core.csproj" />
<ProjectReference Include="..\SlpModularCms.Modules.Availability\SlpModularCms.Modules.Availability.csproj" />
<ProjectReference Include="..\SlpModularCms.Modules.Offerings\SlpModularCms.Modules.Offerings.csproj" />
<ProjectReference Include="..\SlpModularCms.Modules.Contact\SlpModularCms.Modules.Contact.csproj" />
<ProjectReference Include="..\SlpModularCms.Modules.Identity\SlpModularCms.Modules.Identity.csproj" />
</ItemGroup>