Feature/poll administration - #56
Merged
Merged
Conversation
…play - Add PollsController, PollService, data models, and CRUD views - Add Select2 room search and datetime pickers for trigger settings - Add type-aware question UX: single choice locks min/max, multi shows controls - Add poll status display: Active/Pending/Expired/Disabled based on trigger times - Treat time_from/time_to of 0 same as null (always active unless disabled) - Add room search API endpoint with public + user room support - Register PollService, add audit log types, add menu entry - Add EnumToStringConverter for PollQuestionTypes in DataContext
…e IP matching IP matching alone produced massive false positives from shared internal/proxy IPs (10.255.0.2, 192.168.x.x, etc). Now only users sharing a v2 machine ID are shown, with IP overlap noted as additional context in the match type column.
Non-v2 machine IDs have massive collisions (one ID shared by 172 users). Keep v2% filter until hh_entry.cct is updated to send v2 machine IDs. IP matching removed as standalone criterion - only shown as context when a v2 machine ID match already exists.
|
The pre-release image can be pulled using: docker pull ghcr.io/webbanditten/keplercms:prerelease-dd363627770c7c2ac4bfc4bd054ed67ce437aa5f |
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.
This pull request introduces a full admin interface for managing polls and surveys in the Housekeeping area of the CMS. It adds a new
PollsControllerwith all CRUD operations, supporting view models, and user-friendly views for listing, creating, and editing polls. The changes also clarify the distinction between the CMS and game server projects in the developer documentation.Polls Management Feature:
PollsControllerto provide all CRUD endpoints for poll management, including create, update, remove, toggle enabled/disabled status, and view results. All actions are protected by admin access filters.PollViewModels.cs, supporting complex poll structures with questions, options, and trigger settings.User Interface:
Create.cshtmlview with a dynamic question and option builder, room search, and time pickers for poll triggers, making poll creation user-friendly and flexible.Index.cshtmlview to list all polls, show their status (active, pending, expired, disabled), and provide actions for editing, toggling, viewing results, and deleting polls.Documentation:
KeplerCMS, C#) and the game server (Kepler, Java), and added instructions for database access.