Enhance participant update handling and UI responsiveness in DiaryView

This commit improves the participant update process by ensuring the latest participant data is fetched from the database before emitting socket events. It also refines the DiaryView component's UI, adding better handling for dropdowns and member group selections, enhancing user experience. Additionally, new CSS styles are introduced for member group select elements to ensure consistent appearance across browsers.
This commit is contained in:
Torsten Schulz (local)
2025-11-13 18:18:31 +01:00
parent 58e773e51e
commit 2b06a8dd10
4 changed files with 166 additions and 52 deletions

View File

@@ -64,6 +64,7 @@ export const emitParticipantRemoved = (clubId, dateId, participantId) => {
};
export const emitParticipantUpdated = (clubId, dateId, participant) => {
console.log('📡 [Socket] Emit participant:updated für Club', clubId, 'Date', dateId, 'Participant:', participant);
emitToClub(clubId, 'participant:updated', { dateId, participant });
};