Contactformulier-module, banners, thema's, taalbestanden en CI-herstructurering #15
@@ -16,6 +16,8 @@
|
||||
| Bug | [owner-cannot-promote-requester-identity](bugs/owner-cannot-promote-requester-identity/bug-fix.md) | ✅ Complete (gemerged via PR #11, 2026-11-10) | feature/identity-email-notifications | Identity (UsersController) | 2026-11-08 |
|
||||
| Bug | [availability-gate-blocks-website-and-admin](bugs/availability-gate-blocks-website-and-admin/bug-fix.md) | ✅ Complete (gemerged via PR #11, 2026-11-10) | feature/identity-email-notifications | Availability (middleware) | 2026-11-09 |
|
||||
| Bug | [setup-page-after-failed-status-read](bugs/setup-page-after-failed-status-read/bug-fix.md) | ✅ Complete (gemerged via PR #11, 2026-11-10) | feature/identity-email-notifications | Frontend (router guard, login), Identity (Setup limiter) | 2026-11-09 |
|
||||
| Feature | Contact Forms Module (contact-forms-module) | 🟡 Construction fase 2 (CMS-U7 en U5 klaar; U6, U8 volgen; niets gepusht) | feature/contact-forms-module | Modules (new Contact + Tests, Offerings category), Core (OnRejected, availability gate marker), Frontend (admin Berichten) | 2026-11-09 |
|
||||
| Feature | Contact Forms Module (contact-forms-module) | 🟡 Op test (CMS-U1 t/m U12 gebouwd en gepusht, o.a. Berichten-admin U6/U12, Offerings mobiele FAB U8, Friendly Captcha U9; contactformulier door Bryan op test geaccepteerd; niet gemerged, productie wacht op Bryans go) | feature/contact-forms-module | Modules (new Contact + Tests, Offerings category), Core (OnRejected, availability gate marker), Frontend (admin Berichten) | 2026-11-09 |
|
||||
| Feature | [Offering banners (offering-banners)](features/offering-banners/overview.md) | 🟡 Op test (buiten AI-DLC gebouwd en achteraf gedocumenteerd; admin-lijst met Locatie-badge op test sinds 2026-11-15) | feature/contact-forms-module | Modules.Offerings (banner met positie top/bottom), openapi, Frontend (admin Aanbiedingen > Banner) | 2026-11-12 |
|
||||
| Feature | [Offering schedule (offering-schedule)](features/offering-schedule/overview.md) | 🟡 Op test zodra CI-run 109 is uitgerold (buiten AI-DLC gebouwd en achteraf gedocumenteerd) | feature/contact-forms-module | Modules.Offerings (aan/uit en van/tot per pakket, `/offerings/all`), openapi, Frontend (admin pakketformulier en -lijst) | 2026-11-15 |
|
||||
| Feature | [Website SEO (website-seo)](features/website-seo/overview.md) | 🟡 Op SLP-test (buiten AI-DLC gebouwd en achteraf gedocumenteerd; productie vraagt `Website__NoIndex=false` en `Website__PublicBaseUrl`) | feature/contact-forms-module | Core (Hosting/Website), Modules.Offerings (index-markers), Api.SlpSoftware (appsettings) | 2026-11-11 |
|
||||
| Bug | [theme-toggle-first-click](bugs/theme-toggle-first-click/bug-fix.md) | ✅ Complete (niet gecommit/gemerged; buiten AI-DLC gebouwd; oorzaak niet in een echte browser nagebootst) | feature/contact-forms-module | Frontend (useTheme, index.html) | 2026-11-15 |
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# Offering schedule (offering-schedule)
|
||||
|
||||
- **Slug**: offering-schedule
|
||||
- **Type**: Feature (small), built outside the AI-DLC flow and documented afterwards
|
||||
- **Status**: Commits 8af156c and 32b98fe on `feature/contact-forms-module`; on the test hosts once CI run 109 is deployed (not merged, nothing in production)
|
||||
- **Affected components**: `SlpModularCms.Modules.Offerings` (+ Tests), `openapi/slpsoftware.v1.json`, frontend admin (`frontend/src/features/offerings`)
|
||||
- **Documented**: 2026-11-15
|
||||
- **Documentation Language**: English
|
||||
- **Conversation Language**: Dutch (user language)
|
||||
|
||||
> Not run through the AI-DLC stages; this file records what the code does. There are no `requirements`, `plans` or `audit.md`.
|
||||
|
||||
## Purpose
|
||||
|
||||
An offering (package) can be switched on or off and limited to a period, so it can be prepared in advance or retired without deleting it.
|
||||
|
||||
## Behaviour
|
||||
|
||||
| Item | Behaviour |
|
||||
|---|---|
|
||||
| Fields on `Offering` | `IsActive` (default true), `StartsAt?`, `EndsAt?` (UTC). Migration `20261115100000_AddOfferingSchedule`. |
|
||||
| Live | An offering is live when it is switched on, `StartsAt` is empty or not in the future, and `EndsAt` is empty or still in the future (`OfferingSchedule.IsLive`). |
|
||||
| Public list | `GET /api/v1/offerings` returns **only live offerings**, evaluated at request time. Consumers that fetch at build time (the ASF website) therefore get the schedule as it is at the build moment. |
|
||||
| Administrator list | `GET /api/v1/offerings/all` (AdminOnly) returns every offering including switched-off, planned and expired ones, with `isActive`, `startsAt` and `endsAt`. |
|
||||
| Create / update | `CreateOfferingRequest` / `UpdateOfferingRequest` accept `isActive`, `startsAt`, `endsAt`; the schedule is validated (`OfferingSchedule.Validate`, end must be after start). |
|
||||
| Cache | Every change invalidates the host's index.html cache (SpaFallback hosts), so the SLP markers refresh at once. A schedule boundary that passes on its own is picked up when the cache entry expires (about 60 seconds). |
|
||||
| Admin UI | The package form has the schedule fields and a Cancel button; the featured star keeps the schedule. The list loads `/offerings/all`. |
|
||||
@@ -0,0 +1,29 @@
|
||||
# Website SEO on the CMS host (website-seo)
|
||||
|
||||
- **Slug**: website-seo
|
||||
- **Type**: Feature (small), built outside the AI-DLC flow and documented afterwards
|
||||
- **Status**: Commits a7460a0, 284ff1f (2026-11-11) and 32b98fe on `feature/contact-forms-module`; on the SLP test host (not merged, nothing in production)
|
||||
- **Affected components**: `SlpModularCms.Core` (`Hosting/Website`), `SlpModularCms.Modules.Offerings` (index markers), `SlpModularCms.Api.SlpSoftware/appsettings.json`
|
||||
- **Documented**: 2026-11-15
|
||||
- **Documentation Language**: English
|
||||
- **Conversation Language**: Dutch (user language)
|
||||
|
||||
> Not run through the AI-DLC stages; this file records what the code does. There are no `requirements`, `plans` or `audit.md`.
|
||||
|
||||
## Scope
|
||||
|
||||
Only hosts in `WebsiteMode.SpaFallback` (SlpSoftware). The ASF host (`PrerenderedPages`) registers none of this: that site builds its own canonical, og, JSON-LD and sitemap.
|
||||
|
||||
## Behaviour (`Website` configuration section)
|
||||
|
||||
| Setting | Effect |
|
||||
|---|---|
|
||||
| `NoIndex` (default `true`, fail-safe) | `X-Robots-Tag: noindex, nofollow` on every response; `/robots.txt` is `Disallow: /`; no sitemap. **Production must set `Website__NoIndex=false`.** |
|
||||
| `PublicBaseUrl` | Absolute address of the instance. With `NoIndex=false`: `/robots.txt` allows all and points to `{PublicBaseUrl}/sitemap.xml`; `/sitemap.xml` lists `Sitemap:Paths` (no `lastmod`). Production: `https://slpsoftware.nl`. |
|
||||
| `AuthoredBaseUrl` | The address the static `index.html` is written with. On a test instance with its own `PublicBaseUrl`, the host replaces the authored address by `PublicBaseUrl` in the served HTML (canonical, og, JSON-LD). Equal on production, so nothing changes. Only the configured value is used, never the request's Host header. |
|
||||
| `KnownPaths` | Only these paths are pages (200, the SPA shell); any other website path is a real 404 (still the shell). `/api`, `/admin` and assets keep working. |
|
||||
| `Sitemap:Paths` | Paths listed in the sitemap. |
|
||||
|
||||
## Index markers (`IndexHtmlInjector`)
|
||||
|
||||
The host fills markers in `index.html`: `<!--SLP:OFFERINGS-JSON-LD-->` (schema.org `ItemList` of `Offer`) and `<!--SLP:OFFERINGS-HTML-->` (a static `#packages-static` list), rendered by `OfferingsIndexMarkers` from the live offerings. 60-second cache, invalidated directly by every offering change, `ETag` with 304 support; if a provider fails the plain page is still served. The markers must stay in `<body>` above `#root`; the website removes `#packages-static` on start-up.
|
||||
@@ -75,9 +75,11 @@
|
||||
"AllowedOrigins": []
|
||||
},
|
||||
"Contact": {
|
||||
// OFF by default. Do not enable on a public host until per-client rate limiting is on the
|
||||
// base branch (see ContactRateLimitPartition): until then the contact rate limits are one
|
||||
// bucket shared by all visitors.
|
||||
// OFF by default. The contact rate limits are per visitor (see ContactRateLimitPartition), but that only
|
||||
// works with the real client address: behind a reverse proxy (IIS) set ForwardedHeaders__KnownProxies__0 to the
|
||||
// proxy's address first, otherwise all visitors share ONE bucket. Release conditions, in order: that setting;
|
||||
// Contact__RecipientEmail and working mail (environment only); captcha (recommended); then Contact__Enabled=true.
|
||||
// The full list is in the Contact section of the Api.AndreaSlopFotografie appsettings.json.
|
||||
"Enabled": false,
|
||||
"SiteId": "slpsoftware",
|
||||
"MinSeconds": 3,
|
||||
|
||||
Reference in New Issue
Block a user