From 2fa0b679431ed61efadfd039b1447fb10de57ca3 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Sat, 24 Oct 2026 19:17:31 +0300 Subject: [PATCH] Make user vote more clear --- frontend/src/pages/MeetingsPage.jsx | 42 +++++++++++++++++------------ frontend/src/styles.css | 23 ++++++++++++++++ 2 files changed, 48 insertions(+), 17 deletions(-) diff --git a/frontend/src/pages/MeetingsPage.jsx b/frontend/src/pages/MeetingsPage.jsx index bcc1cdb..0763adc 100644 --- a/frontend/src/pages/MeetingsPage.jsx +++ b/frontend/src/pages/MeetingsPage.jsx @@ -107,8 +107,18 @@ function MeetingCard({ meeting, user, onChanged }) { return (
-

{meeting.title}

- {isAuthor && your meeting} + {/* Title and badges are grouped so the badges stay right next to the + title instead of being pushed to the far edge. */} +
+

{meeting.title}

+ {isAuthor && your meeting} + {/* Brief, colour-coded reminder of the viewer's own vote. */} + {meeting.myVote && ( + + {meeting.myVote === 'join' ? 'will join' : 'will skip'} + + )} +
{meeting.intent &&

{meeting.intent}

} @@ -135,7 +145,7 @@ function MeetingCard({ meeting, user, onChanged }) { className={`pill decline ${showVoters === 'decline' ? 'open' : ''}`} onClick={() => setShowVoters((v) => (v === 'decline' ? null : 'decline'))} > - {meeting.declineCount} not joining + {meeting.declineCount} skipping
@@ -159,20 +169,18 @@ function MeetingCard({ meeting, user, onChanged }) { Join room )} - - + {/* The vote buttons are replaced by a confirmation note (above) once a + vote is cast. Retracting brings the buttons back. */} + {!meeting.myVote && ( + <> + + + + )} {meeting.myVote && (