mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +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]>
73 lines
1.8 KiB
TypeScript
73 lines
1.8 KiB
TypeScript
import {Fragment} from 'react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import {t} from 'sentry/locale';
|
|
import type {IntegrationProvider, PlatformKey} from 'sentry/types';
|
|
|
|
type Props = {
|
|
provider: IntegrationProvider;
|
|
isOnboarding?: boolean;
|
|
platform?: PlatformKey;
|
|
};
|
|
|
|
export default function PostInstallCodeSnippet({
|
|
provider,
|
|
platform,
|
|
isOnboarding,
|
|
}: Props) {
|
|
// currently supporting both Python and Node
|
|
const token_punctuation: string = platform === 'python-awslambda' ? '()' : '();';
|
|
return (
|
|
<div>
|
|
<p>
|
|
{t(
|
|
"Congrats, you just installed the %s integration! Now that it's is installed, the next time you trigger an error it will go to your Sentinel.",
|
|
provider.name
|
|
)}
|
|
</p>
|
|
<p>
|
|
{t(
|
|
'This snippet includes an intentional error, so you can test that everything is working as soon as you set it up:'
|
|
)}
|
|
</p>
|
|
<div>
|
|
<CodeWrapper>
|
|
<code>
|
|
<TokenFunction>myUndefinedFunction</TokenFunction>
|
|
<TokenPunctuation>{token_punctuation}</TokenPunctuation>)
|
|
</code>
|
|
</CodeWrapper>
|
|
</div>
|
|
{isOnboarding && (
|
|
<Fragment>
|
|
<p>
|
|
{t(
|
|
"If you're new to Sentinel, use the email alert to access your account and complete a product tour."
|
|
)}
|
|
</p>
|
|
<p>
|
|
{t(
|
|
"If you're an existing user and have disabled alerts, you won't receive this email."
|
|
)}
|
|
</p>
|
|
</Fragment>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const CodeWrapper = styled('pre')`
|
|
padding: 1em;
|
|
overflow: auto;
|
|
background: #251f3d;
|
|
font-size: 15px;
|
|
`;
|
|
|
|
const TokenFunction = styled('span')`
|
|
color: #7cc5c4;
|
|
`;
|
|
|
|
const TokenPunctuation = styled('span')`
|
|
color: #b3acc1;
|
|
`;
|