Просмотр исходного кода

perf: reduce barrel file usages (#69421)

Reduces barrel file usages across the project.
Yagiz Nizipli 10 месяцев назад
Родитель
Сommit
a43f716a9b

+ 1 - 1
static/app/components/badge/groupPriority.stories.tsx

@@ -6,7 +6,7 @@ import {
 } from 'sentry/components/badge/groupPriority';
 import SideBySide from 'sentry/components/stories/sideBySide';
 import storyBook from 'sentry/stories/storyBook';
-import {PriorityLevel} from 'sentry/types';
+import {PriorityLevel} from 'sentry/types/group';
 
 const PRIORITIES = [PriorityLevel.HIGH, PriorityLevel.MEDIUM, PriorityLevel.LOW];
 

+ 1 - 1
static/app/components/charts/chartZoom.tsx

@@ -13,7 +13,7 @@ import {updateDateTime} from 'sentry/actionCreators/pageFilters';
 import DataZoomInside from 'sentry/components/charts/components/dataZoomInside';
 import DataZoomSlider from 'sentry/components/charts/components/dataZoomSlider';
 import ToolBox from 'sentry/components/charts/components/toolBox';
-import type {DateString} from 'sentry/types';
+import type {DateString} from 'sentry/types/core';
 import type {
   EChartChartReadyHandler,
   EChartDataZoomHandler,

+ 1 - 1
static/app/components/comboBox/types.tsx

@@ -1,4 +1,4 @@
-import type {SelectValue} from 'sentry/types';
+import type {SelectValue} from 'sentry/types/core';
 
 export type SelectKey = string | number;
 

+ 1 - 1
static/app/components/commitLink.tsx

@@ -3,7 +3,7 @@ import ExternalLink from 'sentry/components/links/externalLink';
 import {IconBitbucket, IconGithub, IconGitlab, IconVsts} from 'sentry/icons';
 import type {SVGIconProps} from 'sentry/icons/svgIcon';
 import {t} from 'sentry/locale';
-import type {Repository} from 'sentry/types';
+import type {Repository} from 'sentry/types/integrations';
 import {getShortCommitHash} from 'sentry/utils';
 
 type CommitFormatterParameters = {

+ 3 - 2
static/app/components/commitRow.spec.tsx

@@ -5,8 +5,9 @@ import {textWithMarkupMatcher} from 'sentry-test/utils';
 
 import {openInviteMembersModal} from 'sentry/actionCreators/modal';
 import {CommitRow} from 'sentry/components/commitRow';
-import type {Commit, Repository, User} from 'sentry/types';
-import {RepositoryStatus} from 'sentry/types';
+import type {Commit, Repository} from 'sentry/types/integrations';
+import {RepositoryStatus} from 'sentry/types/integrations';
+import type {User} from 'sentry/types/user';
 
 jest.mock('sentry/components/hovercard', () => {
   return {

+ 1 - 1
static/app/components/commitRow.tsx

@@ -15,7 +15,7 @@ import {IconWarning} from 'sentry/icons';
 import {t, tct} from 'sentry/locale';
 import ConfigStore from 'sentry/stores/configStore';
 import {space} from 'sentry/styles/space';
-import type {Commit} from 'sentry/types';
+import type {Commit} from 'sentry/types/integrations';
 
 export function formatCommitMessage(message: string | null) {
   if (!message) {

+ 1 - 1
static/app/components/compactSelect/types.tsx

@@ -1,4 +1,4 @@
-import type {SelectValue} from 'sentry/types';
+import type {SelectValue} from 'sentry/types/core';
 
 export type SelectKey = string | number;
 

+ 3 - 1
static/app/components/contextPickerModal.tsx

@@ -15,7 +15,9 @@ import ConfigStore from 'sentry/stores/configStore';
 import OrganizationsStore from 'sentry/stores/organizationsStore';
 import OrganizationStore from 'sentry/stores/organizationStore';
 import {space} from 'sentry/styles/space';
-import type {Integration, Organization, Project} from 'sentry/types';
+import type {Integration} from 'sentry/types/integrations';
+import type {Organization} from 'sentry/types/organization';
+import type {Project} from 'sentry/types/project';
 import Projects from 'sentry/utils/projects';
 import replaceRouterParams from 'sentry/utils/replaceRouterParams';
 import IntegrationIcon from 'sentry/views/settings/organizationIntegrations/integrationIcon';

+ 2 - 1
static/app/components/customCommitsResolutionModal.tsx

@@ -7,7 +7,8 @@ import TimeSince from 'sentry/components/timeSince';
 import Version from 'sentry/components/version';
 import {t} from 'sentry/locale';
 import {space} from 'sentry/styles/space';
-import type {Commit, ResolvedStatusDetails} from 'sentry/types';
+import type {ResolvedStatusDetails} from 'sentry/types/group';
+import type {Commit} from 'sentry/types/integrations';
 
 interface CustomCommitsResolutionModalProps extends ModalRenderProps {
   onSelected: (x: ResolvedStatusDetails) => void;

+ 2 - 1
static/app/components/customIgnoreCountModal.tsx

@@ -6,7 +6,8 @@ import ButtonBar from 'sentry/components/buttonBar';
 import NumberField from 'sentry/components/forms/fields/numberField';
 import SelectField from 'sentry/components/forms/fields/selectField';
 import {t} from 'sentry/locale';
-import type {IgnoredStatusDetails, SelectValue} from 'sentry/types';
+import type {SelectValue} from 'sentry/types/core';
+import type {IgnoredStatusDetails} from 'sentry/types/group';
 
 type CountNames = 'ignoreCount' | 'ignoreUserCount';
 type WindowNames = 'ignoreWindow' | 'ignoreUserWindow';

Некоторые файлы не были показаны из-за большого количества измененных файлов