Skip to content

Commit

Permalink
chore: Revert the offsite support message (#26380)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zach Waterfield <[email protected]>
  • Loading branch information
3 people authored Nov 25, 2024
1 parent 75765f9 commit 6909050
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import { useActions, useValues } from 'kea'
import { SupportForm } from 'lib/components/Support/SupportForm'
import { getPublicSupportSnippet, supportLogic } from 'lib/components/Support/supportLogic'
import React from 'react'
import { billingLogic } from 'scenes/billing/billingLogic'
import { organizationLogic } from 'scenes/organizationLogic'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'

import { ProductKey, SidePanelTab } from '~/types'
import { AvailableFeature, ProductKey, SidePanelTab } from '~/types'

import AlgoliaSearch from '../../components/AlgoliaSearch'
import { SidePanelPaneHeader } from '../components/SidePanelPaneHeader'
Expand Down Expand Up @@ -95,7 +96,7 @@ const Section = ({ title, children }: { title: string; children: React.ReactNode
}

const SupportFormBlock = ({ onCancel }: { onCancel: () => void }): JSX.Element => {
// const { supportPlans, hasSupportAddonPlan } = useValues(billingLogic)
const { supportPlans, hasSupportAddonPlan } = useValues(billingLogic)

return (
<Section title="Email an engineer">
Expand Down Expand Up @@ -124,16 +125,14 @@ const SupportFormBlock = ({ onCancel }: { onCancel: () => void }): JSX.Element =
<br />
<div className="grid grid-cols-2 border rounded [&_>*]:px-2 [&_>*]:py-0.5 mb-4 bg-bg-light pt-4">
<div className="col-span-full flex justify-between border-b bg-bg-white py-1">
<div>
<strong>We're making improvements:</strong> Our team is attending an offsite so we can make
long-term enhancements. We're working different hours, so non-urgent inquiries without priority
support may experience a slight delay. We’ll be back to full speed next week!
</div>
{/* If placing a support message, replace the line below with explanation */}
<strong>Avg support response times</strong>
<div>
<Link to={urls.organizationBilling([ProductKey.PLATFORM_AND_SUPPORT])}>Explore options</Link>
</div>
</div>
{/* {supportPlans?.map((plan) => {
{/* If placing a support message, comment out (don't remove) the section below */}
{supportPlans?.map((plan) => {
// If they have an addon plan, only show the addon plan
const currentPlan = plan.current_plan && (!hasSupportAddonPlan || plan.plan_key?.includes('addon'))
return (
Expand All @@ -148,12 +147,11 @@ const SupportFormBlock = ({ onCancel }: { onCancel: () => void }): JSX.Element =
)}
</div>
<div className={currentPlan ? 'font-bold' : undefined}>
// TODO(@zach): remove fallback after updated plans w/ support levels are shipped
{plan.features.find((f) => f.key == AvailableFeature.SUPPORT_RESPONSE_TIME)?.note}
</div>
</React.Fragment>
)
})} */}
})}
</div>
</Section>
)
Expand Down

0 comments on commit 6909050

Please sign in to comment.