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

ref(js): Rename constants/{globalSelectionHeader -> pageFilters} (#30618)

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Evan Purkhiser 3 лет назад
Родитель
Сommit
6bfd923366

+ 1 - 5
static/app/actionCreators/globalSelection.tsx

@@ -10,11 +10,7 @@ import {
   getDefaultSelection,
   getStateFromQuery,
 } from 'sentry/components/organizations/globalSelectionHeader/utils';
-import {
-  DATE_TIME,
-  LOCAL_STORAGE_KEY,
-  URL_PARAM,
-} from 'sentry/constants/globalSelectionHeader';
+import {DATE_TIME, LOCAL_STORAGE_KEY, URL_PARAM} from 'sentry/constants/pageFilters';
 import {
   Environment,
   GlobalSelection,

+ 1 - 1
static/app/components/events/interfaces/spans/spanDetail.tsx

@@ -26,7 +26,7 @@ import {
   generateIssueEventTarget,
   generateTraceTarget,
 } from 'sentry/components/quickTrace/utils';
-import {ALL_ACCESS_PROJECTS} from 'sentry/constants/globalSelectionHeader';
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {IconAnchor, IconWarning} from 'sentry/icons';
 import {t, tn} from 'sentry/locale';
 import space from 'sentry/styles/space';

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

@@ -5,7 +5,7 @@ import {promptsCheck, promptsUpdate} from 'sentry/actionCreators/prompts';
 import SidebarPanelActions from 'sentry/actions/sidebarPanelActions';
 import {Client} from 'sentry/api';
 import Alert from 'sentry/components/alert';
-import {ALL_ACCESS_PROJECTS} from 'sentry/constants/globalSelectionHeader';
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {IconUpgrade} from 'sentry/icons';
 import {t} from 'sentry/locale';
 import space from 'sentry/styles/space';

+ 1 - 1
static/app/components/organizations/globalSelectionHeader/index.tsx

@@ -9,7 +9,7 @@ import {
   updateEnvironments,
   updateProjects,
 } from 'sentry/actionCreators/globalSelection';
-import {DATE_TIME_KEYS} from 'sentry/constants/globalSelectionHeader';
+import {DATE_TIME_KEYS} from 'sentry/constants/pageFilters';
 import ConfigStore from 'sentry/stores/configStore';
 import useProjects from 'sentry/utils/useProjects';
 import withOrganization from 'sentry/utils/withOrganization';

+ 1 - 5
static/app/components/organizations/globalSelectionHeader/utils.tsx

@@ -4,11 +4,7 @@ import isEqual from 'lodash/isEqual';
 import pick from 'lodash/pick';
 import pickBy from 'lodash/pickBy';
 
-import {
-  DATE_TIME_KEYS,
-  LOCAL_STORAGE_KEY,
-  URL_PARAM,
-} from 'sentry/constants/globalSelectionHeader';
+import {DATE_TIME_KEYS, LOCAL_STORAGE_KEY, URL_PARAM} from 'sentry/constants/pageFilters';
 import {GlobalSelection} from 'sentry/types';
 import {defined} from 'sentry/utils';
 import {getUtcToLocalDateObject} from 'sentry/utils/dates';

+ 1 - 1
static/app/components/organizations/multipleEnvironmentSelector.tsx

@@ -12,7 +12,7 @@ import Highlight from 'sentry/components/highlight';
 import GlobalSelectionHeaderRow from 'sentry/components/organizations/globalSelectionHeaderRow';
 import HeaderItem from 'sentry/components/organizations/headerItem';
 import MultipleSelectorSubmitRow from 'sentry/components/organizations/multipleSelectorSubmitRow';
-import {ALL_ACCESS_PROJECTS} from 'sentry/constants/globalSelectionHeader';
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {IconWindow} from 'sentry/icons';
 import {t} from 'sentry/locale';
 import ConfigStore from 'sentry/stores/configStore';

+ 1 - 1
static/app/components/organizations/multipleProjectSelector.tsx

@@ -9,7 +9,7 @@ import Link from 'sentry/components/links/link';
 import HeaderItem from 'sentry/components/organizations/headerItem';
 import PlatformList from 'sentry/components/platformList';
 import Tooltip from 'sentry/components/tooltip';
-import {ALL_ACCESS_PROJECTS} from 'sentry/constants/globalSelectionHeader';
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {IconProject} from 'sentry/icons';
 import {t, tct} from 'sentry/locale';
 import {growIn} from 'sentry/styles/animations';

+ 1 - 1
static/app/components/quickTrace/utils.tsx

@@ -1,7 +1,7 @@
 import {Location, LocationDescriptor} from 'history';
 
 import {getParams} from 'sentry/components/organizations/globalSelectionHeader/getParams';
-import {ALL_ACCESS_PROJECTS} from 'sentry/constants/globalSelectionHeader';
+import {ALL_ACCESS_PROJECTS} from 'sentry/constants/pageFilters';
 import {OrganizationSummary} from 'sentry/types';
 import {Event} from 'sentry/types/event';
 import {defined} from 'sentry/utils';

+ 0 - 0
static/app/constants/globalSelectionHeader.tsx → static/app/constants/pageFilters.tsx


+ 1 - 1
static/app/stores/globalSelectionStore.tsx

@@ -3,7 +3,7 @@ import Reflux from 'reflux';
 
 import GlobalSelectionActions from 'sentry/actions/globalSelectionActions';
 import {getDefaultSelection} from 'sentry/components/organizations/globalSelectionHeader/utils';
-import {LOCAL_STORAGE_KEY} from 'sentry/constants/globalSelectionHeader';
+import {LOCAL_STORAGE_KEY} from 'sentry/constants/pageFilters';
 import OrganizationsStore from 'sentry/stores/organizationsStore';
 import {GlobalSelection, Organization} from 'sentry/types';
 import {isEqualWithDates} from 'sentry/utils/isEqualWithDates';

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