feat: campaign management + scheduled visibility for containers/promo… - #57
Merged
Merged
Conversation
…s/menu Campaign system (Housekeeping): - New cms_campaigns / cms_campaign_actions / cms_campaign_snapshots tables with EF models and a Campaigns admin area (list/create/edit, add/edit/ remove actions, activate/deactivate, clone, delete). - Pluggable action handlers (background, banner, news, catalogue page visibility, room CCTs + title/description) behind ICampaignActionHandler, resolved via CampaignActionHandlerFactory. - CampaignExecutor applies actions with per-setting snapshots and conflict resolution across overlapping campaigns; clean revert on deactivate. - CampaignSchedulerService auto-activates/ends campaigns by start/end date. - Queues reload_catalogue / reload_navigator to the game server after catalogue/room changes. Gated by the new fuse_campaigns permission. Scheduled visibility: - Optional start/end date windows on page containers, promos and front-end menu items. Manual "hidden" stays a hard off-switch; dates gate the rest. Bounds inclusive, open-ended when blank. Admin retains full visibility. - Reuses the shared jQuery datetimepicker for a consistent admin UX. Migrations: sql/campaigns.sql, sql/scheduled_visibility.sql, and a consolidated, idempotent sql/migrations/2026-06-01_campaigns_and_scheduled_visibility.sql. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The pre-release image can be pulled using: docker pull ghcr.io/webbanditten/keplercms:prerelease-953572f163a974c29a2b6ef765b4a670322b73fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…s/menu
Campaign system (Housekeeping):
Scheduled visibility:
Migrations: sql/campaigns.sql, sql/scheduled_visibility.sql, and a consolidated, idempotent
sql/migrations/2026-06-01_campaigns_and_scheduled_visibility.sql.