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
fix: save workflow button not visible on dev env #14910
fix: save workflow button not visible on dev env #14910
Conversation
@mhetreayush 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/07/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/07/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! 🙌 |
0cad9fd
to
6c939c1
Compare
@@ -277,7 +279,7 @@ function WorkflowPage() { | |||
} | |||
hideHeadingOnMobile | |||
heading={ | |||
session.data?.hasValidLicense && | |||
(IS_DEV || session.data?.hasValidLicense) && |
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.
We don't need the IS_DEV check. We an always show the save button, all we need is the banner
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.
This was added because:
- On the local environment, session.data?.hasValidLicense evaluates to
false
, hence making theheading
prop undefined. - The shell component only renders the CTA if the heading is defined.
- Hence, in order to pass in the heading, this check was added.
And wrapping the complete component inside the changes the UI, making it look like this:
If this is okay, we can remove the complete check: IS_DEV || session.data?.hasValidLicense
and render the save button regardless of the validLicense
Or
We can just remove the hasValidLicense check.
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.
@CarinaWolli Let me know what you think about this.
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 thing
@CarinaWolli Fixed with 557ae4c Also fixed it on the /workflows page:
|
653a6c2
to
5dacd9e
Compare
Let me know if the changes look good @CarinaWolli |
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.
Changes look good now, thank you 🙏
What does this PR do?
This PR renders the "Save" button in edit/create-workflow flow on the development environment.
Fixes #14909
Type of change
How should this be tested?
Mandatory Tasks
Checklist