Skip to content

Commit

Permalink
for priority only show a big ticket button
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Mar 27, 2024
1 parent ac94d56 commit 8c48587
Showing 1 changed file with 126 additions and 104 deletions.
230 changes: 126 additions & 104 deletions frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelSupport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,73 +178,91 @@ export const SidePanelSupport = (): JSX.Element => {
</ul>
</Section>

<Section title="Ask the community">
<p>
Questions about features, how to's, or use cases? There are thousands of discussions in our
community forums.
</p>
<LemonButton
type="primary"
fullWidth
center
to="https://posthog.com/questions"
targetBlank
className="mt-2"
>
Ask a question
</LemonButton>
</Section>

<Section title="Share feedback">
<ul>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://github.com/posthog/posthog/issues"
icon={<IconBug />}
targetBlank
>
Report a bug
</LemonButton>
</li>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://posthog.com/wip"
icon={<IconHelmet />}
targetBlank
>
See what we're building
</LemonButton>
</li>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://posthog.com/roadmap"
icon={<IconMap />}
targetBlank
>
Vote on our roadmap
</LemonButton>
</li>
<li>
{hasAvailableFeature(AvailableFeature.PRIORITY_SUPPORT) ? (
<Section title="Open a ticket">
<p>Can't find what you need in the docs? Send us an email.</p>
<LemonButton
type="primary"
fullWidth
center
onClick={() => openEmailForm()}
targetBlank
className="mt-2"
>
Open a ticket
</LemonButton>
</Section>
) : (
<>
<Section title="Ask the community">
<p>
Questions about features, how to's, or use cases? There are thousands of discussions
in our community forums.
</p>
<LemonButton
type="secondary"
status="alt"
to="https://github.com/posthog/posthog/issues"
icon={<IconFeatures />}
type="primary"
fullWidth
center
to="https://posthog.com/questions"
targetBlank
className="mt-2"
>
Request a feature
Ask a question
</LemonButton>
</li>
</ul>
</Section>
</Section>
<Section title="Share feedback">
<ul>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://github.com/posthog/posthog/issues"
icon={<IconBug />}
targetBlank
>
Report a bug
</LemonButton>
</li>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://posthog.com/wip"
icon={<IconHelmet />}
targetBlank
>
See what we're building
</LemonButton>
</li>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://posthog.com/roadmap"
icon={<IconMap />}
targetBlank
>
Vote on our roadmap
</LemonButton>
</li>
<li>
<LemonButton
type="secondary"
status="alt"
to="https://github.com/posthog/posthog/issues"
icon={<IconFeatures />}
targetBlank
>
Request a feature
</LemonButton>
</li>
</ul>
</Section>
</>
)}

{hasAvailableFeature(AvailableFeature.EMAIL_SUPPORT) ? (
{hasAvailableFeature(AvailableFeature.EMAIL_SUPPORT) &&
!hasAvailableFeature(AvailableFeature.PRIORITY_SUPPORT) ? (
<Section title="More options">
{isEmailFormOpen ? (
<SupportFormBlock onCancel={() => closeEmailForm()} />
Expand All @@ -258,49 +276,53 @@ export const SidePanelSupport = (): JSX.Element => {
)}
</Section>
) : (
<Section title="Contact support">
<p>
Due to our large userbase, we're unable to offer email support to organizations on the
free plan. But we still want to help!
</p>
!hasAvailableFeature(AvailableFeature.EMAIL_SUPPORT) && (
<Section title="Contact support">
<p>
Due to our large userbase, we're unable to offer email support to organizations on
the free plan. But we still want to help!
</p>

<ol className="pl-5">
<li>
<strong className="block">Search our docs</strong>
<p>
We're constantly updating our docs and tutorials to provide the latest
information about installing, using, and troubleshooting.
</p>
</li>
<li>
<strong className="block">Ask a community question</strong>
<p>
Many common (and niche) questions have already been resolved by users just like
you. (Our own engineers also keep an eye on the questions as they have time!){' '}
<Link to="https://posthog.com/question" className="block">
Search community questions or ask your own.
</Link>
</p>
</li>
<li>
<strong className="block">
Explore <Link to="https://posthog.com/partners">PostHog partners</Link>
</strong>
<p>
Third-party providers can help with installation and debugging of data issues.
</p>
</li>
<li>
<strong className="block">Upgrade to a paid plan</strong>
<p>
Our paid plans offer email support.{' '}
<Link to={urls.organizationBilling([ProductKey.PLATFORM_AND_SUPPORT])}>
Explore options.
</Link>
</p>
</li>
</ol>
</Section>
<ol className="pl-5">
<li>
<strong className="block">Search our docs</strong>
<p>
We're constantly updating our docs and tutorials to provide the latest
information about installing, using, and troubleshooting.
</p>
</li>
<li>
<strong className="block">Ask a community question</strong>
<p>
Many common (and niche) questions have already been resolved by users just
like you. (Our own engineers also keep an eye on the questions as they have
time!){' '}
<Link to="https://posthog.com/question" className="block">
Search community questions or ask your own.
</Link>
</p>
</li>
<li>
<strong className="block">
Explore <Link to="https://posthog.com/partners">PostHog partners</Link>
</strong>
<p>
Third-party providers can help with installation and debugging of data
issues.
</p>
</li>
<li>
<strong className="block">Upgrade to a paid plan</strong>
<p>
Our paid plans offer email support.{' '}
<Link to={urls.organizationBilling([ProductKey.PLATFORM_AND_SUPPORT])}>
Explore options.
</Link>
</p>
</li>
</ol>
</Section>
)
)}
</div>
</div>
Expand Down

0 comments on commit 8c48587

Please sign in to comment.