diff --git a/CHANGELOG.md b/CHANGELOG.md index 06518910..c00bbd4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [1.0.0-alpha.5] - 2024-09-19 + +### Added + + +### Changed +- Made meeting link optional https://github.com/chingu-x/chingu-dashboard/issues/237 + ## [1.0.0-alpha.4] - 2024-09-10 ### Added ### Changed -- Updated how we're retrieving the discord id to display in the directory page +- Updated how we're retrieving the discord id to display in the directory page https://github.com/chingu-x/chingu-dashboard/issues/202 ### Fixed diff --git a/src/app/(main)/my-voyage/[teamId]/sprints/components/forms/MeetingForm.tsx b/src/app/(main)/my-voyage/[teamId]/sprints/components/forms/MeetingForm.tsx index 503efb01..b6329a69 100644 --- a/src/app/(main)/my-voyage/[teamId]/sprints/components/forms/MeetingForm.tsx +++ b/src/app/(main)/my-voyage/[teamId]/sprints/components/forms/MeetingForm.tsx @@ -70,8 +70,7 @@ export default function MeetingForm() { timezone, }), meetingLink: validateTextInput({ - inputName: "Meeting Link", - required: true, + inputName: "Meeting link", isUrl: true, }), }); @@ -117,9 +116,18 @@ export default function MeetingForm() { timeZone: timezone, }); + const newData = + data.meetingLink === "" + ? { description: data.description, title: data.title } + : { + description: data.description, + title: data.title, + meetingLink: data.meetingLink, + }; + if (editMode) { const [res, error] = await editMeetingAction({ - ...data, + ...newData, dateTime, meetingId, sprintNumber, @@ -143,7 +151,7 @@ export default function MeetingForm() { setEditMeetingLoading(false); } } else { - const payload = { ...data, dateTime, teamId, sprintNumber }; + const payload = { ...newData, dateTime, teamId, sprintNumber }; const [res, error] = await addMeetingAction(payload); diff --git a/src/app/(main)/my-voyage/[teamId]/sprints/components/meetingOverview/MeetingOverview.tsx b/src/app/(main)/my-voyage/[teamId]/sprints/components/meetingOverview/MeetingOverview.tsx index 6b66806d..b2103cbe 100644 --- a/src/app/(main)/my-voyage/[teamId]/sprints/components/meetingOverview/MeetingOverview.tsx +++ b/src/app/(main)/my-voyage/[teamId]/sprints/components/meetingOverview/MeetingOverview.tsx @@ -34,6 +34,7 @@ export default function MeetingOverview({ className="w-full" >