feat: conditionally show contact us or report issue based on plan (#20629)

* feat: conditionally show contact us or report issue based on plan

Co-Authored-By: [email protected] <[email protected]>

* fix: update icon name to triangle-alert to fix type error

Co-Authored-By: [email protected] <[email protected]>

* fix: check specific plan type instead of isPaidUser flag

Co-Authored-By: [email protected] <[email protected]>

* fix: check userBillingData.valid to ensure billing plan is active

Co-Authored-By: [email protected] <[email protected]>

* fix: convert plan to lowercase before comparison

Co-Authored-By: [email protected] <[email protected]>

* fixup: dont show contact card for free platform users

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: amrit <[email protected]>
Co-authored-by: Ryukemeister <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-04-14 11:13:05 +00:00
1 parent 65abf4edc6
commit 70d29ab6fa
3 files changed
+33 -3

No files matched your search

+11
View File
@@ -104,4 +104,15 @@ export const helpCards: HelpCardInfo[] = [
child: "Schedule a call",
},
},
{
icon: "triangle-alert",
title: "Report issue",
description:
"You can submit a ticket on GitHub or upgrade your plan to receive real-time support with developer conferences",
variant: "basic",
actionButton: {
href: "https://github.com/calcom/cal.com/issues/new?template=platform.md",
child: "Open Issue",
},
},
];