Skip to content

feat: catalogue rare-item campaign action + housekeeping server-statu… - #58

Merged
Webbanditten merged 2 commits into
masterfrom
feature/campaign-rare-item
Jun 1, 2026
Merged

feat: catalogue rare-item campaign action + housekeeping server-statu…#58
Webbanditten merged 2 commits into
masterfrom
feature/campaign-rare-item

Conversation

@Webbanditten

Copy link
Copy Markdown
Owner

…s panel

Catalogue Rare Item action:

  • New CatalogueRareItem campaign action type. Picks the catalogue rare item (the catalogue_items row with sale_code 'rare_item') via the same furni picker as the Rewards screen (AJAX /api/hotel/furni/search + image preview).
  • On activate: applies the chosen definition_id and sets the rare page fuse to DEFAULT (visible to all). On deactivate: hides the page (fuse_catalogue_administrator), keeping the last-set definition.
  • Queues reload_catalogue. Reads page id via projection and updates the definition via raw SQL to avoid the phantom catalogue_items.sprite mapping.
  • Wired through the enum, handler factory, DI, executor reload routing, and the campaign Edit UI (option, picker form, submit/populate/summary).

Housekeeping front page:

  • Add a "Server status" sidebar panel (Home only) showing a live server clock and the current Habbos-online count (players.online, refreshed via /api/hotel/online).

Webbanditten and others added 2 commits June 1, 2026 13:31
…s panel

Catalogue Rare Item action:
- New CatalogueRareItem campaign action type. Picks the catalogue rare item
  (the catalogue_items row with sale_code 'rare_item') via the same furni
  picker as the Rewards screen (AJAX /api/hotel/furni/search + image preview).
- On activate: applies the chosen definition_id and sets the rare page fuse to
  DEFAULT (visible to all). On deactivate: hides the page
  (fuse_catalogue_administrator), keeping the last-set definition.
- Queues reload_catalogue. Reads page id via projection and updates the
  definition via raw SQL to avoid the phantom catalogue_items.sprite mapping.
- Wired through the enum, handler factory, DI, executor reload routing, and the
  campaign Edit UI (option, picker form, submit/populate/summary).

Housekeeping front page:
- Add a "Server status" sidebar panel (Home only) showing a live server clock
  and the current Habbos-online count (players.online, refreshed via
  /api/hotel/online).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Create News campaign action used a plain textarea; switch it to the same
TinyMCE editor (and config) as the News admin pages so it supports HTML.
Submit reads the body via tinymce getContent(); edit-mode populate writes it
back via setContent().

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Webbanditten
Webbanditten merged commit 04bb954 into master Jun 1, 2026
2 checks passed
@Webbanditten
Webbanditten deleted the feature/campaign-rare-item branch June 1, 2026 11:37
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

The pre-release image can be pulled using: docker pull ghcr.io/webbanditten/keplercms:prerelease-360096ee189ba2f56acf47b192bb08f210d6b1a2

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.

1 participant