mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
FSL-1.0-Apache-2.0 grants us the code, not the name. "Sentry" is Functional Software's trademark, so every place the running app says it to a user -- page titles, onboarding, empty states, toasts, settings copy, the self-hosted footer -- now says Sentinel. Attribution is the other half of the deal and stays untouched: upstream copyright headers, LICENSE, NOTICE. So does anything where the mark is a fact rather than a brand -- @sentry/* packages, sentry-cli, the wizard and bundler plugins, docs.sentry.io, the whole gettingStartedDocs tree. Renaming those would leave instructions that no longer work. Nothing structural moved. No import, identifier, route path, feature flag, API field or test id changed; the diff is 312 lines in and 312 out. Colocated specs were updated in lockstep with the copy they assert. Marketing and community links point at hanzo.ai, only where a real page exists to point at. Co-authored-by: Hanzo Dev <[email protected]>
57 lines
1.9 KiB
TypeScript
57 lines
1.9 KiB
TypeScript
import {useEffect} from 'react';
|
|
|
|
import ApiForm from 'sentry/components/forms/apiForm';
|
|
import FieldWrapper from 'sentry/components/forms/fieldGroup/fieldWrapper';
|
|
import RadioField from 'sentry/components/forms/fields/radioField';
|
|
import ExternalLink from 'sentry/components/links/externalLink';
|
|
import NarrowLayout from 'sentry/components/narrowLayout';
|
|
import {t, tct} from 'sentry/locale';
|
|
|
|
type Props = {
|
|
onSubmitSuccess?: () => void;
|
|
};
|
|
|
|
function NewsletterConsent({onSubmitSuccess}: Props) {
|
|
useEffect(() => {
|
|
document.body.classList.add('auth');
|
|
|
|
return () => document.body.classList.remove('auth');
|
|
}, []);
|
|
|
|
// NOTE: the text here is duplicated within ``RegisterForm`` on the backend
|
|
return (
|
|
<NarrowLayout>
|
|
<ApiForm
|
|
apiMethod="POST"
|
|
apiEndpoint="/users/me/subscriptions/"
|
|
onSubmitSuccess={onSubmitSuccess}
|
|
submitLabel={t('Continue')}
|
|
>
|
|
<FieldWrapper stacked={false} hasControlState={false}>
|
|
{t('Pardon the interruption, we just need to get a quick answer from you.')}
|
|
</FieldWrapper>
|
|
<RadioField
|
|
name="subscribed"
|
|
choices={[
|
|
['true', t('Yes, I would like to receive updates via email')],
|
|
['false', t("No, I'd prefer not to receive these updates")],
|
|
]}
|
|
label={t('Email Updates')}
|
|
required
|
|
inline={false}
|
|
help={tct(
|
|
`We'd love to keep you updated via email with product and feature
|
|
announcements, promotions, educational materials, and events. Our updates
|
|
focus on relevant information, and we'll never sell your data to third
|
|
parties. See our [link:Privacy Policy] for more details.
|
|
`,
|
|
{link: <ExternalLink href="https://hanzo.ai/privacy" />}
|
|
)}
|
|
/>
|
|
</ApiForm>
|
|
</NarrowLayout>
|
|
);
|
|
}
|
|
|
|
export default NewsletterConsent;
|