Commit Graph
141 Commits
Author SHA1 Message Date
stijn 8a61d35e63 Add ServerMessageService for broadcasting player state updates, implement PlayerListState model, and update ChatService to synchronize active player states across servers. 2026-08-22 19:27:02 +02:00
stijn 2a65f98493 Add ServerMessageService for broadcasting player state updates, implement PlayerListState model, and update ChatService to synchronize active player states across servers. 2026-08-22 18:22:12 +02:00
stijn 423d9c9043 Add admin chat endpoint and request schemas for private messages, party messages, and punishments 2026-08-09 15:41:34 +02:00
stijn 1a0bc902ac Refactor user name display logic: integrate MiniMessageComponent in UserListComponent and transition to ProcessedMiniMessageNode. Add server state caching in ChatService with eager state dispatch on subscription. 2026-08-09 02:04:11 +02:00
stijn 65d0118e3d Implement server state handling in ChatController and ChatService, add ServerStateMapper utility, and create/update server state unit tests. 2026-08-09 00:41:36 +02:00
stijn ce7c68511b Validate sender UUID in sendServerMessage to prevent spoofing and enhance security. 2026-08-02 18:43:12 +02:00
stijn 065db06e16 Add chat input functionality in ChatBoxComponent and backend support for sending server messages 2026-08-02 18:30:33 +02:00
stijn 8533cfa365 Remove unused test message logic and JSON serialization method from ServerMessageService. 2026-08-02 17:38:47 +02:00
stijn d3389159b6 Improve subscribe endpoint in CommandsToServerController: add error logging for missing or invalid tokens 2026-08-02 17:30:28 +02:00
stijn 8849612138 Update subscribe endpoint in CommandsToServerController to use X-Altitude-Token header instead of AuthenticationPrincipal; fix invalid token handling; add return in ServerMessageService test message logic. 2026-08-02 17:25:50 +02:00
stijn 9757ce2ffa Inject EventPublisher dependency into ChatServiceTest setup for enhanced test isolation and mocking. 2026-08-02 17:21:17 +02:00
stijn 4f67228c39 Update CommandsToServerController route and adjust security config to permit access to the new route 2026-08-02 17:16:59 +02:00
stijn b71a2f19b8 Refactor EventPublisher and ChatService: replace UUID-based keys with generic unique string keys, add session cleanup callbacks, and update related logic for better extensibility and reusability. 2026-08-02 17:06:53 +02:00
stijn 5987ee4133 Remove redundant test assertion for sender visibility in ChatServiceTest 2026-08-01 22:24:27 +02:00
stijn ed942d5ec5 Simplify MSG case handling in ChatService by directly comparing receiver UUID. 2026-08-01 21:52:29 +02:00
stijn 8f9aea2e0f Refactor ChatService and ChannelListComponent: integrate ChatService into ChannelListComponent, rename partieId to partyId, update party and DM name mappings in UI, and remove debug log in AuthService. 2026-08-01 20:47:34 +02:00
stijn 8ecfb99b27 Add ChatInfoService for retrieving player and party names: integrated backend APIs, updated chat service with caching logic for names, and extended OpenAPI documentation. 2026-08-01 20:22:38 +02:00
stijn 79a62e9ce9 Add party name retrieval: implemented PartyMapper for database queries, updated ChatService with new getPartyName method, and extended /chat/party/{id}/name API endpoint. 2026-08-01 20:03:49 +02:00
stijn 8931bdc30d Add nickname retrieval support: implemented NicknameMapper for database queries, updated ChatService to return player names with optional nicknames, and extended /chat/player/{uuid}/name API endpoint. 2026-08-01 19:57:55 +02:00
stijn 0d6a4ee8dd Link party IDs to users in chat: added getPartyId query, updated EventUser with partyId field, and adjusted message filtering logic in ChatService. 2026-08-01 18:47:06 +02:00
stijn 3100ac21c3 Add ChatService test suite to verify message filtering and delivery to appropriate users. 2026-08-01 18:26:30 +02:00
stijn 3462d82716 Track chat session lifecycles: added session start/end times, database schema, and persistence logic. 2026-08-01 17:40:48 +02:00
stijn b1267068a5 Add type, channel, and receiver fields to chat model and filter messages by PUBLIC channel type in ChatService. 2026-07-19 22:54:35 +02:00
stijn 1c2478e8d0 Add type, channel, and receiver fields to chat model and database handling. 2026-07-19 22:52:14 +02:00
stijn 7750bf6439 Expand /api/chat/read/** access to include MOD permission. 2026-07-19 20:42:00 +02:00
stijn cd18fd4b96 Expand moderator roles by adding SCOPE_mod permission and updating authorization logic. 2026-07-19 20:17:01 +02:00
stijn 9e5148fa8c Ensure unique timestamps for chat messages to prevent collisions and fix date formatting in chat-box UI. 2026-07-19 19:20:38 +02:00
stijn 7a360d1a26 Filter chat messages by allowed servers defined in application.properties. 2026-07-19 01:24:50 +02:00
stijn 4708da0c43 Configure Tomcat remote IP settings and forward headers strategy for improved proxy support 2026-07-19 00:32:57 +02:00
stijn 04ca05cd14 Refactor ChatLogDao to use Timestamp and update ChatMessageMapper with proper JSON serialization using Jackson. 2026-07-19 00:12:12 +02:00
stijn 1eb0aac97e Update toJson method in ChatMessageMapper to include notBlocked field in JSON conversion. 2026-07-19 00:09:11 +02:00
stijn 5b28f2b707 Enable Spring Boot Actuator with limited exposure and secure /actuator/mappings endpoint access. 2026-07-19 00:08:46 +02:00
stijn dde66bd608 Introduce EventPublisher and EventController for server-sent events (SSE) to enable real-time chat updates. 2026-07-18 23:30:49 +02:00
stijn 646bbd4145 Introduce chat database integration with message persistence and initialization. 2026-07-18 22:57:55 +02:00
stijn 9ebd420874 Replace UnsupportedOperationException with HTTP 202 ACCEPTED response in sendChatMessages. 2026-07-18 21:02:11 +02:00
stijn 321e736d4b Add logging for debugging chat message addition, marked for future removal 2026-07-18 20:52:27 +02:00
stijn 837f87d9be Introduce Chat API with message handling, server state updates, and IP-based security restrictions. 2026-07-18 20:21:08 +02:00
stijn 0e4ce21c58 Remove unused notification methods in ParticleController and adjust size slider minimum value in particle component. 2026-02-07 23:39:41 +01:00
stijn 6cb43b412c Comment out unused notification functionality in ParticleController since the file is directly readable 2026-01-04 05:37:46 +01:00
stijn af3ef7155a Make particles.file_path configurable via environment variable 2026-01-04 05:33:35 +01:00
stijn 8a0843128c Refactor particle management: remove secret key from file operations, add ParticleManagerComponent, update frame naming conventions, and enhance style and functionality. 2026-01-04 05:22:04 +01:00
stijn d1ff7b3f88 Apply inline code formatting for Discord usernames and user details in StaffApplicationDiscord and AppealDiscord to avoid formatting them. 2025-11-28 19:55:23 +01:00
stijn 525116e89b Enhance DiscordAppeal submission process by adding username retrieval and updating email notifications with Minecraft username. Refactor for clarity and consistency in variable usage. 2025-11-24 18:56:29 +01:00
stijn 186a26fae1 Refactor AppealDiscord to simplify appeal list processing using Comparator and optimize imports. 2025-11-24 01:45:08 +01:00
stijn 5622db917b Rename username to discordUsername in DiscordAppeal and update references for clarity. 2025-11-24 01:34:32 +01:00
stijn fb01fc7571 Add staff role mapping, display role in UI, and enhance staff playtime calculations 2025-11-24 00:49:56 +01:00
stijn 2e7c91bb73 Change discordId type from integer to string across frontend, backend, and API schema for consistency and proper validation. 2025-11-23 04:14:21 +01:00
stijn 7d59885395 Implement Discord appeal functionality, including database schema, API endpoints, front-end form, and Discord message handling. 2025-11-22 22:26:40 +01:00
stijn 9311a1ccd6 Refactor appeal message sending to use AppealSender and improve assignment handling with thread creation and button interactions. 2025-11-22 00:56:18 +01:00
stijn 65820cf0a4 Implement appeal assignment system with AppealListMapper and associated logic. 2025-11-22 00:44:18 +01:00