Skip to content

#4238 reschedule meetings#4257

Open
glickgNU wants to merge 13 commits into
developfrom
#4238-reschedule-meetings
Open

#4238 reschedule meetings#4257
glickgNU wants to merge 13 commits into
developfrom
#4238-reschedule-meetings

Conversation

@glickgNU
Copy link
Copy Markdown
Contributor

@glickgNU glickgNU commented Jun 2, 2026

Changes

The creator of an event can now reschedule an event after is it scheduled.
This change is then notified on slack to the relevant users.

Additional change: Tooltip notifications added to icons in an event popup.

Notes

Any other notes go here

Test Cases

  • Rescheduling an event (regardless of being recurring or not) is moved to the new time.
  • The previous time occupied by the event is given back to the user.

Screenshots

Rescheduling on event popup
image

Confirming Reschedule
image
image

To Do

Any remaining things that need to get done

  • item 1
  • ...

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4238

Copy link
Copy Markdown
Contributor

@staysgt staysgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far! Left a few comments, and one more thing:

  • When I go to reschedule an event, it should show in the same time range as originally selected to reschedule it to. For example, when I originally create the event, I select the time range as June 2-8. When I schedule the event for June 5 and then go to reschedule it, it only lets me reschedule in the range June 5-11, rather than the original range of June 2-8.

Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/backend/src/services/calendar.services.ts Outdated
Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/frontend/src/pages/CalendarPage/Components/ScheduleEventModal.tsx Outdated
@glickgNU
Copy link
Copy Markdown
Contributor Author

glickgNU commented Jun 4, 2026

Looks good so far! Left a few comments, and one more thing:

  • When I go to reschedule an event, it should show in the same time range as originally selected to reschedule it to. For example, when I originally create the event, I select the time range as June 2-8. When I schedule the event for June 5 and then go to reschedule it, it only lets me reschedule in the range June 5-11, rather than the original range of June 2-8.

@glickgNU glickgNU closed this Jun 4, 2026
@glickgNU
Copy link
Copy Markdown
Contributor Author

glickgNU commented Jun 4, 2026

To do the fixed day range, I added a field to event called "previousDate" to see if there was an original time scheduled for the event that then is used when rescheduling

@staysgt staysgt reopened this Jun 5, 2026
Copy link
Copy Markdown
Contributor

@staysgt staysgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the addition of previousDate into the schema, I think that we can instead just have initialDateScheduled keep track of this. This would work by updating the scheduleEvent service function so that initialDateScheduled defaults to being initialDateScheduled and falls back to startTime if there is no initialDateScheduled. And then you'll also need to update availabilityUrl in EventClickPopup.tsx to correctly show the initialDateScheduled date in the url, which is what it uses to populate the days shown in availability view

Comment thread src/backend/src/utils/slack.utils.ts Outdated
Comment thread src/frontend/src/pages/CalendarPage/Components/EventAvailabilityPage.tsx Outdated
@glickgNU
Copy link
Copy Markdown
Contributor Author

glickgNU commented Jun 5, 2026

I added the changes. I think the line const initialDate = event.initialDateScheduled || displayDate || new Date(); that I added/changed could be up for change as it does change the priority it had before.

Copy link
Copy Markdown
Contributor

@staysgt staysgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, just a few more comments!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we got rid of this you can delete this file and the folder its in

Comment thread src/backend/src/services/calendar.services.ts Outdated
Comment thread src/frontend/src/pages/CalendarPage/EventClickPopup.tsx
Copy link
Copy Markdown
Contributor

@staysgt staysgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good job! One more small thing

Comment thread src/backend/src/utils/slack.utils.ts Outdated
scheduledOrRescheduled +
` for *${drTime}* ${location} by ${drSubmitter}`;
const docLink = event.questionDocumentLink ? `<${event.questionDocumentLink}|Doc Link>` : '';
const threadMsg = `${mentionPrefix}This event has been Scheduled! \n` + docLink;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 519 can you update threadMsg to say scheduled/rescheduled depending on which it is

glickgNU added 2 commits June 6, 2026 10:06
Refactor thread message construction for clarity.
Copy link
Copy Markdown
Contributor

@staysgt staysgt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@staysgt staysgt requested a review from wavehassman June 6, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maintenance] - Reschedule Meetings

2 participants