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
feat: go to Assignment tab after creation and warn if existing without assigning #14882
base: main
Are you sure you want to change the base?
Conversation
@anikdhabal is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
Graphite Automations"Add community label" took an action on this PR • (05/05/24)1 label was added to this PR based on Keith Williams's automation. "Add consumer team as reviewer" took an action on this PR • (05/05/24)1 reviewer was added to this PR based on Keith Williams's automation. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job Anik! I confirm that functionality works as expected, but have some small refactor ideas below. Let me know what you think!
packages/features/eventtypes/components/CreateEventTypeDialog.tsx
Outdated
Show resolved
Hide resolved
@supalarry @Udit-takkar thanks for your reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work and thank you for the contribution! : )
It should only throw this modal when you go to leave the entire event type, not a tab within the event type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as requested changes so we can address @ciaranha's comment about the tab versus page.
@keithwillcode I've made the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uploading Screen Recording 2024-05-10 at 6.47.15 PM.mov…
You can navigate to other page without saving the hosts
Thanks for the review. I've fixed that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still sometimes don't see any modal when i navigate to any other page without assigning team members.
How to reproduce?
- Create a collective team event type
- Go to event setup tab and change location and click save
and then navigate to any other page by clicking on 'Bookings'
if ( | ||
eventType.hosts.length === 0 && | ||
!leaveWithoutAssigningHosts.current && | ||
(url === "/event-types" || paths[1] !== "event-types") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to show warning dialog only when navigating to a non /event-types
route, do we need the url === "/event-types"
check on line 214?
} = props; | ||
const router = useRouter(); | ||
return ( | ||
<Dialog open={isOpenAssignmentWarnDialog} onOpenChange={setIsOpenAssignmentWarnDialog}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure Lauris, that's a cool idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! Thank you Anik!
What does this PR do?
Fixes #14848