Files
zeekayandHanzo Dev f888991a7a drop the Sentry wordmark from the react app
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]>
2026-08-10 18:01:22 -07:00

68 lines
2.0 KiB
TypeScript

import {motion} from 'framer-motion';
import LoadingIndicator from 'sentry/components/loadingIndicator';
import {IconFile} from 'sentry/icons/iconFile';
import {t} from 'sentry/locale';
import testableTransition from 'sentry/utils/testableTransition';
import ContinueButton from 'sentry/views/relocation/components/continueButton';
import RelocationCodeBlock from 'sentry/views/relocation/components/relocationCodeBlock';
import StepHeading from 'sentry/views/relocation/components/stepHeading';
import Wrapper from 'sentry/views/relocation/components/wrapper';
import type {StepProps} from './types';
export function PublicKey({publicKey, onComplete}: StepProps) {
const handleContinue = (event: any) => {
event.preventDefault();
onComplete();
};
const loaded = (
<motion.div
transition={testableTransition()}
variants={{
initial: {y: 30, opacity: 0},
animate: {y: 0, opacity: 1},
exit: {opacity: 0},
}}
>
<p>
{t(
"To do so, you'll need to save the following public key to a file accessible from wherever your self-hosted repository is currently installed. You'll need to have this public key file available for the next step."
)}
</p>
<RelocationCodeBlock
dark
filename="key.pub"
icon={<IconFile />}
hideCopyButton={false}
>
{publicKey}
</RelocationCodeBlock>
<ContinueButton priority="primary" type="submit" onClick={handleContinue} />
</motion.div>
);
const unloaded = (
<motion.div
transition={testableTransition()}
variants={{
initial: {y: 30, opacity: 0},
animate: {y: 0, opacity: 1},
exit: {opacity: 0},
}}
>
<LoadingIndicator />
</motion.div>
);
return (
<Wrapper data-test-id="public-key">
<StepHeading step={2}>{t("Save Sentinel's public key to your machine")}</StepHeading>
{publicKey ? loaded : unloaded}
</Wrapper>
);
}
export default PublicKey;