The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add support page to the website (#27459)
Abdul Rahmand1d0c9638759
diff --git a/packages/twenty-website/src/app/[locale]/(site)/support/page.tsx b/packages/twenty-website/src/app/[locale]/(site)/support/page.tsxnew file mode 100644index 00000000000..14c5d60434e--- /dev/null+++ b/packages/twenty-website/src/app/[locale]/(site)/support/page.tsx@@ -0,0 +1,51 @@+import { msg } from '@lingui/core/macro';++import { getCommunityStats } from '@/platform/community';+import {+ getRouteI18n,+ type LocaleRouteParams,+} from '@/platform/i18n/get-route-i18n';+import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { resolveLocaleParam } from '@/platform/i18n/resolve-locale-param';+import {+ buildBreadcrumbListJsonLd,+ buildRouteMetadata,+ JsonLd,+} from '@/platform/seo';+import { LegalDocument, SupportDocument } from '@/sections/legal';+import { Menu } from '@/sections/menu';++export const generateMetadata = buildRouteMetadata('support');++export default async function SupportPage({+ params,+}: {+ params: Promise<LocaleRouteParams>;+}) {+ const [, communityStats] = await Promise.all([+ getRouteI18n(params),+ getCommunityStats(),+ ]);+ const i18n = getServerI18n();+ const locale = resolveLocaleParam((await params).locale);++ return (+ <>+ <JsonLd+ data={buildBreadcrumbListJsonLd(+ [+ { name: 'Home', path: '/' },+ { name: 'Support', path: '/support' },+ ],+ locale,+ )}+ />+ <Menu communityStats={communityStats} />+ <main>+ <LegalDocument title={i18n._(msg`Support`)}>+ <SupportDocument />+ </LegalDocument>+ </main>+ </>+ );+}diff --git a/packages/twenty-website/src/platform/routing/static-website-routes.ts b/packages/twenty-website/src/platform/routing/static-website-routes.tsindex 18f027ca96d..7e49438f03d 100644--- a/packages/twenty-website/src/platform/routing/static-website-routes.ts+++ b/packages/twenty-website/src/platform/routing/static-website-routes.ts@@ -156,6 +156,15 @@ export const STATIC_WEBSITE_ROUTES: readonly WebsiteRoute[] = [priority: 0.3,title: msg`Privacy Policy | Twenty`,},+ {+ changeFrequency: 'yearly',+ description: msg`Get help with Twenty, whether you run it on our cloud or host it yourself, including the Twenty app for Slack.`,+ id: 'support',+ indexed: true,+ path: '/support',+ priority: 0.3,+ title: msg`Support | Twenty`,+ },{changeFrequency: 'yearly',description: msg`The terms governing your use of Twenty and its open source CRM services.`,diff --git a/packages/twenty-website/src/platform/routing/website-route.ts b/packages/twenty-website/src/platform/routing/website-route.tsindex da04c713165..b093e86b8ac 100644--- a/packages/twenty-website/src/platform/routing/website-route.ts+++ b/packages/twenty-website/src/platform/routing/website-route.ts@@ -20,6 +20,7 @@ export type WebsiteRouteId =| 'privacyPolicy'| 'product'| 'releases'+ | 'support'| 'terms'| 'whyTwenty';diff --git a/packages/twenty-website/src/platform/site-urls.ts b/packages/twenty-website/src/platform/site-urls.tsindex 482c485f083..37bb100b72e 100644--- a/packages/twenty-website/src/platform/site-urls.ts+++ b/packages/twenty-website/src/platform/site-urls.ts@@ -11,6 +11,7 @@ export const SITE_URLS: Record<| 'docsSelfHostLicense'| 'docsUserGuide'| 'github'+ | 'githubIssues'| 'linkedin'| 'trustCenter'| 'x',@@ -29,6 +30,7 @@ export const SITE_URLS: Record<'https://docs.twenty.com/user-guide/billing/capabilities/pricing-plans#get-an-organization-key',docsUserGuide: 'https://docs.twenty.com/user-guide/introduction',github: 'https://github.com/twentyhq/twenty',+ githubIssues: 'https://github.com/twentyhq/twenty/issues',linkedin: 'https://www.linkedin.com/company/twenty',trustCenter: 'https://trust.twenty.com',x: 'https://x.com/twentycrm',diff --git a/packages/twenty-website/src/sections/legal/SupportDocument.tsx b/packages/twenty-website/src/sections/legal/SupportDocument.tsxnew file mode 100644index 00000000000..e752fd02161--- /dev/null+++ b/packages/twenty-website/src/sections/legal/SupportDocument.tsx@@ -0,0 +1,78 @@+import { LocalizedLink } from '@/platform/i18n/LocalizedLink';+import { SITE_URLS } from '@/platform/site-urls';+import { ExternalLink } from '@/ui';++export function SupportDocument() {+ return (+ <>+ <p>+ Need help with Twenty? Here’s how to reach us, whether+ you’re on Twenty Cloud or hosting it yourself.+ </p>++ <h2>Getting help</h2>+ <p>+ You don’t need a Twenty account to contact us. Email{' '}+ <a href="mailto:[email protected]">[email protected]</a> and+ we’ll get back to you.+ </p>++ <h3>Twenty Cloud</h3>+ <p>+ If you’re on{' '}+ <ExternalLink href={SITE_URLS.appWelcome}>Twenty Cloud</ExternalLink>,+ open Settings and select Support to reach us, or email{' '}+ <a href="mailto:[email protected]">[email protected]</a> with your+ workspace URL so we can find your account.+ </p>++ <h3>Self-hosted</h3>+ <p>+ If you host Twenty yourself, start with the{' '}+ <ExternalLink href={SITE_URLS.docsSelfHost}>+ self-hosting documentation+ </ExternalLink>+ . For questions and bug reports, email{' '}+ <a href="mailto:[email protected]">[email protected]</a>, open an+ issue on{' '}+ <ExternalLink href={SITE_URLS.githubIssues}>GitHub</ExternalLink>, or+ ask the community on{' '}+ <ExternalLink href={SITE_URLS.discord}>Discord</ExternalLink>.+ </p>++ <h2>Reporting a problem</h2>+ <p>When you report a problem, tell us:</p>+ <ul>+ <li>+ Whether you’re on Twenty Cloud or self-hosted (and the version,+ if self-hosted).+ </li>+ <li>+ Your workspace URL, and the Slack workspace if the issue is with the+ Slack app.+ </li>+ <li>What you expected to happen and what happened instead.</li>+ <li>The steps to reproduce it.</li>+ <li>When it happened, including your timezone.</li>+ <li>Any screenshots or error messages.</li>+ </ul>+ <p>+ <strong>+ Remove passwords, API keys, tokens, payment details, and any+ confidential information+ </strong>{' '}+ before sending screenshots or logs.+ </p>++ <h2>Privacy and terms</h2>+ <p>+ See our{' '}+ <LocalizedLink href="/privacy-policy">Privacy Policy</LocalizedLink> and{' '}+ <LocalizedLink href="/terms">Terms of Service</LocalizedLink> for how we+ handle your data and the terms that govern your use of Twenty. For+ security disclosures, see our{' '}+ <ExternalLink href={SITE_URLS.trustCenter}>Trust Center</ExternalLink>.+ </p>+ </>+ );+}diff --git a/packages/twenty-website/src/sections/legal/index.ts b/packages/twenty-website/src/sections/legal/index.tsindex 6941c5df59b..1270a17188b 100644--- a/packages/twenty-website/src/sections/legal/index.ts+++ b/packages/twenty-website/src/sections/legal/index.ts@@ -1,3 +1,4 @@export { LegalDocument } from './LegalDocument';export { PrivacyPolicyDocument } from './PrivacyPolicyDocument';+export { SupportDocument } from './SupportDocument';export { TermsDocument } from './TermsDocument';