From 007266e7b060b1384fb80a735fdff7a1a725b4eb Mon Sep 17 00:00:00 2001 From: lenhanphung <44486647+lenhanphung@users.noreply.github.com> Date: Thu, 20 Nov 2025 18:00:17 +0700 Subject: [PATCH] =?UTF-8?q?Fix:=20#319=20attendee=20role:=20use=20REQ-PART?= =?UTF-8?q?ICIPANT=20instead=20of=20CHAIR=20for=20nor=E2=80=A6=20(#349)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change role from CHAIR to REQ-PARTICIPANT when adding attendees via PeopleSearch - Keep CHAIR role only for organizers --- __test__/components/EventModifications.test.tsx | 6 +++--- __test__/features/Events/EventModal.test.tsx | 2 +- src/components/Attendees/AttendeeSearch.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__test__/components/EventModifications.test.tsx b/__test__/components/EventModifications.test.tsx index 260603a..cc46570 100644 --- a/__test__/components/EventModifications.test.tsx +++ b/__test__/components/EventModifications.test.tsx @@ -319,7 +319,7 @@ describe("CalendarApp integration", () => { cn: "Bob", partstat: "ACCEPTED", rsvp: "TRUE", - role: "CHAIR", + role: "REQ-PARTICIPANT", cutype: "INDIVIDUAL", cal_address: "bob@example.com", }, @@ -379,7 +379,7 @@ describe("CalendarApp integration", () => { expect(normalAttendee).toBeTruthy(); expect(normalAttendee?.partstat).toBe("ACCEPTED"); - expect(normalAttendee?.role).toBe("CHAIR"); //will need to be changed as not the right role + expect(normalAttendee?.role).toBe("REQ-PARTICIPANT"); }); it("changes normal attendee to need action on time update and no organizer changes", async () => { @@ -431,7 +431,7 @@ describe("CalendarApp integration", () => { expect(normalAttendee).toBeTruthy(); expect(normalAttendee?.partstat).toBe("NEEDS-ACTION"); - expect(normalAttendee?.role).toBe("CHAIR"); //will need to be changed as not the right role + expect(normalAttendee?.role).toBe("REQ-PARTICIPANT"); }); it("update event attendees on drag", async () => { const mockDispatch = jest.fn(); diff --git a/__test__/features/Events/EventModal.test.tsx b/__test__/features/Events/EventModal.test.tsx index 1ac9f66..1a8cdeb 100644 --- a/__test__/features/Events/EventModal.test.tsx +++ b/__test__/features/Events/EventModal.test.tsx @@ -254,7 +254,7 @@ describe("EventPopover", () => { cal_address: "john@example.com", partstat: "NEED_ACTION", rsvp: "FALSE", - role: "CHAIR", + role: "REQ-PARTICIPANT", cutype: "INDIVIDUAL", }, ]); diff --git a/src/components/Attendees/AttendeeSearch.tsx b/src/components/Attendees/AttendeeSearch.tsx index 91fa0ba..9f71a18 100644 --- a/src/components/Attendees/AttendeeSearch.tsx +++ b/src/components/Attendees/AttendeeSearch.tsx @@ -42,7 +42,7 @@ export default function UserSearch({ cal_address: a.email, partstat: "NEED_ACTION", rsvp: "FALSE", - role: "CHAIR", + role: "REQ-PARTICIPANT", cutype: "INDIVIDUAL", })) );