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

117 lines
3.3 KiB
TypeScript

import {OrganizationFixture} from 'sentry-fixture/organization';
import {initializeOrg} from 'sentry-test/initializeOrg';
import {render, screen} from 'sentry-test/reactTestingLibrary';
import OrganizationStore from 'sentry/stores/organizationStore';
import PageFiltersStore from 'sentry/stores/pageFiltersStore';
import ProjectsStore from 'sentry/stores/projectsStore';
import OrganizationLayout from 'sentry/views/organizationLayout';
jest.mock(
'sentry/components/sidebar',
() =>
function () {
return <div />;
}
);
describe('OrganizationLayout', function () {
const {routerContext} = initializeOrg();
beforeEach(function () {
OrganizationStore.reset();
ProjectsStore.reset();
PageFiltersStore.reset();
MockApiClient.clearMockResponses();
MockApiClient.addMockResponse({
url: '/organizations/org-slug/broadcasts/',
body: [],
});
MockApiClient.addMockResponse({
url: '/organizations/org-slug/environments/',
body: [],
});
});
describe('deletion states', () => {
it('should render a restoration prompt', async function () {
const organization = OrganizationFixture({
status: {
id: 'pending_deletion',
name: 'pending deletion',
},
});
OrganizationStore.onUpdate(organization);
render(
<OrganizationLayout>
<div />
</OrganizationLayout>,
{context: routerContext, organization}
);
expect(await screen.findByText('Deletion Scheduled')).toBeInTheDocument();
expect(screen.getByLabelText('Restore Organization')).toBeInTheDocument();
expect(
screen.getByText(
'Would you like to cancel this process and restore the organization back to the original state?'
)
).toBeInTheDocument();
});
it('should render a restoration prompt without action for members', async function () {
const organization = OrganizationFixture({
access: [],
status: {
id: 'pending_deletion',
name: 'pending deletion',
},
});
OrganizationStore.onUpdate(organization);
render(
<OrganizationLayout>
<div />
</OrganizationLayout>,
{context: routerContext, organization}
);
expect(await screen.findByText('Deletion Scheduled')).toBeInTheDocument();
const mistakeText = screen.getByText(
'If this is a mistake, contact an organization owner and ask them to restore this organization.'
);
expect(mistakeText).toBeInTheDocument();
expect(screen.queryByLabelText('Restore Organization')).not.toBeInTheDocument();
});
});
it('should render a deletion in progress prompt', async function () {
const organization = OrganizationFixture({
status: {
id: 'deletion_in_progress',
name: 'deletion in progress',
},
});
OrganizationStore.onUpdate(organization);
render(
<OrganizationLayout>
<div />
</OrganizationLayout>,
{context: routerContext, organization}
);
const inProgress = await screen.findByText(
'currently in the process of being deleted from Sentinel.',
{exact: false}
);
expect(inProgress).toBeInTheDocument();
expect(screen.queryByLabelText('Restore Organization')).not.toBeInTheDocument();
});
});