Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email ics file for pickup events #443

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

echang594
Copy link
Contributor

@echang594 echang594 commented May 15, 2024

Info

Closes #441.

Description

What changes did you make? List all distinct problems that this PR addresses. Explain any relevant
motivation or context.

  • Added calendar info for initial order confirmation and on rescheduled orders using ics package

Changes

Type of Change

  • Patch (non-breaking change/bugfix)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to not work as
    expected)
  • Documentation (A change to a README/description)
  • Continuous Integration/DevOps Change (Related to deployment steps, continuous integration
    workflows, linting, etc.)
  • Other: (Fill In)

If you've selected Patch, Minor, or Major as your change type, make sure to bump the version before merging in package.json!

Testing

I have tested that my changes fully resolve the linked issue ...

  • locally.
  • on the testing API/testing database.
  • with appropriate Postman routes. Screenshots are included below.

Checklist

  • I have performed a self-review of my own code.
  • I have followed the style guidelines of this project.
  • I have appropriately edited the API version in the package.json file.
  • My changes produce no new warnings.

Screenshots

Please include a screenshot of your Postman testing passing successfully.

Screenshot 2024-05-18 at 10 11 11 PM Screenshot 2024-05-18 at 10 13 34 PM

Copy link

Thanks for contributing!
If you've made changes to the API's functionality, please make sure to bump the package
version—see this guide to semantic versioning for details—and
document those changes as appropriate.

@echang594 echang594 linked an issue May 15, 2024 that may be closed by this pull request
Copy link
Member

@nik-dange nik-dange left a comment

Choose a reason for hiding this comment

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

Looks great to me, a much appreciated feature! What are your thoughts on adding location as a column to OrderPickupEventModel? We now support linking regular events to pickup events, so maybe on the frontend if it's linked they can just fill in that location but if it's unlinked the user can input a location. This way we can show it in the calendar invite as well.

@@ -903,6 +905,15 @@ export default class MerchStoreService {
};
}

private static toEventCalendarInfo(pickupEvent: OrderPickupEventModel): OrderPickupEventCalendarInfo {
return {
start: pickupEvent.start.getTime(),
Copy link
Member

Choose a reason for hiding this comment

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

What are your thoughts on adding location as a field to OrderPickupEvents?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After discussing, we've decided to add it and copy over the location from the linkedEvent if none is provided. One potential issue is that if the linkedEvent location updates, this field will not, however, we do not think this will be a big problem as the user will be notified through discord.

services/EmailService.ts Show resolved Hide resolved
@echang594 echang594 requested a review from nik-dange May 19, 2024 05:23
@sumeet-bansal sumeet-bansal removed their request for review September 13, 2024 01:12
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.

Email ics file for pickup events
2 participants