Files
sentinel/static/app/components/modals/debugFileCustomRepository/appStoreConnect/stepOne.tsx
T
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

108 lines
2.9 KiB
TypeScript

import {Fragment} from 'react';
import {Alert} from 'sentry/components/alert';
import Textarea from 'sentry/components/forms/controls/textarea';
import FieldGroup from 'sentry/components/forms/fieldGroup';
import Input from 'sentry/components/input';
import ExternalLink from 'sentry/components/links/externalLink';
import {t, tct} from 'sentry/locale';
import type {StepOneData} from './types';
type Props = {
onSetStepOneData: (stepOneData: StepOneData) => void;
stepOneData: StepOneData;
};
function StepOne({stepOneData, onSetStepOneData}: Props) {
return (
<Fragment>
<Alert type="info">
{tct(
'Please enter the [docLink:App Store Connect API Key] details. The key needs to have the "Developer" role for Sentinel to discover the app builds.',
{
docLink: (
<ExternalLink href="https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api" />
),
}
)}
</Alert>
<FieldGroup
label={t('Issuer')}
inline={false}
error={stepOneData.errors?.issuer}
flexibleControlStateSize
stacked
required
>
<Input
type="text"
name="issuer"
placeholder={t('Issuer')}
value={stepOneData.issuer}
onChange={e =>
onSetStepOneData({
...stepOneData,
issuer: e.target.value,
errors: stepOneData.errors
? {...stepOneData.errors, issuer: undefined}
: undefined,
})
}
/>
</FieldGroup>
<FieldGroup
label={t('Key ID')}
inline={false}
error={stepOneData.errors?.keyId}
flexibleControlStateSize
stacked
required
>
<Input
type="text"
name="keyId"
placeholder={t('Key Id')}
value={stepOneData.keyId}
onChange={e =>
onSetStepOneData({
...stepOneData,
keyId: e.target.value,
errors: stepOneData.errors
? {...stepOneData.errors, keyId: undefined}
: undefined,
})
}
/>
</FieldGroup>
<FieldGroup
label={t('Private Key')}
inline={false}
flexibleControlStateSize
stacked
required
>
<Textarea
name="privateKey"
value={stepOneData.privateKey}
rows={5}
autosize
placeholder={
stepOneData.privateKey === undefined
? t('(Private Key unchanged)')
: '-----BEGIN PRIVATE KEY-----\n[PRIVATE-KEY]\n-----END PRIVATE KEY-----'
}
onChange={e =>
onSetStepOneData({
...stepOneData,
privateKey: e.target.value,
})
}
/>
</FieldGroup>
</Fragment>
);
}
export default StepOne;