Closed Dschoordsch closed 2 months ago
The changes across multiple files focus on simplifying the handling of recurrence settings by removing the RecurrenceSettingsInput
type and directly using name
and rrule
parameters. This modification affects various components, mutations, and tests by updating the function signatures and parameters to reflect this new approach.
Files | Change Summary |
---|---|
…/ActivityLibrary/ActivityDetailsSidebar.tsx , …/ActivityLibrary/ScheduleMeetingButton.tsx |
Updated the handleStartActivity function to accept name and rrule instead of RecurrenceSettingsInput . |
…/Recurrence/EndRecurringMeetingModal.tsx , …/Recurrence/UpdateRecurrenceSettingsModal.tsx |
Modified the structure of UpdateRecurrenceSettingsMutation to directly pass name and rrule instead of recurrenceSettings object. |
…/ScheduleDialog.tsx |
Changed the onStartActivity function signature to use name , rrule , and gcalInput directly. |
…/mutations/StartRetrospectiveMutation.ts , …/mutations/StartTeamPromptMutation.ts |
Updated mutation parameters to replace recurrenceSettings with name and rrule . |
…/mutations/UpdateRecurrenceSettingsMutation.ts |
Changed the mutation function's signature to use name and rrule instead of recurrenceSettings . |
…/__tests__/startRetrospective.test.ts |
Updated mutation parameters in tests and added a test for naming a single retro. Changed the default name for retrospectives. |
…/graphql/public/types/CreateGcalEventInput.ts |
Removed the title field from the CreateGcalEventInput GraphQL input object type. |
…/dataloader/customLoaderMakers.ts |
Added a new exported function meetingCount to calculate the count of meetings based on team ID and meeting type. |
…/graphql/mutations/helpers/safeCreateRetrospective.ts , …/graphql/public/mutations/startRetrospective.ts |
Required the name parameter and adjusted the logic for generating meeting names. Updated resolver to accept name , rrule , and gcalInput parameters, fetching additional data concurrently and modifying parameters for meeting creation and Google Calendar event handling. |
packages/server/graphql/mutations/helpers/safeCreateRetrospective.ts (1)
``` Learnt from: Dschoordsch PR: ParabolInc/parabol#9928 File: packages/server/graphql/mutations/helpers/safeCreateRetrospective.ts:19-19 Timestamp: 2024-07-08T08:50:33.211Z Learning: When verifying the presence of parameters in function calls, ensure to use a sufficiently large context size to capture the complete function call. ```
packages/client/components/ScheduleDialog.tsx (2)
`34-34`: **Update the `onStartActivity` function signature.** The function signature now includes `name` and `rrule`. Ensure that these parameters are correctly handled in the function implementation. --- `101-117`: **Verify the construction and validation of `name`.** The `handleSubmit` function constructs the `name` variable and validates it before passing it to `onStartActivity`. Ensure that `name` is correctly validated and propagated.packages/client/components/Recurrence/RecurrenceSettings.tsx (1)
`258-258`: **Verify the display of the next meeting name.** The `title` parameter is used to show the next meeting name in the description. Ensure that the `title` is correctly handled and displayed.packages/server/dataloader/customLoaderMakers.ts (1)
`862-884`: **Ensure proper implementation and usage of `meetingCount`.** The `meetingCount` function calculates the count of meetings based on team ID and meeting type. Ensure that the function is correctly implemented and used. Consider adding error handling and logging if necessary.
Fixes #9928
Make the meeting name a separate parameter so it can be used for the meeting, meeting series and gcal event. This makes everything more consistent.
Demo
https://www.loom.com/share/63b49765c63b4575a59838ab4fc8a402?sid=5fd46150-274e-4b70-baad-08d12521516a
Testing scenarios
[Please list all the testing scenarios a reviewer has to check before approving the PR]
[ ] Scenario A
[ ] Scenario B
Final checklist
Summary by CodeRabbit
New Features
name
andrrule
parameters for scheduling and starting activities.Refactor
RecurrenceSettingsInput
withname
andrrule
parameters across various components and mutations.Bug Fixes