Skip to content

Manage Link showing for organisers#3037

Merged
pumfleet merged 2 commits intomainfrom
email-manage-event
Jun 12, 2022
Merged

Manage Link showing for organisers#3037
pumfleet merged 2 commits intomainfrom
email-manage-event

Conversation

@sean-brydon
Copy link
Member

What does this PR do?

This PR allows the organisers/attendee[0] to be given the option to manage the event - reschedule/cancel

Also hides info field if its an empty string. We were getting headings showing with no content (additional notes)

Fixes # (issue)

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@vercel
Copy link

vercel bot commented Jun 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Jun 12, 2022 at 3:30PM (UTC)
3 Ignored Deployments
Name Status Preview Updated
docs ⬜️ Ignored (Inspect) Jun 12, 2022 at 3:30PM (UTC)
swagger ⬜️ Ignored (Inspect) Jun 12, 2022 at 3:30PM (UTC)
ui ⬜️ Ignored (Inspect) Jun 12, 2022 at 3:30PM (UTC)

@sean-brydon sean-brydon requested a review from zomars June 10, 2022 14:39
lineThrough?: boolean;
}) => {
if (!props.description) return null;
if (!props.description || props.description=="") return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Some cases like additionlNotes are set to "" and was causing a random header to appear in the email field

</p>
</div>
);
if(props.attendee.email === props.calEvent.attendees[0].email || props.calEvent.organizer.email === props.attendee.email ){
Copy link
Member Author

Choose a reason for hiding this comment

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

I switch this if statement cause I couldn't for the life of me to get it to work and I'm not sure why :S

Copy link
Contributor

@zomars zomars Jun 10, 2022

Choose a reason for hiding this comment

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

Let's figure out why and take the learnings instead of just patching

Copy link
Contributor

@pumfleet pumfleet 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 to me

@pumfleet pumfleet enabled auto-merge (squash) June 12, 2022 15:22
@pumfleet pumfleet merged commit ad4bcfa into main Jun 12, 2022
@pumfleet pumfleet deleted the email-manage-event branch June 12, 2022 15:33
@zomars
Copy link
Contributor

zomars commented Jun 12, 2022

It wasn't ready to merge we found out some quirks on emails @baileypumfleet

@zomars zomars mentioned this pull request Jun 15, 2022
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.

3 participants