Phil00 live event - #418
Open
crazifil wants to merge 5 commits into
Open
Conversation
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.
Summary
Adds a new Live Event feature, allowing authorised users to configure a temporary destination that is promoted directly from the main CTR interface.
When a Live Event is enabled, the existing Outlands placeholder is replaced by an animated Live Event button. Clicking the button takes the citizen directly to the configured destination.
When no Live Event is active, the normal Outlands placeholder remains unchanged.
Changes
Added a live_event database table to store:
Selected destination
Enabled/disabled status
Last updated time
Member responsible for the update
Added API routes, controller, service and repository support for Live Events.
Added an Admin Panel → Live Event page.
Allows a Live Event destination to be selected from active Colonies and Public Places.
Allows Live Events to be enabled or disabled without removing the configured destination.
Added Live Event access for appropriate administrative/leadership roles.
Preserves existing Members and Places access for Colony Representative and Places Chief roles.
Added an animated Live Event graphic to the main CTR interface.
Live Event button automatically links to the currently configured destination.
Existing Outlands placeholder remains displayed when Live Event is disabled.
Testing
Tested locally with Docker/MySQL and the CTR SPA.
Confirmed:
API and SPA production builds complete successfully.
Live Event configuration is saved correctly to the database.
Destination selection persists correctly.
Enable/disable functionality works correctly.
updated_by records the member making the change.
Admin, Colony Representative and Places Chief permissions operate as expected.
Existing Members/Places permissions are retained.
Live Event graphic only appears while an event is enabled.
Live Event button correctly sends the user to the configured destination.